query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
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 QueryGetRevokeCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryGetCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryGetCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n certificatesBuilder_.clear();\n }\n return this;\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n certificatesBuilder_.clear();\n }\n return this;\n }", "private QueryGetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = null;\n onChanged();\n } else {\n certificates_ = null;\n certificatesBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = null;\n onChanged();\n } else {\n certificates_ = null;\n certificatesBuilder_ = null;\n }\n\n return this;\n }", "private QueryGetCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "java.util.concurrent.Future<ListCertificatesResult> listCertificatesAsync(\n ListCertificatesRequest listCertificatesRequest);", "public java.util.List<vn.com.ecopharma.hrm.rc.model.Certificate> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.DeleteAllPaymentsResponse> deleteAllPayments(\n lnrpc.Rpc.DeleteAllPaymentsRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getDeleteAllPaymentsMethod(), getCallOptions()), request);\n }", "public static Collection<ApplicationGatewayClientRevocationOptions> values() {\n return values(ApplicationGatewayClientRevocationOptions.class);\n }", "private GetAllRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public List<VpnClientRevokedCertificateInner> vpnClientRevokedCertificates() {\n return this.vpnClientRevokedCertificates;\n }", "public lnrpc.Rpc.DeleteAllPaymentsResponse deleteAllPayments(lnrpc.Rpc.DeleteAllPaymentsRequest request) {\n return blockingUnaryCall(\n getChannel(), getDeleteAllPaymentsMethod(), getCallOptions(), request);\n }", "List<X509Cert> getDhPopPeerCertificates() throws CmpClientException;", "public Builder addAllCertificates(\n java.lang.Iterable<? extends liubaninc.m0.pki.CertificatesOuterClass.Certificates> values) {\n if (certificatesBuilder_ == null) {\n ensureCertificatesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, certificates_);\n onChanged();\n } else {\n certificatesBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Builder addAllCertificates(\n java.lang.Iterable<? extends liubaninc.m0.pki.CertificatesOuterClass.Certificates> values) {\n if (certificatesBuilder_ == null) {\n ensureCertificatesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, certificates_);\n onChanged();\n } else {\n certificatesBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Builder clearLicensesCertificationsRaw() {\n \n licensesCertificationsRaw_ = getDefaultInstance().getLicensesCertificationsRaw();\n onChanged();\n return this;\n }", "public void cancelAllRequests() {\n mPwsClient.cancelAllRequests();\n }", "public Builder clearCiphers() {\n ciphers_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n return this;\n }", "public void cancelAll() {\n terminateScheduleTask();\n for (CancellableCommand request : outstandingRequests) {\n request.onCancelled();\n }\n outstandingRequests.clear();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public void deleteAllPayments(lnrpc.Rpc.DeleteAllPaymentsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.DeleteAllPaymentsResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getDeleteAllPaymentsMethod(), getCallOptions()), request, responseObserver);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Certificate> getAllCertificate() {\n\n\t\tTransaction transaction = null;\n\t\tList<Certificate> listOfCertificate = null;\n\t\ttry (Session session = HibernateUtil.getSessionFactory().openSession()) {\n\t\t\t// start a transaction\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t// get an certificate object\n\t\t\t\n\t\t\tlistOfCertificate = session.createQuery(\"from Certificate\").getResultList();\n\t\t\t\n\t\t\t// commit transaction\n\t\t\ttransaction.commit();\n\t\t} catch (Exception e) {\n\t\t\tif (transaction != null) {\n\t\t\t\ttransaction.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOfCertificate;\n\t}", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "private SecurityContext securityContextAll() {\n return SecurityContext.builder()\n .securityReferences(\n Arrays.asList(new SecurityReference(\"authorization\", scopes())))\n .forPaths(PathSelectors.any())\n .forPaths(Predicates.not(regex(\"/auth/user\")))\n .build();\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public Builder clearQueryAuthorizations() {\n bitField0_ = (bitField0_ & ~0x00000100);\n queryAuthorizations_ = getDefaultInstance().getQueryAuthorizations();\n\n return this;\n }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "public void deleteAllPayments(lnrpc.Rpc.DeleteAllPaymentsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.DeleteAllPaymentsResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getDeleteAllPaymentsMethod(), responseObserver);\n }", "public Builder addAllCertificate(\n java.lang.Iterable<? extends liubaninc.m0.pki.CertificateOuterClass.Certificate> values) {\n if (certificateBuilder_ == null) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, certificate_);\n onChanged();\n } else {\n certificateBuilder_.addAllMessages(values);\n }\n return this;\n }", "@Nonnull\n public CloudPcProvisioningPolicyRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n return new com.microsoft.graph.requests.CloudPcProvisioningPolicyRequest(getRequestUrl(), getClient(), requestOptions);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder(\n int index) {\n return getCertificatesFieldBuilder().getBuilder(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder(\n int index) {\n return getCertificatesFieldBuilder().getBuilder(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "com.google.protobuf.ByteString\n getLicensesCertificationsRawBytes();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public Builder addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n copyOnWrite();\n instance.addAllCertificate(values);\n return this;\n }", "Future<ListCertificatesResponse> listCertificates(\n ListCertificatesRequest request,\n AsyncHandler<ListCertificatesRequest, ListCertificatesResponse> handler);", "public void resetCertificates()\n\t{\n\t\t// Reset memory. Don't use the inner save.\n\t\tfor (Castle castle : _castles.values())\n\t\t\tcastle.setLeftCertificates(300, false);\n\t\t\n\t\t// Update all castles with a single query.\n\t\ttry (Connection con = L2DatabaseFactory.getInstance().getConnection();\n\t\t\tPreparedStatement ps = con.prepareStatement(RESET_CERTIFICATES))\n\t\t{\n\t\t\tps.executeUpdate();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Failed to reset certificates.\", e);\n\t\t}\n\t}", "public ClientBuilder certs(List<CertificateInfo> certs) {\n this.certs = Objects.requireNonNull(certs);\n return this;\n }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public Builder clearCertificate() {\n if (certificateBuilder_ == null) {\n certificate_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n certificateBuilder_.clear();\n }\n return this;\n }", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder> \n getCertificatesBuilderList() {\n return getCertificatesFieldBuilder().getBuilderList();\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder> \n getCertificatesBuilderList() {\n return getCertificatesFieldBuilder().getBuilderList();\n }", "public Builder clearInvocations() {\n bitField0_ = (bitField0_ & ~0x00000002);\n invocations_ = 0L;\n onChanged();\n return this;\n }", "List<Certificate> getCertificatesById(@NonNull String certificateId, String sha256Thumbprint);", "@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<SubscriptionList, Subscription> listSubscriptionForAllNamespaces(\n @QueryMap ListSubscriptionForAllNamespaces queryParameters);", "public Builder clearNumOfRetrievelRequest() {\n \n numOfRetrievelRequest_ = 0;\n onChanged();\n return this;\n }", "public Builder clearNumOfRetrievelRequest() {\n \n numOfRetrievelRequest_ = 0;\n onChanged();\n return this;\n }", "public Builder addAllReault(\n java.lang.Iterable<? extends com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult> values) {\n if (reaultBuilder_ == null) {\n ensureReaultIsMutable();\n super.addAll(values, reault_);\n onChanged();\n } else {\n reaultBuilder_.addAllMessages(values);\n }\n return this;\n }", "List<OauthApprovals> selectAll();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public ServiceClient2 readAllRequest(String api) {\n\t\treadAllRequest = ReadAllRequest.newBuilder().setApi(api).build();\n\t\treturn this;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.GetAllServicesRequest createGetAllServicesRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetAllServicesRequestImpl();\n }", "public RecipientCardCollection list(Map<String, Object> params, RequestOptions options)\n throws StripeException {\n String url = String.format(\"%s%s\", Stripe.getApiBase(), this.getUrl());\n return ApiResource.requestCollection(url, params, RecipientCardCollection.class, options);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public void deleteCertificates() {\n LocalKeyStore localKeyStore = LocalKeyStore.getInstance();\n\n Uri uri = Uri.parse(getStoreUri());\n localKeyStore.deleteCertificate(uri.getHost(), uri.getPort());\n uri = Uri.parse(getTransportUri());\n localKeyStore.deleteCertificate(uri.getHost(), uri.getPort());\n }", "public Builder clearRequestedValues() {\n requestedValues_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "public static SearchSourceBuilder buildGetAllLidVidsRequest(Collection<String> lids)\n {\n if(lids == null || lids.isEmpty()) return null;\n \n SearchSourceBuilder src = new SearchSourceBuilder();\n src.query(QueryBuilders.termsQuery(\"lid\", lids)).fetchSource(false).size(5000);\n return src;\n }", "@Request(id = 10, retryable = false, response = ResponseMessageConst.SET_ENTRY)\n Object getAll(String name, Set<Data> keys, @Nullable Data expiryPolicy);", "@Test\n public void retrieveAllLoanChargesTest() throws ApiException {\n Long loanId = null;\n List<GetSelfLoansLoanIdChargesResponse> response = api.retrieveAllLoanCharges(loanId);\n\n // TODO: test validations\n }", "void cancelAllNotifications();", "@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/subscriptions\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<SubscriptionList, Subscription> listSubscriptionForAllNamespaces();", "public FeeRefundCollection list(Map<String, Object> params, RequestOptions options)\n throws StripeException {\n String url = String.format(\"%s%s\", Stripe.getApiBase(), this.getUrl());\n return ApiResource.requestCollection(url, params, FeeRefundCollection.class, options);\n }", "private ListTransactionsByFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public org.naru.park.ParkController.CommonAction getAll() {\n if (allBuilder_ == null) {\n return all_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : all_;\n } else {\n return allBuilder_.getMessage();\n }\n }", "public org.naru.park.ParkController.CommonAction getAll() {\n if (allBuilder_ == null) {\n return all_ == null ? org.naru.park.ParkController.CommonAction.getDefaultInstance() : all_;\n } else {\n return allBuilder_.getMessage();\n }\n }", "public void setRevokeDate(String revokeDate) {\r\n this.revokeDate = revokeDate;\r\n\r\n }", "java.util.List<com.google.protobuf.ByteString> getCertificateList();" ]
[ "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.46059266", "0.45124713", "0.45026028", "0.44549823", "0.44549823", "0.43646675", "0.43353912", "0.43270683", "0.43058732", "0.43048966", "0.43048966", "0.430376", "0.4301695", "0.4301695", "0.4300141", "0.4300141", "0.42975858", "0.42975858", "0.42964676", "0.42868772", "0.42868772", "0.4280776", "0.42502132", "0.42502132", "0.42343652", "0.42130077", "0.42130077", "0.42061627", "0.42061627", "0.41918373", "0.41907123", "0.41904607", "0.41890907", "0.41890907", "0.41867682", "0.41867682", "0.41865113", "0.4179128", "0.4179128", "0.41739228", "0.41642705", "0.4164207", "0.41579032", "0.41337338", "0.41337338", "0.4082636", "0.4082636", "0.40741774", "0.4074019", "0.4035029", "0.4035029", "0.40303347", "0.39973554", "0.39955792", "0.3990717", "0.3990717", "0.39895266", "0.39788523", "0.39784852", "0.39784852", "0.3967961", "0.39630488", "0.39531937", "0.3939688", "0.3939688", "0.3937286", "0.3937286", "0.39295062", "0.39293814", "0.3928521", "0.3924694", "0.39196298", "0.39180684", "0.39173445", "0.39054903", "0.3900126", "0.3889502", "0.3889502", "0.38805404", "0.38799605" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.67532545", "0.6699193", "0.6699193", "0.6699193", "0.6680123", "0.6680123", "0.6680123", "0.6436993", "0.6383382", "0.6383382", "0.6383382", "0.6375827", "0.6326324", "0.6326324", "0.6326324", "0.63028616", "0.6239677", "0.61764145", "0.6135221", "0.61334306", "0.61304426", "0.60990775", "0.6077337", "0.6073585", "0.6073585", "0.6073585", "0.6065964", "0.6065964", "0.6065964", "0.6062547", "0.60358685", "0.60273784", "0.6010939", "0.6009765", "0.5992599", "0.5991315", "0.5975824", "0.5973872", "0.5957107", "0.59500206", "0.594218", "0.594218", "0.594218", "0.5923449", "0.5919846", "0.5892659", "0.5892283", "0.585642", "0.58542645", "0.584901", "0.58450145", "0.58301854", "0.5827211", "0.5816939", "0.5806292", "0.5804611", "0.57941085", "0.5772804", "0.5772804", "0.5772804", "0.5772481", "0.5772481", "0.5772481", "0.5772481", "0.57542074", "0.57405096", "0.5739249", "0.5738465", "0.5735561", "0.5734399", "0.5718592", "0.57123476", "0.56946295", "0.567863", "0.5678011", "0.56768775", "0.56768775", "0.56768775", "0.5676129", "0.5670939", "0.5668699" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.67532545", "0.6699193", "0.6699193", "0.6699193", "0.6436993", "0.6383382", "0.6383382", "0.6383382", "0.6375827", "0.6326324", "0.6326324", "0.6326324", "0.63028616", "0.6239677", "0.61764145", "0.6135221", "0.61334306", "0.61304426", "0.60990775", "0.6077337", "0.6073585", "0.6073585", "0.6073585", "0.6065964", "0.6065964", "0.6065964", "0.6062547", "0.60358685", "0.60273784", "0.6010939", "0.6009765", "0.5992599", "0.5991315", "0.5975824", "0.5973872", "0.5957107", "0.59500206", "0.594218", "0.594218", "0.594218", "0.5923449", "0.5919846", "0.5892659", "0.5892283", "0.585642", "0.58542645", "0.584901", "0.58450145", "0.58301854", "0.5827211", "0.5816939", "0.5806292", "0.5804611", "0.57941085", "0.5772804", "0.5772804", "0.5772804", "0.5772481", "0.5772481", "0.5772481", "0.5772481", "0.57542074", "0.57405096", "0.5739249", "0.5738465", "0.5735561", "0.5734399", "0.5718592", "0.57123476", "0.56946295", "0.567863", "0.5678011", "0.56768775", "0.56768775", "0.56768775", "0.5676129", "0.5670939", "0.5668699" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "void setPagination(Pagination pagination);", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<BaacDTO> findAll(Pageable pageable);", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<ParaUserDTO> findAll(Pageable pageable);", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.668145", "0.668145", "0.668145", "0.6437877", "0.6384896", "0.6384896", "0.6384896", "0.6377041", "0.632613", "0.632613", "0.632613", "0.63021517", "0.6239997", "0.6176117", "0.61350775", "0.6133445", "0.6129827", "0.60994685", "0.60787874", "0.6072974", "0.6072974", "0.6072974", "0.60666484", "0.60666484", "0.60666484", "0.60625005", "0.60343295", "0.60273826", "0.60105807", "0.6010482", "0.59922916", "0.5990254", "0.59740615", "0.5972516", "0.59564346", "0.59485584", "0.59428537", "0.59428537", "0.59428537", "0.59232616", "0.5918592", "0.5892487", "0.58922625", "0.5856097", "0.58528155", "0.5848478", "0.58456814", "0.58289427", "0.5824913", "0.5815785", "0.58074534", "0.58060396", "0.5793358", "0.57731885", "0.57731885", "0.57731885", "0.57722473", "0.57722473", "0.57722473", "0.57722473", "0.5751992", "0.5741308", "0.57372475", "0.57368386", "0.5736422", "0.5733425", "0.5717769", "0.5710436", "0.56926376", "0.5678025", "0.56774074", "0.56774074", "0.56774074", "0.5675948", "0.5674754", "0.5670207", "0.5669367" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "@Override\n public PageInfo<OrderPojo> findAll(int pageNum, int pageSize) {\n return null;\n }" ]
[ "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.67542696", "0.6699685", "0.6699685", "0.6699685", "0.6681718", "0.6681718", "0.6681718", "0.64382184", "0.6383373", "0.6383373", "0.6383373", "0.6377125", "0.63261664", "0.63261664", "0.63261664", "0.6303102", "0.6240299", "0.6175344", "0.6134335", "0.6134002", "0.61293244", "0.6099673", "0.60784394", "0.6073024", "0.6073024", "0.6073024", "0.60664", "0.60664", "0.60664", "0.60621315", "0.6035831", "0.602787", "0.6011339", "0.6009634", "0.5991821", "0.5990821", "0.59750646", "0.5973144", "0.59577274", "0.59498155", "0.59429073", "0.59429073", "0.59429073", "0.59241045", "0.5920119", "0.5893665", "0.5891869", "0.5856278", "0.58528346", "0.5848718", "0.5845822", "0.58290607", "0.5826714", "0.5816817", "0.58078736", "0.58059174", "0.57934016", "0.5773762", "0.5773762", "0.5773762", "0.577331", "0.577331", "0.577331", "0.577331", "0.5753666", "0.5741078", "0.5737916", "0.57376885", "0.57365936", "0.5733521", "0.57180935", "0.5711616", "0.5694126", "0.56790006", "0.5677431", "0.56768125", "0.56768125", "0.56768125", "0.56757915", "0.56703", "0.56685406" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.6699193", "0.6680123", "0.6680123", "0.6680123", "0.6436993", "0.6383382", "0.6383382", "0.6383382", "0.6375827", "0.6326324", "0.6326324", "0.6326324", "0.63028616", "0.6239677", "0.61764145", "0.6135221", "0.61334306", "0.61304426", "0.60990775", "0.6077337", "0.6073585", "0.6073585", "0.6073585", "0.6065964", "0.6065964", "0.6065964", "0.6062547", "0.60358685", "0.60273784", "0.6010939", "0.6009765", "0.5992599", "0.5991315", "0.5975824", "0.5973872", "0.5957107", "0.59500206", "0.594218", "0.594218", "0.594218", "0.5923449", "0.5919846", "0.5892659", "0.5892283", "0.585642", "0.58542645", "0.584901", "0.58450145", "0.58301854", "0.5827211", "0.5816939", "0.5806292", "0.5804611", "0.57941085", "0.5772804", "0.5772804", "0.5772804", "0.5772481", "0.5772481", "0.5772481", "0.5772481", "0.57542074", "0.57405096", "0.5739249", "0.5738465", "0.5735561", "0.5734399", "0.5718592", "0.57123476", "0.56946295", "0.567863", "0.5678011", "0.56768775", "0.56768775", "0.56768775", "0.5676129", "0.5670939", "0.5668699" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.67532545", "0.6699193", "0.6699193", "0.6699193", "0.6680123", "0.6680123", "0.6680123", "0.6436993", "0.6375827", "0.6326324", "0.6326324", "0.6326324", "0.63028616", "0.6239677", "0.61764145", "0.6135221", "0.61334306", "0.61304426", "0.60990775", "0.6077337", "0.6073585", "0.6073585", "0.6073585", "0.6065964", "0.6065964", "0.6065964", "0.6062547", "0.60358685", "0.60273784", "0.6010939", "0.6009765", "0.5992599", "0.5991315", "0.5975824", "0.5973872", "0.5957107", "0.59500206", "0.594218", "0.594218", "0.594218", "0.5923449", "0.5919846", "0.5892659", "0.5892283", "0.585642", "0.58542645", "0.584901", "0.58450145", "0.58301854", "0.5827211", "0.5816939", "0.5806292", "0.5804611", "0.57941085", "0.5772804", "0.5772804", "0.5772804", "0.5772481", "0.5772481", "0.5772481", "0.5772481", "0.57542074", "0.57405096", "0.5739249", "0.5738465", "0.5735561", "0.5734399", "0.5718592", "0.57123476", "0.56946295", "0.567863", "0.5678011", "0.56768775", "0.56768775", "0.56768775", "0.5676129", "0.5670939", "0.5668699" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "void setPagination(Pagination pagination);", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<BaacDTO> findAll(Pageable pageable);", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<ParaUserDTO> findAll(Pageable pageable);", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.6754652", "0.6699225", "0.6699225", "0.6699225", "0.668145", "0.668145", "0.668145", "0.6437877", "0.6384896", "0.6384896", "0.6384896", "0.6377041", "0.632613", "0.632613", "0.632613", "0.63021517", "0.6239997", "0.6176117", "0.61350775", "0.6133445", "0.6129827", "0.60994685", "0.60787874", "0.6072974", "0.6072974", "0.6072974", "0.60666484", "0.60666484", "0.60666484", "0.60625005", "0.60343295", "0.60273826", "0.60105807", "0.6010482", "0.59922916", "0.5990254", "0.59740615", "0.5972516", "0.59564346", "0.59485584", "0.59428537", "0.59428537", "0.59428537", "0.59232616", "0.5918592", "0.5892487", "0.58922625", "0.5856097", "0.58528155", "0.5848478", "0.58456814", "0.58289427", "0.5824913", "0.5815785", "0.58074534", "0.58060396", "0.5793358", "0.57731885", "0.57731885", "0.57731885", "0.57722473", "0.57722473", "0.57722473", "0.57722473", "0.5751992", "0.5741308", "0.57372475", "0.57368386", "0.5736422", "0.5733425", "0.5717769", "0.5710436", "0.56926376", "0.5678025", "0.56774074", "0.56774074", "0.56774074", "0.5675948", "0.5674754", "0.5670207", "0.5669367" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "@Override\n public PageInfo<OrderPojo> findAll(int pageNum, int pageSize) {\n return null;\n }" ]
[ "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.67542696", "0.6699685", "0.6699685", "0.6699685", "0.6681718", "0.6681718", "0.6681718", "0.64382184", "0.6383373", "0.6383373", "0.6383373", "0.6377125", "0.63261664", "0.63261664", "0.63261664", "0.6303102", "0.6240299", "0.6175344", "0.6134335", "0.6134002", "0.61293244", "0.6099673", "0.60784394", "0.6073024", "0.6073024", "0.6073024", "0.60664", "0.60664", "0.60664", "0.60621315", "0.6035831", "0.602787", "0.6011339", "0.6009634", "0.5991821", "0.5990821", "0.59750646", "0.5973144", "0.59577274", "0.59498155", "0.59429073", "0.59429073", "0.59429073", "0.59241045", "0.5920119", "0.5893665", "0.5891869", "0.5856278", "0.58528346", "0.5848718", "0.5845822", "0.58290607", "0.5826714", "0.5816817", "0.58078736", "0.58059174", "0.57934016", "0.5773762", "0.5773762", "0.5773762", "0.577331", "0.577331", "0.577331", "0.577331", "0.5753666", "0.5741078", "0.5737916", "0.57376885", "0.57365936", "0.5733521", "0.57180935", "0.5711616", "0.5694126", "0.56790006", "0.5677431", "0.56768125", "0.56768125", "0.56768125", "0.56757915", "0.56703", "0.56685406" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.67532545", "0.6699193", "0.6699193", "0.6699193", "0.6680123", "0.6680123", "0.6680123", "0.6436993", "0.6383382", "0.6383382", "0.6383382", "0.6375827", "0.6326324", "0.6326324", "0.6326324", "0.63028616", "0.6239677", "0.61764145", "0.6135221", "0.61334306", "0.61304426", "0.60990775", "0.6077337", "0.6073585", "0.6073585", "0.6073585", "0.6065964", "0.6065964", "0.6065964", "0.6062547", "0.60358685", "0.60273784", "0.6010939", "0.6009765", "0.5992599", "0.5991315", "0.5975824", "0.5973872", "0.5957107", "0.59500206", "0.594218", "0.594218", "0.594218", "0.5923449", "0.5919846", "0.5892659", "0.5892283", "0.585642", "0.58542645", "0.584901", "0.58450145", "0.58301854", "0.5827211", "0.5816939", "0.5806292", "0.5804611", "0.57941085", "0.5772804", "0.5772804", "0.5772804", "0.5772481", "0.5772481", "0.5772481", "0.5772481", "0.57542074", "0.57405096", "0.5739249", "0.5738465", "0.5735561", "0.5734399", "0.5718592", "0.57123476", "0.56946295", "0.567863", "0.5678011", "0.56768775", "0.56768775", "0.56768775", "0.5676129", "0.5670939", "0.5668699" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.67532545", "0.6699193", "0.6699193", "0.6699193", "0.6680123", "0.6680123", "0.6680123", "0.6436993", "0.6383382", "0.6383382", "0.6383382", "0.6375827", "0.63028616", "0.6239677", "0.61764145", "0.6135221", "0.61334306", "0.61304426", "0.60990775", "0.6077337", "0.6073585", "0.6073585", "0.6073585", "0.6065964", "0.6065964", "0.6065964", "0.6062547", "0.60358685", "0.60273784", "0.6010939", "0.6009765", "0.5992599", "0.5991315", "0.5975824", "0.5973872", "0.5957107", "0.59500206", "0.594218", "0.594218", "0.594218", "0.5923449", "0.5919846", "0.5892659", "0.5892283", "0.585642", "0.58542645", "0.584901", "0.58450145", "0.58301854", "0.5827211", "0.5816939", "0.5806292", "0.5804611", "0.57941085", "0.5772804", "0.5772804", "0.5772804", "0.5772481", "0.5772481", "0.5772481", "0.5772481", "0.57542074", "0.57405096", "0.5739249", "0.5738465", "0.5735561", "0.5734399", "0.5718592", "0.57123476", "0.56946295", "0.567863", "0.5678011", "0.56768775", "0.56768775", "0.56768775", "0.5676129", "0.5670939", "0.5668699" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "void setPagination(Pagination pagination);", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<BaacDTO> findAll(Pageable pageable);", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder> \n getPaginationFieldBuilder() {\n if (paginationBuilder_ == null) {\n paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(\n getPagination(),\n getParentForChildren(),\n isClean());\n pagination_ = null;\n }\n return paginationBuilder_;\n }", "Page<ParaUserDTO> findAll(Pageable pageable);", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "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.6699225", "0.668145", "0.668145", "0.668145", "0.6437877", "0.6384896", "0.6384896", "0.6384896", "0.6377041", "0.632613", "0.632613", "0.632613", "0.63021517", "0.6239997", "0.6176117", "0.61350775", "0.6133445", "0.6129827", "0.60994685", "0.60787874", "0.6072974", "0.6072974", "0.6072974", "0.60666484", "0.60666484", "0.60666484", "0.60625005", "0.60343295", "0.60273826", "0.60105807", "0.6010482", "0.59922916", "0.5990254", "0.59740615", "0.5972516", "0.59564346", "0.59485584", "0.59428537", "0.59428537", "0.59428537", "0.59232616", "0.5918592", "0.5892487", "0.58922625", "0.5856097", "0.58528155", "0.5848478", "0.58456814", "0.58289427", "0.5824913", "0.5815785", "0.58074534", "0.58060396", "0.5793358", "0.57731885", "0.57731885", "0.57731885", "0.57722473", "0.57722473", "0.57722473", "0.57722473", "0.5751992", "0.5741308", "0.57372475", "0.57368386", "0.5736422", "0.5733425", "0.5717769", "0.5710436", "0.56926376", "0.5678025", "0.56774074", "0.56774074", "0.56774074", "0.5675948", "0.5674754", "0.5670207", "0.5669367" ]
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.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void setPageSize(DriveRequest<?> request, Integer pageSize);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "default Integer getPageSize() {\n return 10;\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public QueryResultBuilder<T> setPage(Option<Page> page);", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Task, Project> pagination);", "List<E> page(Page page, Long...params);", "public CommonFileQuery page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "Page<EtatOperation> findAll(Pageable pageable);", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "Page<HrDocumentRequest> getApprovedDocumentRequests(Pageable pageRequest);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public ReviewsArguments currentPage(Integer value) {\n if (value != null) {\n startArgument(\"currentPage\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<TypeBonDTO> findAll(Pageable pageable);", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "@ApiOperation(\"分页查询页面列表\")\n @Override\n @GetMapping(\"/list/{page}/{size}\")\n public QueryResponseResult findList(@PathVariable(\"page\") @ApiParam(\"页码\") int page,\n @PathVariable(\"size\") @ApiParam(\"每页查询的条数\") int size,\n QueryPageRequest queryPageRequest) {\n return cmsPageService.findList(page,size,queryPageRequest);\n }", "void setPagination(Pagination pagination);", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public Integer getPerPage();", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "LiveData<PagedList<Response>> pagedList();", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "Page<EventActivityDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic Type getRequestType() {\n\t\treturn Type.PAGE;\r\n\t}", "private Pageable createPageRequest(int page, int size) {\n\t\treturn new PageRequest(page, size, new Sort(Sort.Direction.DESC, \"_id\"));\n\t}", "ReviewService() {queryMap.put(PAGE_QUERY_PARAM, \"1\");}", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "Page<ServiceUserDTO> findAll(Pageable pageable);", "public ReviewsArguments pageSize(Integer value) {\n if (value != null) {\n startArgument(\"pageSize\");\n _queryBuilder.append(value);\n }\n return this;\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "Page<BaacDTO> findAll(Pageable pageable);", "public FilterBuilder page(int page)\n {\n if(page >= 0)\n filters.add(\"page\", page);\n return this;\n }", "Page<NotificationDTO> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<PeopleDTO> findAll(Pageable pageable);", "Page<SeminarioDTO> findAll(Pageable pageable);", "public int getRowsPerPage();", "Page<ParaUserDTO> findAll(Pageable pageable);", "Page<Person> findAll(Pageable pageable);", "Page<GiftMatPromo> findAll(Pageable pageable);", "@Override\n public PageInfo<OrderPojo> findAll(int pageNum, int pageSize) {\n return null;\n }" ]
[ "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.67542696", "0.6699685", "0.6699685", "0.6699685", "0.6681718", "0.6681718", "0.6681718", "0.64382184", "0.6383373", "0.6383373", "0.6383373", "0.6377125", "0.63261664", "0.63261664", "0.63261664", "0.6303102", "0.6240299", "0.6175344", "0.6134335", "0.6134002", "0.61293244", "0.6099673", "0.60784394", "0.6073024", "0.6073024", "0.6073024", "0.60664", "0.60664", "0.60664", "0.60621315", "0.6035831", "0.602787", "0.6011339", "0.6009634", "0.5991821", "0.5990821", "0.59750646", "0.5973144", "0.59577274", "0.59498155", "0.59429073", "0.59429073", "0.59429073", "0.59241045", "0.5920119", "0.5893665", "0.5891869", "0.5856278", "0.58528346", "0.5848718", "0.5845822", "0.58290607", "0.5826714", "0.5816817", "0.58078736", "0.58059174", "0.57934016", "0.5773762", "0.5773762", "0.5773762", "0.577331", "0.577331", "0.577331", "0.577331", "0.5753666", "0.5741078", "0.5737916", "0.57376885", "0.57365936", "0.5733521", "0.57180935", "0.5711616", "0.5694126", "0.56790006", "0.5677431", "0.56757915", "0.56703", "0.56685406" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5416992", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.51211953", "0.51211953", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "void setPagination(Pagination pagination);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.6348891", "0.6348891", "0.62920344", "0.62442285", "0.6225836", "0.622166", "0.622166", "0.622166", "0.618311", "0.6154265", "0.61452574", "0.612158", "0.612158", "0.612158", "0.6109977", "0.6109977", "0.6109977", "0.6076912", "0.6076912", "0.6076912", "0.60671026", "0.60580367", "0.60580367", "0.60580367", "0.6037477", "0.6037477", "0.6037477", "0.6037477", "0.6026238", "0.59764546", "0.59670204", "0.593411", "0.593411", "0.593411", "0.5916207", "0.5916207", "0.5916207", "0.5903531", "0.5870854", "0.5870854", "0.5870854", "0.58695704", "0.5848563", "0.5848563", "0.5848563", "0.5847709", "0.5812891", "0.5812891", "0.5812891", "0.57869273", "0.578078", "0.5777121", "0.5728499", "0.57253194", "0.57134813", "0.5713449", "0.5711515", "0.56828964", "0.5678421", "0.5659671", "0.5655334", "0.5650504", "0.56237715", "0.56197613", "0.5611243", "0.560246", "0.56019723", "0.56015205", "0.5596569", "0.5596154", "0.5592746", "0.5582302", "0.55784845", "0.5572092", "0.5566279", "0.5561221", "0.5561221", "0.5561221", "0.55509835", "0.55507916", "0.5548077" ]
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.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "void setPagination(Pagination pagination);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.62242895", "0.62196964", "0.62196964", "0.62196964", "0.618325", "0.6153492", "0.61445534", "0.6119223", "0.6119223", "0.6119223", "0.61086017", "0.61086017", "0.61086017", "0.60747033", "0.60747033", "0.60747033", "0.60649693", "0.60559654", "0.60559654", "0.60559654", "0.60357666", "0.60357666", "0.60357666", "0.60357666", "0.60267246", "0.59748745", "0.5966729", "0.5932376", "0.5932376", "0.5932376", "0.59141576", "0.59141576", "0.59141576", "0.59020203", "0.5869454", "0.5869454", "0.5869454", "0.58687246", "0.5847525", "0.58463013", "0.58463013", "0.58463013", "0.5811865", "0.5811865", "0.5811865", "0.5786623", "0.57798404", "0.5775852", "0.57290494", "0.572585", "0.5713427", "0.5711845", "0.5711497", "0.5682613", "0.5678506", "0.5660209", "0.5655715", "0.5649218", "0.5623925", "0.5620026", "0.5611829", "0.5602064", "0.56004244", "0.56001663", "0.5596887", "0.5596301", "0.5592298", "0.5583297", "0.5577416", "0.55719936", "0.556666", "0.55594546", "0.55594546", "0.55594546", "0.5552815", "0.5550519", "0.5548215" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "void setPagination(Pagination pagination);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.6243995", "0.62269914", "0.62218326", "0.62218326", "0.62218326", "0.6183607", "0.6155663", "0.6145756", "0.61215484", "0.61215484", "0.61215484", "0.611186", "0.611186", "0.611186", "0.60768014", "0.60768014", "0.60768014", "0.60672635", "0.6058223", "0.6058223", "0.6058223", "0.60372406", "0.60372406", "0.60372406", "0.60372406", "0.60283583", "0.5976508", "0.59692323", "0.59338796", "0.59338796", "0.59338796", "0.59163123", "0.59163123", "0.59163123", "0.59024614", "0.58727235", "0.58727235", "0.58727235", "0.5870768", "0.5848547", "0.5848547", "0.5848547", "0.5847699", "0.5813962", "0.5813962", "0.5813962", "0.57874626", "0.5781871", "0.5777524", "0.57299465", "0.5725178", "0.57152075", "0.5713959", "0.57117385", "0.56850755", "0.5678876", "0.5660996", "0.5656755", "0.5651155", "0.5624256", "0.56199396", "0.5611919", "0.56036466", "0.5601881", "0.5600284", "0.5598246", "0.55972517", "0.55931854", "0.5583593", "0.5579025", "0.55713296", "0.5566691", "0.5561375", "0.5561375", "0.5561375", "0.55526197", "0.55496484", "0.5548775" ]
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 QueryGetRevokeCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryGetCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryAllCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryGetCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private QueryGetCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n certificatesBuilder_.clear();\n }\n return this;\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n certificatesBuilder_.clear();\n }\n return this;\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = null;\n onChanged();\n } else {\n certificates_ = null;\n certificatesBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearCertificates() {\n if (certificatesBuilder_ == null) {\n certificates_ = null;\n onChanged();\n } else {\n certificates_ = null;\n certificatesBuilder_ = null;\n }\n\n return this;\n }", "java.util.concurrent.Future<ListCertificatesResult> listCertificatesAsync(\n ListCertificatesRequest listCertificatesRequest);", "public List<VpnClientRevokedCertificateInner> vpnClientRevokedCertificates() {\n return this.vpnClientRevokedCertificates;\n }", "private QueryGetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public java.util.List<vn.com.ecopharma.hrm.rc.model.Certificate> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "List<X509Cert> getDhPopPeerCertificates() throws CmpClientException;", "public static Collection<ApplicationGatewayClientRevocationOptions> values() {\n return values(ApplicationGatewayClientRevocationOptions.class);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "Future<ListCertificatesResponse> listCertificates(\n ListCertificatesRequest request,\n AsyncHandler<ListCertificatesRequest, ListCertificatesResponse> handler);", "private ListCompaniesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "private GetAllRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.DeleteAllPaymentsResponse> deleteAllPayments(\n lnrpc.Rpc.DeleteAllPaymentsRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getDeleteAllPaymentsMethod(), getCallOptions()), request);\n }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "public Builder clearResponse() {\n response_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "@RequestMapping(path = \"/v1/certificates\", method = RequestMethod.GET)\n public ResponseEntity<Object> getCertificates(@RequestParam(\"ag\") String assetGroup) {\n if (Strings.isNullOrEmpty(assetGroup)) {\n return ResponseUtils.buildFailureResponse(new Exception(ASSET_MANDATORY));\n }\n OutputDTO output = null;\n try {\n output = new OutputDTO(complianceService.getCertificates(assetGroup));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(output);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "public Builder addAllCertificates(\n java.lang.Iterable<? extends liubaninc.m0.pki.CertificatesOuterClass.Certificates> values) {\n if (certificatesBuilder_ == null) {\n ensureCertificatesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, certificates_);\n onChanged();\n } else {\n certificatesBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Builder addAllCertificates(\n java.lang.Iterable<? extends liubaninc.m0.pki.CertificatesOuterClass.Certificates> values) {\n if (certificatesBuilder_ == null) {\n ensureCertificatesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, certificates_);\n onChanged();\n } else {\n certificatesBuilder_.addAllMessages(values);\n }\n return this;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public Builder addAllResponses(\n java.lang.Iterable<? extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto> values) {\n if (responsesBuilder_ == null) {\n ensureResponsesIsMutable();\n super.addAll(values, responses_);\n onChanged();\n } else {\n responsesBuilder_.addAllMessages(values);\n }\n return this;\n }", "private ResultSetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder clearListResponse() {\n if (listResponseBuilder_ == null) {\n if (msgCase_ == 6) {\n msgCase_ = 0;\n msg_ = null;\n onChanged();\n }\n } else {\n if (msgCase_ == 6) {\n msgCase_ = 0;\n msg_ = null;\n }\n listResponseBuilder_.clear();\n }\n return this;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public Builder addAllResponse(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureResponseIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, response_);\n onChanged();\n return this;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder(\n int index) {\n return getCertificatesFieldBuilder().getBuilder(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder(\n int index) {\n return getCertificatesFieldBuilder().getBuilder(index);\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder> \n getCertificatesBuilderList() {\n return getCertificatesFieldBuilder().getBuilderList();\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder> \n getCertificatesBuilderList() {\n return getCertificatesFieldBuilder().getBuilderList();\n }", "public void cacheResult(\n\t\tjava.util.List<vn.com.ecopharma.hrm.rc.model.Certificate> certificates);", "public Builder clearLicensesCertificationsRaw() {\n \n licensesCertificationsRaw_ = getDefaultInstance().getLicensesCertificationsRaw();\n onChanged();\n return this;\n }", "public Builder addAllResponse(\n java.lang.Iterable<? extends POGOProtos.Rpc.AssetVersionOutProto.AssetVersionResponseProto> values) {\n if (responseBuilder_ == null) {\n ensureResponseIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, response_);\n onChanged();\n } else {\n responseBuilder_.addAllMessages(values);\n }\n return this;\n }", "public Builder clearResponse() {\n if (responseBuilder_ == null) {\n response_ = com.github.yeriomin.playstoreapi.ResponseWrapper.getDefaultInstance();\n onChanged();\n } else {\n responseBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "com.google.protobuf.ByteString\n getLicensesCertificationsRawBytes();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Certificate> getAllCertificate() {\n\n\t\tTransaction transaction = null;\n\t\tList<Certificate> listOfCertificate = null;\n\t\ttry (Session session = HibernateUtil.getSessionFactory().openSession()) {\n\t\t\t// start a transaction\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t// get an certificate object\n\t\t\t\n\t\t\tlistOfCertificate = session.createQuery(\"from Certificate\").getResultList();\n\t\t\t\n\t\t\t// commit transaction\n\t\t\ttransaction.commit();\n\t\t} catch (Exception e) {\n\t\t\tif (transaction != null) {\n\t\t\t\ttransaction.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOfCertificate;\n\t}", "private GetProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder addAllReault(\n java.lang.Iterable<? extends com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCResult> values) {\n if (reaultBuilder_ == null) {\n ensureReaultIsMutable();\n super.addAll(values, reault_);\n onChanged();\n } else {\n reaultBuilder_.addAllMessages(values);\n }\n return this;\n }", "private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "java.util.concurrent.Future<ListCertificatesResult> listCertificatesAsync(\n ListCertificatesRequest listCertificatesRequest,\n com.amazonaws.handlers.AsyncHandler<ListCertificatesRequest, ListCertificatesResult> asyncHandler);", "public List<CatalogDescription> getAllCatalogDescriptionsForCertificatesWithNoDescription();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "@Test\n public void retrieveAllLoanChargesTest() throws ApiException {\n Long loanId = null;\n List<GetSelfLoansLoanIdChargesResponse> response = api.retrieveAllLoanCharges(loanId);\n\n // TODO: test validations\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public void deleteAllPayments(lnrpc.Rpc.DeleteAllPaymentsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.DeleteAllPaymentsResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getDeleteAllPaymentsMethod(), getCallOptions()), request, responseObserver);\n }", "public List<Certificate> getCertificates(String searchValue, int resultSize, int timeOut) throws ServerNotAvailableException {\n try {\n //Setting headers for post Reqest\n String postData = CERT_PRE_STRING + URLEncoder.encode(searchValue, \"UTF-8\") + CERT_POST_STRING;\n //seding post\n URL regAdress = new URL(postData);\n HttpURLConnection regCon = (HttpURLConnection) regAdress.openConnection();\n timeOut = timeOut * 1000;\n regCon.setConnectTimeout(timeOut);\n regCon.setReadTimeout(timeOut);\n regCon.setRequestMethod(Headers.get(\"method.get\"));\n regCon.connect();\n //Getting response and build it to line\n String result = getResultString(regCon);\n //Parsing result\n Elements elements = getElements(result);\n return parse(elements, 1, resultSize);\n } catch (ServerNotAvailableException e) {\n log.info(\"Server is not avilable again\",e);\n throw new ServerNotAvailableException(\"KIRGIZ_CERT\");\n } catch (Exception e) {\n log.error(\"Error parsing resultpage from AM !!\",e);\n return new ArrayList<Certificate>();\n }\n }", "public Builder clearResponses() {\n if (responsesBuilder_ == null) {\n responses_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n responsesBuilder_.clear();\n }\n return this;\n }", "private ListFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@GetMapping(\"getAll\")\n\tpublic ServiceResponse<ContactAllResponse> getAll() {\n\t\treturn contactService.getAll();\n\t}", "public Builder clearResponse() {\n if (responseBuilder_ == null) {\n response_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n responseBuilder_.clear();\n }\n return this;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.pki.CertificatesOuterClass.Certificates, liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder, liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesFieldBuilder() {\n if (certificatesBuilder_ == null) {\n certificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.pki.CertificatesOuterClass.Certificates, liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder, liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder>(\n getCertificates(),\n getParentForChildren(),\n isClean());\n certificates_ = null;\n }\n return certificatesBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.pki.CertificatesOuterClass.Certificates, liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder, liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesFieldBuilder() {\n if (certificatesBuilder_ == null) {\n certificatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.pki.CertificatesOuterClass.Certificates, liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder, liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder>(\n getCertificates(),\n getParentForChildren(),\n isClean());\n certificates_ = null;\n }\n return certificatesBuilder_;\n }", "public Builder clearResponse() {\n bitField0_ = (bitField0_ & ~0x00000002);\n response_ = getDefaultInstance().getResponse();\n onChanged();\n return this;\n }", "public Builder clearCertificate() {\n if (certificateBuilder_ == null) {\n certificate_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n certificateBuilder_.clear();\n }\n return this;\n }", "List<Certificate> getCertificatesById(@NonNull String certificateId, String sha256Thumbprint);", "CertificationsResponse callCertificationGetRESTCall(String methodName,\n String urlTemplate,\n Object... params) throws PropertyServerException\n {\n return (CertificationsResponse)this.callGetRESTCall(methodName, CertificationsResponse.class, urlTemplate, params);\n }", "public void deleteAllPayments(lnrpc.Rpc.DeleteAllPaymentsRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.DeleteAllPaymentsResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getDeleteAllPaymentsMethod(), responseObserver);\n }", "public Builder addAllCertificate(\n java.lang.Iterable<? extends liubaninc.m0.pki.CertificateOuterClass.Certificate> values) {\n if (certificateBuilder_ == null) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, certificate_);\n onChanged();\n } else {\n certificateBuilder_.addAllMessages(values);\n }\n return this;\n }", "private SyncResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Request(id = 10, retryable = false, response = ResponseMessageConst.SET_ENTRY)\n Object getAll(String name, Set<Data> keys, @Nullable Data expiryPolicy);" ]
[ "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.46903443", "0.46903443", "0.46534038", "0.46534038", "0.461391", "0.4597314", "0.45922154", "0.45922154", "0.45591092", "0.45458898", "0.45458898", "0.44989878", "0.44989878", "0.44847903", "0.44847903", "0.44560468", "0.44560468", "0.44485775", "0.44485775", "0.4428384", "0.44213971", "0.44213971", "0.44152173", "0.44152173", "0.43909138", "0.43769097", "0.4350924", "0.4350924", "0.43458453", "0.43458453", "0.43284434", "0.43284434", "0.4311805", "0.4311805", "0.42915645", "0.4283948", "0.42819387", "0.42780536", "0.42780536", "0.42742613", "0.42609286", "0.42609286", "0.4260597", "0.4260597", "0.42590946", "0.42496067", "0.42445585", "0.42425448", "0.42409644", "0.42393377", "0.42393377", "0.4231068", "0.42307928", "0.42262718", "0.4201426", "0.42008892", "0.41954094", "0.419391", "0.4182038", "0.41804436", "0.41804436", "0.41751832", "0.41413945", "0.412256", "0.4109471", "0.41085917", "0.4107587", "0.41059092", "0.40994072", "0.40994072", "0.40961426", "0.40937886", "0.40805098", "0.40765905", "0.40677938", "0.4061135", "0.40608284", "0.40571427", "0.40571427", "0.40555695" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5437803", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.51211953", "0.51211953", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "void setPagination(Pagination pagination);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.63466746", "0.6291854", "0.6243197", "0.62242895", "0.62196964", "0.62196964", "0.62196964", "0.618325", "0.6153492", "0.61445534", "0.6119223", "0.6119223", "0.6119223", "0.61086017", "0.61086017", "0.61086017", "0.60747033", "0.60747033", "0.60747033", "0.60649693", "0.60559654", "0.60559654", "0.60559654", "0.60357666", "0.60357666", "0.60357666", "0.60357666", "0.60267246", "0.59748745", "0.5966729", "0.5932376", "0.5932376", "0.5932376", "0.59141576", "0.59141576", "0.59141576", "0.59020203", "0.5869454", "0.5869454", "0.5869454", "0.58687246", "0.5847525", "0.58463013", "0.58463013", "0.58463013", "0.5811865", "0.5811865", "0.5811865", "0.5786623", "0.57798404", "0.5775852", "0.57290494", "0.572585", "0.5713427", "0.5711845", "0.5711497", "0.5682613", "0.5678506", "0.5660209", "0.5655715", "0.5649218", "0.5623925", "0.5620026", "0.5611829", "0.5602064", "0.56004244", "0.56001663", "0.5596887", "0.5596301", "0.5592298", "0.5583297", "0.5577416", "0.55719936", "0.556666", "0.55594546", "0.55594546", "0.55594546", "0.5552815", "0.5550519", "0.5548215" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "void setPagination(Pagination pagination);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.63489413", "0.63489413", "0.6292963", "0.6243995", "0.62269914", "0.62218326", "0.62218326", "0.62218326", "0.6183607", "0.6155663", "0.6145756", "0.61215484", "0.61215484", "0.61215484", "0.611186", "0.611186", "0.611186", "0.60768014", "0.60768014", "0.60768014", "0.60672635", "0.60372406", "0.60372406", "0.60372406", "0.60372406", "0.60283583", "0.5976508", "0.59692323", "0.59338796", "0.59338796", "0.59338796", "0.59163123", "0.59163123", "0.59163123", "0.59024614", "0.58727235", "0.58727235", "0.58727235", "0.5870768", "0.5848547", "0.5848547", "0.5848547", "0.5847699", "0.5813962", "0.5813962", "0.5813962", "0.57874626", "0.5781871", "0.5777524", "0.57299465", "0.5725178", "0.57152075", "0.5713959", "0.57117385", "0.56850755", "0.5678876", "0.5660996", "0.5656755", "0.5651155", "0.5624256", "0.56199396", "0.5611919", "0.56036466", "0.5601881", "0.5600284", "0.5598246", "0.55972517", "0.55931854", "0.5583593", "0.5579025", "0.55713296", "0.5566691", "0.5561375", "0.5561375", "0.5561375", "0.55526197", "0.55496484", "0.5548775" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "void setPagination(Pagination pagination);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.62442285", "0.6225836", "0.622166", "0.622166", "0.622166", "0.618311", "0.6154265", "0.61452574", "0.612158", "0.612158", "0.612158", "0.6109977", "0.6109977", "0.6109977", "0.6076912", "0.6076912", "0.6076912", "0.60671026", "0.60580367", "0.60580367", "0.60580367", "0.6037477", "0.6037477", "0.6037477", "0.6037477", "0.6026238", "0.59764546", "0.59670204", "0.593411", "0.593411", "0.593411", "0.5916207", "0.5916207", "0.5916207", "0.5903531", "0.5870854", "0.5870854", "0.5870854", "0.58695704", "0.5848563", "0.5848563", "0.5848563", "0.5847709", "0.5812891", "0.5812891", "0.5812891", "0.57869273", "0.578078", "0.5777121", "0.5728499", "0.57253194", "0.57134813", "0.5713449", "0.5711515", "0.56828964", "0.5678421", "0.5659671", "0.5655334", "0.5650504", "0.56237715", "0.56197613", "0.5611243", "0.560246", "0.56019723", "0.56015205", "0.5596569", "0.5596154", "0.5592746", "0.5582302", "0.55784845", "0.5572092", "0.5566279", "0.5561221", "0.5561221", "0.5561221", "0.55509835", "0.55507916", "0.5548077" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5437803", "0.5416992", "0.5416992", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.51211953", "0.51211953", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5437803", "0.5416992", "0.5416992", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.51211953", "0.51211953", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5437803", "0.5416992", "0.5416992", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.51211953", "0.51211953", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5437803", "0.5416992", "0.5416992", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.55069023", "0.5437435", "0.54179776", "0.54179776", "0.54014355", "0.54014355", "0.53821373", "0.53821373", "0.535155", "0.5350216", "0.53481615", "0.5344602", "0.53347087", "0.53321004", "0.53321004", "0.53317404", "0.5323735", "0.53227055", "0.5320372", "0.5320372", "0.5298601", "0.52905625", "0.5267637", "0.52618575", "0.5250765", "0.5242524", "0.5242524", "0.5233909", "0.521466", "0.521466", "0.51942474", "0.51892376", "0.5174811", "0.5174811", "0.51735413", "0.51735413", "0.51722294", "0.51722294", "0.5172175", "0.5168135", "0.51427406", "0.51337415", "0.51292455", "0.51292455", "0.5127164", "0.5127164", "0.51213753", "0.51213753", "0.51174396", "0.5112074", "0.5112074", "0.5105761", "0.5096636", "0.5094924", "0.5086884", "0.5079675", "0.50715905", "0.50715905", "0.50685155", "0.505434", "0.505434", "0.5050674", "0.5029278", "0.5029278", "0.50166297", "0.5010038", "0.5010038", "0.49965918", "0.4994864", "0.49765295", "0.4973344", "0.49672875", "0.4965438", "0.4964037", "0.49640164", "0.49598873", "0.49476317", "0.49444228", "0.49422607", "0.49355292", "0.49355292" ]
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 getCertificatesOrBuilder();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public CloudServiceVaultCertificate() {\n }", "dkk mo4509g();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "int getCertificatesCount();", "int getCertificatesCount();", "X509CertificateInfo()\n {\n }", "public void verifyServerCertificates(boolean yesno);", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n return certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {\n return getCertificatesFieldBuilder().addBuilder(\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public int getCertificatesCount() {\n return certificates_.size();\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(certificates_);\n }\n }", "public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }", "private void setupCertificates(OkHttpClient.Builder builder, final X509Certificate[] certificates) {\n TrustManager[] trustManager = new TrustManager[]{new X509TrustManager() {\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n }\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[]{};\n }\n }};\n\n try {\n // install the trust manager\n SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustManager, new SecureRandom());\n // create an ssl socket factory with our trust manager\n SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n\n builder.sslSocketFactory(sslSocketFactory);\n builder.hostnameVerifier(new HostnameVerifier() {\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n } catch (Exception e) {\n MyLog.e(\"HttpClientFactory\", e.getMessage());\n }\n }", "String getCertificate();", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "boolean hasCertificates();", "boolean hasCertificates();", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);", "DelegatingX509Certificate(java.security.cert.X509Certificate r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: in method: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.<init>(java.security.cert.X509Certificate):void\");\n }", "public void setUserCertificatesPath(String path);", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n return certificates_.get(index);\n }", "int getCertificateCount();", "int getCertificateCount();", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }", "public static synchronized TrustedCertificates \n getDefaultTrustedCertificates() {\n\n return getDefault();\n }", "public String getUserCertificatesPath();", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index); } else {\n return certificatesBuilder_.getMessageOrBuilder(index);\n }\n }", "private void setCertificate(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.set(index, value);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }", "public X509V1CertificateGenerator() {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.<init>():void\");\n }", "public ConsumedCertificateCredentialModel()\n\t{\n\t\tsuper();\n\t}", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n if (certificatesBuilder_ != null) {\n return certificatesBuilder_.getMessageOrBuilder();\n } else {\n return certificates_ == null ?\n liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder() {\n \n onChanged();\n return getCertificatesFieldBuilder().getBuilder();\n }", "@Test\n @Override\n public void testPrepare() throws IOException {\n context.getConfig()\n .setDefaultExplicitCertificateKeyPair(\n new CertificateKeyPair(\n certificate,\n new CustomRSAPrivateKey(\n context.getConfig().getDefaultClientRSAModulus(),\n context.getConfig().getDefaultClientRSAPrivateKey())));\n context.getConfig().setAutoSelectCertificate(false);\n preparator.prepare();\n assertArrayEquals(\n ArrayConverter.hexStringToByteArray(\n \"0003943082039030820278A003020102020900A650C00794049FCD300D06092A864886F70D01010B0500305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B65723020170D3137303731333132353331385A180F32313137303631393132353331385A305C310B30090603550406130241553113301106035504080C0A536F6D652D53746174653121301F060355040A0C18496E7465726E6574205769646769747320507479204C74643115301306035504030C0C544C532D41747461636B657230820122300D06092A864886F70D01010105000382010F003082010A0282010100C8820D6C3CE84C8430F6835ABFC7D7A912E1664F44578751F376501A8C68476C3072D919C5D39BD0DBE080E71DB83BD4AB2F2F9BDE3DFFB0080F510A5F6929C196551F2B3C369BE051054C877573195558FD282035934DC86EDAB8D4B1B7F555E5B2FEE7275384A756EF86CB86793B5D1333F0973203CB96966766E655CD2CCCAE1940E4494B8E9FB5279593B75AFD0B378243E51A88F6EB88DEF522A8CD5C6C082286A04269A2879760FCBA45005D7F2672DD228809D47274F0FE0EA5531C2BD95366C05BF69EDC0F3C3189866EDCA0C57ADCCA93250AE78D9EACA0393A95FF9952FC47FB7679DD3803E6A7A6FA771861E3D99E4B551A4084668B111B7EEF7D0203010001A3533051301D0603551D0E04160414E7A92FE5543AEE2FF7592F800AC6E66541E3268B301F0603551D23041830168014E7A92FE5543AEE2FF7592F800AC6E66541E3268B300F0603551D130101FF040530030101FF300D06092A864886F70D01010B050003820101000D5C11E28CF19D1BC17E4FF543695168570AA7DB85B3ECB85405392A0EDAFE4F097EE4685B7285E3D9B869D23257161CA65E20B5E6A585D33DA5CD653AF81243318132C9F64A476EC08BA80486B3E439F765635A7EA8A969B3ABD8650036D74C5FC4A04589E9AC8DC3BE2708743A6CFE3B451E3740F735F156D6DC7FFC8A2C852CD4E397B942461C2FCA884C7AFB7EBEF7918D6AAEF1F0D257E959754C4665779FA0E3253EF2BEDBBD5BE5DA600A0A68E51D2D1C125C4E198669A6BC715E8F3884E9C3EFF39D40838ADA4B1F38313F6286AA395DC6DEA9DAF49396CF12EC47EFA7A0D3882F8B84D9AEEFFB252C6B81A566609605FBFD3F0D17E5B12401492A1A\"),\n message.getCertificatesListBytes().getValue());\n assertEquals(0x000397, (int) message.getCertificatesListLength().getValue());\n assertEquals(\n HandshakeMessageType.CERTIFICATE.getValue(), (byte) message.getType().getValue());\n assertEquals(0x00039A, (int) message.getLength().getValue());\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList() {\n return certificate_;\n }", "@Override\r\n\tpublic Integer[] getCertificate() {\n\t\treturn null;\r\n\t}", "void onSSLCertificateError(UnrecognizedCertificateException exception);", "public interface RequestSecurityPolicy {\n /**\n * When receiving a certificate challenge from Android, the SDK will apply the selected policy for HttpsURLConnection object.\n */\n void applySecurityPolicy(HttpsURLConnection connection);\n}", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "java.util.concurrent.Future<RequestCertificateResult> requestCertificateAsync(\n RequestCertificateRequest requestCertificateRequest);", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "com.google.protobuf.ByteString getCertificate(int index);", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }", "public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }" ]
[ "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.5437803", "0.5416992", "0.5416992", "0.54009324", "0.54009324", "0.53816223", "0.53816223", "0.53511256", "0.53496075", "0.5347178", "0.53442377", "0.5333843", "0.53315103", "0.53315103", "0.53313595", "0.5322931", "0.5321529", "0.5319521", "0.5319521", "0.5298022", "0.528955", "0.5267207", "0.5261137", "0.524984", "0.5241099", "0.5241099", "0.5233831", "0.5214717", "0.5214717", "0.5194357", "0.5188899", "0.51745397", "0.51745397", "0.5172888", "0.5172888", "0.51718104", "0.51712155", "0.51712155", "0.51678413", "0.51419735", "0.51327586", "0.5128028", "0.5128028", "0.51261497", "0.51261497", "0.51211953", "0.51211953", "0.5117721", "0.5111463", "0.5111463", "0.51053166", "0.5096529", "0.50940955", "0.50862277", "0.5079093", "0.5070986", "0.5070986", "0.50682896", "0.5052946", "0.5052946", "0.50495374", "0.502853", "0.502853", "0.5016168", "0.500852", "0.500852", "0.4995684", "0.49941835", "0.49758387", "0.49728176", "0.49658644", "0.49656495", "0.4963552", "0.49632263", "0.49587947", "0.4947556", "0.4944114", "0.49420363", "0.4934878", "0.4934878" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "void setPagination(Pagination pagination);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.63489413", "0.63489413", "0.6292963", "0.6243995", "0.62269914", "0.62218326", "0.62218326", "0.62218326", "0.6183607", "0.6155663", "0.6145756", "0.61215484", "0.61215484", "0.61215484", "0.611186", "0.611186", "0.611186", "0.60768014", "0.60768014", "0.60768014", "0.60672635", "0.6058223", "0.6058223", "0.6058223", "0.60372406", "0.60372406", "0.60372406", "0.60372406", "0.60283583", "0.5976508", "0.59692323", "0.59338796", "0.59338796", "0.59338796", "0.59163123", "0.59163123", "0.59163123", "0.59024614", "0.58727235", "0.58727235", "0.58727235", "0.5870768", "0.5848547", "0.5848547", "0.5848547", "0.5847699", "0.5813962", "0.5813962", "0.5813962", "0.57874626", "0.5781871", "0.5777524", "0.57299465", "0.5725178", "0.57152075", "0.5713959", "0.57117385", "0.56850755", "0.5678876", "0.5660996", "0.5656755", "0.5651155", "0.5624256", "0.56199396", "0.5611919", "0.56036466", "0.5601881", "0.5600284", "0.5598246", "0.55972517", "0.55931854", "0.5583593", "0.5579025", "0.55713296", "0.5566691", "0.5561375", "0.5561375", "0.5561375", "0.55526197", "0.55496484", "0.5548775" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "void setPagination(Pagination pagination);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.6348891", "0.6348891", "0.62920344", "0.62442285", "0.6225836", "0.618311", "0.6154265", "0.61452574", "0.612158", "0.612158", "0.612158", "0.6109977", "0.6109977", "0.6109977", "0.6076912", "0.6076912", "0.6076912", "0.60671026", "0.60580367", "0.60580367", "0.60580367", "0.6037477", "0.6037477", "0.6037477", "0.6037477", "0.6026238", "0.59764546", "0.59670204", "0.593411", "0.593411", "0.593411", "0.5916207", "0.5916207", "0.5916207", "0.5903531", "0.5870854", "0.5870854", "0.5870854", "0.58695704", "0.5848563", "0.5848563", "0.5848563", "0.5847709", "0.5812891", "0.5812891", "0.5812891", "0.57869273", "0.578078", "0.5777121", "0.5728499", "0.57253194", "0.57134813", "0.5713449", "0.5711515", "0.56828964", "0.5678421", "0.5659671", "0.5655334", "0.5650504", "0.56237715", "0.56197613", "0.5611243", "0.560246", "0.56019723", "0.56015205", "0.5596569", "0.5596154", "0.5592746", "0.5582302", "0.55784845", "0.5572092", "0.5566279", "0.5561221", "0.5561221", "0.5561221", "0.55509835", "0.55507916", "0.5548077" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "void setPagination(Pagination pagination);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.6348891", "0.6348891", "0.62920344", "0.62442285", "0.6225836", "0.622166", "0.622166", "0.622166", "0.618311", "0.6154265", "0.61452574", "0.612158", "0.612158", "0.612158", "0.6109977", "0.6109977", "0.6109977", "0.6076912", "0.6076912", "0.6076912", "0.60671026", "0.60580367", "0.60580367", "0.60580367", "0.6037477", "0.6037477", "0.6037477", "0.6037477", "0.6026238", "0.59764546", "0.59670204", "0.593411", "0.593411", "0.593411", "0.5916207", "0.5916207", "0.5916207", "0.5903531", "0.5870854", "0.5870854", "0.5870854", "0.58695704", "0.5848563", "0.5848563", "0.5848563", "0.5847709", "0.57869273", "0.578078", "0.5777121", "0.5728499", "0.57253194", "0.57134813", "0.5713449", "0.5711515", "0.56828964", "0.5678421", "0.5659671", "0.5655334", "0.5650504", "0.56237715", "0.56197613", "0.5611243", "0.560246", "0.56019723", "0.56015205", "0.5596569", "0.5596154", "0.5592746", "0.5582302", "0.55784845", "0.5572092", "0.5566279", "0.5561221", "0.5561221", "0.5561221", "0.55509835", "0.55507916", "0.5548077" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "void setPagination(Pagination pagination);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.63466746", "0.6291854", "0.6243197", "0.62242895", "0.62196964", "0.62196964", "0.62196964", "0.618325", "0.6153492", "0.61445534", "0.6119223", "0.6119223", "0.6119223", "0.61086017", "0.61086017", "0.61086017", "0.60747033", "0.60747033", "0.60747033", "0.60649693", "0.60559654", "0.60559654", "0.60559654", "0.60357666", "0.60357666", "0.60357666", "0.60357666", "0.60267246", "0.59748745", "0.5966729", "0.5932376", "0.5932376", "0.5932376", "0.59141576", "0.59141576", "0.59141576", "0.59020203", "0.5869454", "0.5869454", "0.5869454", "0.58687246", "0.5847525", "0.58463013", "0.58463013", "0.58463013", "0.5811865", "0.5811865", "0.5811865", "0.5786623", "0.57798404", "0.5775852", "0.57290494", "0.572585", "0.5713427", "0.5711845", "0.5711497", "0.5682613", "0.5678506", "0.5660209", "0.5655715", "0.5649218", "0.5623925", "0.5620026", "0.5611829", "0.5602064", "0.56004244", "0.56001663", "0.5596887", "0.5596301", "0.5592298", "0.5583297", "0.5577416", "0.55719936", "0.556666", "0.55594546", "0.55594546", "0.55594546", "0.5552815", "0.5550519", "0.5548215" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "void setPagination(Pagination pagination);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.63489413", "0.63489413", "0.6292963", "0.6243995", "0.62269914", "0.62218326", "0.62218326", "0.62218326", "0.6183607", "0.6155663", "0.6145756", "0.61215484", "0.61215484", "0.61215484", "0.611186", "0.611186", "0.611186", "0.60768014", "0.60768014", "0.60768014", "0.60672635", "0.6058223", "0.6058223", "0.6058223", "0.60372406", "0.60372406", "0.60372406", "0.60372406", "0.60283583", "0.5976508", "0.59692323", "0.59338796", "0.59338796", "0.59338796", "0.59163123", "0.59163123", "0.59163123", "0.59024614", "0.58727235", "0.58727235", "0.58727235", "0.5870768", "0.5848547", "0.5848547", "0.5848547", "0.5847699", "0.5813962", "0.5813962", "0.5813962", "0.57874626", "0.5781871", "0.5777524", "0.57299465", "0.5725178", "0.57152075", "0.5713959", "0.57117385", "0.56850755", "0.5678876", "0.5660996", "0.5656755", "0.5651155", "0.5624256", "0.56199396", "0.5611919", "0.56036466", "0.5601881", "0.5600284", "0.5598246", "0.55972517", "0.55931854", "0.5583593", "0.5579025", "0.55713296", "0.5566691", "0.5561375", "0.5561375", "0.5561375", "0.55526197", "0.55496484", "0.5548775" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "void setPagination(Pagination pagination);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.6348891", "0.6348891", "0.62920344", "0.62442285", "0.6225836", "0.622166", "0.622166", "0.622166", "0.618311", "0.6154265", "0.61452574", "0.612158", "0.612158", "0.612158", "0.6109977", "0.6109977", "0.6109977", "0.6076912", "0.6076912", "0.6076912", "0.60671026", "0.60580367", "0.60580367", "0.60580367", "0.6037477", "0.6037477", "0.6037477", "0.6037477", "0.6026238", "0.59764546", "0.59670204", "0.593411", "0.593411", "0.593411", "0.5916207", "0.5916207", "0.5916207", "0.5903531", "0.5870854", "0.5870854", "0.5870854", "0.58695704", "0.5848563", "0.5848563", "0.5848563", "0.5847709", "0.5812891", "0.5812891", "0.5812891", "0.57869273", "0.578078", "0.5777121", "0.5728499", "0.57253194", "0.57134813", "0.5713449", "0.5711515", "0.56828964", "0.5678421", "0.5659671", "0.5655334", "0.5650504", "0.56237715", "0.56197613", "0.5611243", "0.560246", "0.56019723", "0.56015205", "0.5596569", "0.5596154", "0.5592746", "0.5582302", "0.55784845", "0.5572092", "0.5566279", "0.5561221", "0.5561221", "0.5561221", "0.55509835", "0.55507916", "0.5548077" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "void setPagination(Pagination pagination);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.6348891", "0.6348891", "0.62920344", "0.62442285", "0.6225836", "0.622166", "0.622166", "0.622166", "0.618311", "0.6154265", "0.61452574", "0.612158", "0.612158", "0.612158", "0.6076912", "0.6076912", "0.6076912", "0.60671026", "0.60580367", "0.60580367", "0.60580367", "0.6037477", "0.6037477", "0.6037477", "0.6037477", "0.6026238", "0.59764546", "0.59670204", "0.593411", "0.593411", "0.593411", "0.5916207", "0.5916207", "0.5916207", "0.5903531", "0.5870854", "0.5870854", "0.5870854", "0.58695704", "0.5848563", "0.5848563", "0.5848563", "0.5847709", "0.5812891", "0.5812891", "0.5812891", "0.57869273", "0.578078", "0.5777121", "0.5728499", "0.57253194", "0.57134813", "0.5713449", "0.5711515", "0.56828964", "0.5678421", "0.5659671", "0.5655334", "0.5650504", "0.56237715", "0.56197613", "0.5611243", "0.560246", "0.56019723", "0.56015205", "0.5596569", "0.5596154", "0.5592746", "0.5582302", "0.55784845", "0.5572092", "0.5566279", "0.5561221", "0.5561221", "0.5561221", "0.55509835", "0.55507916", "0.5548077" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "void setPagination(Pagination pagination);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.62242895", "0.62196964", "0.62196964", "0.62196964", "0.618325", "0.6153492", "0.61445534", "0.6119223", "0.6119223", "0.6119223", "0.61086017", "0.61086017", "0.61086017", "0.60747033", "0.60747033", "0.60747033", "0.60649693", "0.60559654", "0.60559654", "0.60559654", "0.60357666", "0.60357666", "0.60357666", "0.60357666", "0.60267246", "0.59748745", "0.5966729", "0.5932376", "0.5932376", "0.5932376", "0.59141576", "0.59141576", "0.59141576", "0.59020203", "0.5869454", "0.5869454", "0.5869454", "0.58687246", "0.5847525", "0.58463013", "0.58463013", "0.58463013", "0.5811865", "0.5811865", "0.5811865", "0.5786623", "0.57798404", "0.5775852", "0.57290494", "0.572585", "0.5713427", "0.5711845", "0.5711497", "0.5682613", "0.5678506", "0.5660209", "0.5655715", "0.5649218", "0.5623925", "0.5620026", "0.5611829", "0.5602064", "0.56004244", "0.56001663", "0.5596887", "0.5596301", "0.5592298", "0.5583297", "0.5577416", "0.55719936", "0.556666", "0.55594546", "0.55594546", "0.55594546", "0.5552815", "0.5550519", "0.5548215" ]
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.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder();", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n return getPagination();\n }", "default Integer getPageSize() {\n return 10;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }\n }", "@Override\n public int getNumOfPageRows() {\n return 10;\n }", "PaginatedResponse<Office> findAllPaginated( int page, int pageSize );", "public Integer getPerPage();", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "LiveData<PagedList<Response>> pagedList();", "public int getRowsPerPage();", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {\n if (paginationBuilder_ != null) {\n return paginationBuilder_.getMessageOrBuilder();\n } else {\n return pagination_ == null ?\n cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n if (paginationBuilder_ == null) {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n } else {\n return paginationBuilder_.getMessage();\n }\n }", "@ApiModelProperty(value = \"Size of the found page\")\n public Integer getPageSize() {\n return pageSize;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;\n }", "int getPageSize();", "int getPageSize();", "int getPageSize();", "int getPageSize();", "public QueryResultBuilder<T> setPage(Option<Page> page);", "public Integer getCurrentPageSize();", "@ApiModelProperty(value = \"Index of the page\")\n public Integer getPage() {\n return page;\n }", "long getPageSize();", "long getPageSize();", "long getPageSize();", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "public int getPageSize() {\n return pageSize;\n }", "List<Activity> findAllPageable(int page, int size);", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "public OrderInfoDTOExample page(Integer page, Integer pageSize) {\n this.offset = page * pageSize;\n this.rows = pageSize;\n return this;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {\n return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;\n }", "Page<SpecimenStatusDTO> findAll(Pageable pageable);", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {\n if (paginationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n pagination_ = value;\n onChanged();\n } else {\n paginationBuilder_.setMessage(value);\n }\n\n return this;\n }", "void findWithPagination(Pagination<Task, Project> pagination);", "Integer getMaxPageResults();", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "Page<EtatOperation> findAll(Pageable pageable);", "Page<HrDocumentRequest> getPendingDocumentRequests(Pageable pageRequest);", "void setPagination(Pagination pagination);", "Page<TypeBonDTO> findAll(Pageable pageable);", "List<E> page(Page page, Long...params);", "@Override\r\n\tpublic Pagination queryPagination(Pagination pagination) {\n\t\treturn null;\r\n\t}", "@Test\r\n\tpublic void test_getAllEmployeesPage2() {\r\n\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)//\r\n\t\t\t\t.queryParam(\"page\", \"2\")//\r\n\t\t\t\t.when()//\r\n\t\t\t\t.get(\"/api/v1/employees\")//\r\n\t\t\t\t.then()//\r\n\t\t\t\t.log()//\r\n\t\t\t\t.body()//\r\n\t\t\t\t.statusCode(200)//\r\n\t\t\t\t.body(\"number\", equalTo(2))//\r\n\t\t\t\t.body(\"content.size()\", equalTo(10));\r\n\r\n\t}", "List selectByExampleWithPage(PaymentTradeExampleExtended exampleExtended);", "public interface PagedResult<T> {\r\n\r\n\t/*\r\n\t * Result code\r\n\t */\r\n\t\r\n\tpublic static final int RESULT_CODE_OK = 0;\r\n\t\r\n\tpublic static final int RESULT_CODE_KO = -1;\r\n\t\r\n\tpublic static final int FIRST_PAGE_INDEX = 1;\r\n\t\r\n\t/**\r\n\t * The method getElementCount() returns this value if the element count is unavalable\r\n\t */\r\n\tpublic final static Integer ELEMENT_COUNT_UNAVAILABLE = -1;\r\n\t\r\n\t/**\r\n\t * <p>The position of the first element of the current pages ( (currentPage-1) * perPage )</p> \r\n\t * \r\n\t * @return\toffset of the first element in this page\r\n\t */\r\n\tpublic Integer getOffset();\r\n\t\r\n\t/**\r\n\t * <p>Maximum number of elements in a page</p>\r\n\t * \r\n\t * @return\tmaximum number of elements in a page\r\n\t */\r\n\tpublic Integer getPerPage();\r\n\r\n\t/**\r\n\t * <p>Total number of elements in all pages</p>\r\n\t * \r\n\t * @return\ttotal number of elements in all pages\r\n\t */\r\n\tpublic Long getElementCount();\r\n\t\r\n\t/**\r\n\t * <p>Position of current page ( in the range 1 - n )</p>\r\n\t * \r\n\t * @return\tposition of current page\r\n\t */\r\n\tpublic Integer getCurrentPage();\t\r\n\t\r\n\t/**\r\n\t * <p>Total number of pages</p>\r\n\t * \r\n\t * @return\ttotal number of pages\r\n\t */\r\n\tpublic Integer getPageCount();\t\r\n\t\r\n\t/**\r\n\t * <p>Number of elements in current page</p>\r\n\t * \r\n\t * @return\tthe size of the current page\r\n\t */\r\n\tpublic Integer getCurrentPageSize();\r\n\t\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic Iterator<T> getPageElements();\r\n\r\n\t/**\r\n\t * <p>Elements in the current page</p>\r\n\t * \r\n\t * @return\telements in the current page\r\n\t */\r\n\tpublic List<T> getPageElementsList();\r\n\t\r\n\t/**\r\n\t * <p>Iterator over page numbers ( 1 - n )</p>\r\n\t * \r\n\t * @return\titerator over page numbers ( 1 - n )\r\n\t */\r\n\tpublic Iterator<Integer> getPageCountIterator();\r\n\t\r\n\t/**\r\n\t * Result code for this page\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getResultCode();\r\n\t\r\n\t/**\r\n\t * Additional info of this page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Map<String, Object> getInfo();\r\n\t\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isLastPage();\r\n\t\r\n\t/** \r\n\t * <code>true</code> if this is the last page.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFirstPage();\t\r\n\t\r\n\t\r\n\t// ******* additiona method for virtual paging *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * VIRTUAL PAGING IS A METHOD WHERE A VIRTUAL PAGE IS MAPPED INTO A BIGGER PAGE *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * Virtual search key\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic String getVirtualSearchKey();\r\n\t\r\n\tpublic Integer getRealPerPage();\r\n\t\r\n\tpublic Integer getRealCurrentPage();\r\n\t\r\n\tpublic PagedResult<T> getVirtualPage( int currentPage );\r\n\t\r\n\tpublic boolean isSupportVirtualPaging();\r\n\t\r\n\t\r\n\t// ******* additiona method for full result *******\r\n\t\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t// * FULL RESULT IS A METHOD OF ACCESS PAGE WHERE ALL ELEMENTS ARE ACCESSIBLE ONLY ITERATING *\r\n\t// *******************************************************************************************\r\n\t// *******************************************************************************************\r\n\t\r\n\t/**\r\n\t * <code>true</code> if the the page contains the full result\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isFullResult();\r\n\r\n}", "private int retornaPerPageEsperado(int page) {\n return given().\n param(\"page\",page).\n when().\n get(LISTA_USUARIOS_ENDPOINT).\n then().\n // faz de novo a requisicao pra checar se realmente bateu no endpoint\n statusCode(HttpStatus.SC_OK).\n // extrai o valor do campo per_page e atribui a variavel\n extract().\n path(\"per_page\");\n }", "public IScapSyncSearchPage[] getPages();", "Page<ExtendedTextHeader> findAll(Pageable pageable);", "@RequestMapping(\"query\")\r\n\t@ResponseBody\r\n\tpublic EasyUIResult findItemByPage(@RequestParam(value=\"page\")Integer page,Integer rows) {\r\n\t\tSystem.out.println(itemService.findItemByPage(page, rows));\r\n\t\treturn itemService.findItemByPage(page, rows);\r\n\t\t\r\n\t}", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "public Dimension getPageSize()\n {\n return pageSize;\n }", "Page<CoveredActivityDTO> findAll(Pageable pageable);", "@Override\n\tpublic Page showChargeCarByPage() {\n\t\tList<CarInfoDto> carInfolist = chargeCarMapper.selectCarInfoByPage();\n//\t\tint count = chargeCarMapper.selectCarInfoCount();\n\t\t\n\t\tString count = chargeCarMapper.selectCarInfoCount();\n\t\t//要有一个查询总数的sql\n\t\tSystem.out.println(\"----count----\"+count);\n\t\tPage page = new Page(Integer.parseInt(count), 10,\n\t\t\t\t1);\n\t\tpage.setList(carInfolist);\n\t\tSystem.out.println(carInfolist);\n\t\treturn page;\n\t}", "Pagination<SdkPhone> selectByExample(SdkPhoneExample example, RowBounds rowbounds);", "Page<Accessprofile> listAllByPage(Pageable pageable);", "List selectByExampleWithPage(PaymentTradeExample example);", "public List<AsxDataVO> findByPage(int pageNumber, int pageSize) {\n\t\t Query query = new Query();\r\n\t\t query.addCriteria(Criteria.where(\"email\").exists(true));\r\n\t\t query.addCriteria(Criteria.where(\"status\").is(Constants.MSG_STATUS_NORMAL));\r\n\t\t query.with(new Sort(Sort.Direction.DESC, \"_id\"));\r\n\t\t query.skip(pageSize * pageNumber);\r\n\t\t query.limit(pageSize);\r\n\t\t \r\n\t\treturn mongoTemplate.find(query, AsxDataVO.class);\t\t\r\n\t}", "Page<NotificationDTO> findAll(Pageable pageable);", "Page<SygTypeServiceDTO> findAll(Pageable pageable);", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "public void customLoadMoreDataFromApi(int offset) {\n }", "private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }", "Page<RequestOtherNiazsanjiDTO> findAll(Pageable pageable);" ]
[ "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.63489413", "0.63489413", "0.6292963", "0.6243995", "0.62269914", "0.62218326", "0.62218326", "0.62218326", "0.6183607", "0.6155663", "0.6145756", "0.61215484", "0.61215484", "0.61215484", "0.611186", "0.611186", "0.611186", "0.60768014", "0.60768014", "0.60768014", "0.60672635", "0.6058223", "0.6058223", "0.6058223", "0.60372406", "0.60372406", "0.60372406", "0.60372406", "0.60283583", "0.5976508", "0.59692323", "0.59338796", "0.59338796", "0.59338796", "0.59163123", "0.59163123", "0.59163123", "0.59024614", "0.58727235", "0.58727235", "0.58727235", "0.5870768", "0.5848547", "0.5848547", "0.5848547", "0.5847699", "0.5813962", "0.5813962", "0.5813962", "0.57874626", "0.5781871", "0.5777524", "0.57299465", "0.5725178", "0.57152075", "0.5713959", "0.57117385", "0.56850755", "0.5678876", "0.5660996", "0.5656755", "0.5651155", "0.5624256", "0.56199396", "0.5611919", "0.56036466", "0.5601881", "0.5600284", "0.5598246", "0.55972517", "0.55931854", "0.5583593", "0.5579025", "0.55713296", "0.5566691", "0.5561375", "0.5561375", "0.5561375", "0.55526197", "0.55496484", "0.5548775" ]
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 = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOrdenes(null).getId();\n controlarUsuario = Fabrica.getInstance().getControladorUsuarios(idUsuariosControlador);\n controlarProducto = Fabrica.getInstance().getControladorProductos(idProductosControlador);\n controlarOrden = Fabrica.getInstance().getControladorOrdenes(idOrdenesControlador);\n }", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "public JanelaPrincipal() {\n initComponents();\n }", "public TelaPrincipal() {\n initComponents();\n Consultorio.Instance().efetuaBalanco(false);\n setSize(1029,764);\n }", "public VentanaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "public VentaPrincipal() {\n initComponents();\n }", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public TelaPrincipalADM() {\n initComponents();\n }", "public PantallaPrincipal() {\n initComponents();\n }", "private void menuPrincipal() {\r\n\t\ttelaPrincipal = new TelaPrincipal();\r\n\t\ttelaPrincipal.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttelaPrincipal.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t}", "public vistaPrincipal() {\n initComponents();\n }", "public TelaPrincipalLocutor() {\n initComponents();\n\n }", "public formPrincipal() {\n initComponents();\n }", "public VentanaPrincipal() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(this);\n\t\ttry {\n\t\t\tcontroladorCliente = new ControladorVentanaCliente();\n\t\t\tcargarFranquicia();\n\t\t\tcargarTipoTransacion();\n\t\t\ttipoCompra();\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}", "public TelaPrincipalMDI() {\n initComponents();\n }", "public Principal()\n {\n\n }", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "public VPrincipal() {\n initComponents();\n }", "public TelaPrincipal() {\n setExtendedState(MAXIMIZED_BOTH);\n initComponents();\n }", "public VentanaPrincipal() {\n initComponents();\n menuTelefono.setVisible(false);\n menuItemCerrarSesion.setVisible(false);\n controladorUsuario = new ControladorUsuario();\n\n ventanaRegistrarUsuario = new VentanaRegistrarUsuario(controladorUsuario);\n ventanaBuscarUsuarios = new VentanaBuscarUsuarios(controladorUsuario, controladorTelefono);\n \n }", "public TelaPrincipal() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public frmPrincipal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n ab = new adminbarra(pg_Ordenes);\n }", "public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }", "public JfrmPrincipal() {\n initComponents();\n }", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "public JFramePrincipal() {\n initComponents();\n controladorPrincipal = new ControladorPrincipal(this);\n }", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n }", "public Principal() {\n initComponents();\n Desabilitar();\n ChoicePro.add(\"\");\n ChoicePro.add(\"Guerrero\");\n ChoicePro.add(\"Mago\");\n ChoicePro.add(\"Arquero\");\n Llenar();\n\n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public FrameCadastroUsuario(Principal principal) {\n initComponents();\n\t\tthis.principal = principal;\n }", "@PostMapping(\"/account/create\")\n @PreAuthorize(\"hasRole('USER') or hasRole('ADMIN')\")\n\tpublic ResponseEntity createAccount(\n\t \t @AuthenticationPrincipal UserDetailsImpl userDetail\n\t ){\n\t\t\tAccount account = new Account(userDetail.getId());\n\t\t\t// save the account to the database\n\t\t\tAccount createdAccount = accountRepository.save(account);\n\t \t // response\n\t return ResponseEntity.ok(\n\t \t\tcreatedAccount\n\t );\n\t }", "public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "Account create();", "public PrincipalSinUsuario(Principal principal) {\n initComponents();\n this.principal = principal;\n }", "void create(Authority authority) throws ExTrackDAOException;", "public Principal() {\r\n\t\tinitialize();\r\n\t}", "public TelaPrincipal() {\n\n\t\ttry {\n\n\t\t\t// Aparência do windows ...\n\n\t\t\tUIManager\n\t\t\t\t\t.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\n\t\t\t// Inicializando e lançando uma barra de menu e seus atributos ...\n\n\t\t\tbarraDeMenu = new JMenuBar();\n\t\t\tthis.setJMenuBar(barraDeMenu);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\testoque = new JMenu(\"Estoque\");\n\t\t\tbarraDeMenu.add(estoque);\n\n\t\t\tcompras = new JMenuItem(\"Gerenciar (Compras)\");\n\n\t\t\tcompras.addActionListener(this);\n\t\t\testoque.add(compras);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tvendas = new JMenu(\"Vendas\");\n\t\t\tbarraDeMenu.add(vendas);\n\n\t\t\trealizarVenda = new JMenuItem(\"Realizar Venda\");\n\n\t\t\trealizarVenda.addActionListener(this);\n\n\t\t\tvendas.add(realizarVenda);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tcadastros = new JMenu(\"Cadastros\");\n\t\t\tbarraDeMenu.add(cadastros);\n\n\t\t\tcadProduto = new JMenuItem(\"Produto\");\n\t\t\tcadastros.add(cadProduto);\n\n\t\t\tcadProduto.addActionListener(this);\n\n\t\t\tcadFornecedor = new JMenuItem(\"Fornecedor\");\n\t\t\tcadFornecedor.addActionListener(this);\n\n\t\t\tcadastros.add(cadFornecedor);\n\n\t\t\tcadCliente = new JMenuItem(\"Cliente\");\n\n\t\t\tcadCliente.addActionListener(this);\n\t\t\tcadastros.add(cadCliente);\n\n\t\t\tcadContas = new JMenuItem(\"Contas a Pagar\");\n\t\t\tcadastros.add(cadContas);\n\n\t\t\tcadContas.addActionListener(this);\n\n\t\t\tcadLembretes = new JMenuItem(\"Lembretes\");\n\n\t\t\tcadastros.add(cadLembretes);\n\n\t\t\tcadLembretes.addActionListener(this);\n\n\t\t\tcadUsuarios = new JMenuItem(\"Usuários\");\n\n\t\t\tcadUsuarios.addActionListener(this);\n\t\t\tcadastros.add(cadUsuarios);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\trelatorios = new JMenu(\"Relatórios\");\n\t\t\tbarraDeMenu.add(relatorios);\n\n\t\t\tvendasRealizadas = new JMenuItem(\"Vendas Realizadas\");\n\t\t\tvendasRealizadas.addActionListener(this);\n\n\t\t\trelatorios.add(vendasRealizadas);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tutilitarios = new JMenu(\"Utilitários\");\n\t\t\tbarraDeMenu.add(utilitarios);\n\n\t\t\tcalculadora = new JMenuItem(\"Calculadora\");\n\t\t\tutilitarios.add(calculadora);\n\n\t\t\tcalculadora.addActionListener(this);\n\n\t\t\tblocoDeNotas = new JMenuItem(\"Bloco De Notas\");\n\t\t\tblocoDeNotas.addActionListener(this);\n\n\t\t\tutilitarios.add(blocoDeNotas);\n\n\t\t\ttecladoVirtual = new JMenuItem(\"Teclado Virtual\");\n\t\t\tutilitarios.add(tecladoVirtual);\n\n\t\t\ttecladoVirtual.addActionListener(this);\n\n\t\t\tbloquearSistema = new JMenuItem(\"Bloquear Sistema\");\n\n\t\t\tbloquearSistema.addActionListener(this);\n\t\t\tutilitarios.add(bloquearSistema);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tgerenciar = new JMenu(\"Gerenciar\");\n\t\t\tbarraDeMenu.add(gerenciar);\n\n\t\t\tgerProdutos = new JMenuItem(\"Produtos\");\n\n\t\t\tgerProdutos.addActionListener(this);\n\t\t\tgerenciar.add(gerProdutos);\n\n\t\t\tgerFornecedores = new JMenuItem(\"Fornecedores\");\n\t\t\tgerFornecedores.addActionListener(this);\n\n\t\t\tgerenciar.add(gerFornecedores);\n\n\t\t\tgerClientes = new JMenuItem(\"Clientes\");\n\n\t\t\tgerClientes.addActionListener(this);\n\t\t\tgerenciar.add(gerClientes);\n\n\t\t\tgerContas = new JMenuItem(\"Contas a Pagar\");\n\t\t\tgerContas.addActionListener(this);\n\n\t\t\tgerenciar.add(gerContas);\n\n\t\t\tgerLembretes = new JMenuItem(\"Lembretes\");\n\t\t\tgerLembretes.addActionListener(this);\n\n\t\t\tgerenciar.add(gerLembretes);\n\n\t\t\tgerUsuarios = new JMenuItem(\"Usuários\");\n\n\t\t\tgerUsuarios.addActionListener(this);\n\t\t\tgerenciar.add(gerUsuarios);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tajuda = new JMenu(\"Ajuda\");\n\t\t\tbarraDeMenu.add(ajuda);\n\n\t\t\tSobreSoftware = new JMenuItem(\"Sobre o Software\");\n\n\t\t\tSobreSoftware.addActionListener(this);\n\t\t\tajuda.add(SobreSoftware);\n\n\t\t\tdesenvolvedores = new JMenuItem(\"Desenvolvedores\");\n\n\t\t\tdesenvolvedores.addActionListener(this);\n\n\t\t\tajuda.add(desenvolvedores);\n\n\t\t\tsair = new JMenu(\"Sair\");\n\t\t\tbarraDeMenu.add(sair);\n\n\t\t\tpainelDeElementos = new JDesktopPane();\n\t\t\tpainelDeElementos.setBackground(UIManager\n\t\t\t\t\t.getColor(\"Button.background\"));\n\n\t\t\tbotaoEventos = new JLabel(\n\t\t\t\t\tnew ImageIcon(\n\t\t\t\t\t\t\tTelaPrincipal.class\n\t\t\t\t\t\t\t\t\t.getResource(\"/views/principais/tela_de_inicio/png/Eventos.png\")));\n\n\t\t\tbotaoEventos.addMouseListener(this);\n\n\t\t\tbotaoEventos.setBounds(540, 665, 107, 28);\n\t\t\tpainelDeElementos.add(botaoEventos);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tpainelTabelaContas = new JPanel();\n\t\t\tpainelTabelaContas.setLayout(new BorderLayout());\n\t\t\tpainelTabelaContas.setBounds(200, 770, 791, 115);\n\n\t\t\tpainelDeElementos.add(painelTabelaContas);\n\n\t\t\tcontasPagar_Tabela = new JTable(modeloTabelaContas) {\n\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\tcontasPagar_Tabela.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\tfor (int i = 0; i < 6; i++) {\n\n\t\t\t\tcontasPagar_Tabela.getColumnModel().getColumn(i)\n\t\t\t\t\t\t.setPreferredWidth(250);\n\n\t\t\t}\n\n\t\t\tJScrollPane scrollTabelaContas = new JScrollPane(contasPagar_Tabela);\n\t\t\tpainelTabelaContas.add(scrollTabelaContas);\n\n\t\t\tcontasPagar_Tabela\n\t\t\t\t\t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\tcontasPagar_Tabela.addMouseListener(this);\n\n\t\t\tcontasPagar_Tabela.getTableHeader().setReorderingAllowed(false);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tpainelTabelaLembretes = new JPanel();\n\t\t\tpainelTabelaLembretes.setLayout(new BorderLayout());\n\t\t\tpainelTabelaLembretes.setBounds(200, 1110, 791, 115);\n\n\t\t\tpainelDeElementos.add(painelTabelaLembretes);\n\n\t\t\tlembretes_Tabela = new JTable(modeloTabelaLembretes) {\n\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\tlembretes_Tabela\n\t\t\t\t\t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\tlembretes_Tabela.addMouseListener(this);\n\n\t\t\tlembretes_Tabela.getTableHeader().setReorderingAllowed(false);\n\n\t\t\tlembretes_Tabela.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\n\t\t\t\tlembretes_Tabela.getColumnModel().getColumn(i)\n\t\t\t\t\t\t.setPreferredWidth(250);\n\n\t\t\t}\n\n\t\t\tJScrollPane scrollTabelaLembretes = new JScrollPane(\n\t\t\t\t\tlembretes_Tabela);\n\n\t\t\tpainelTabelaLembretes.add(scrollTabelaLembretes);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tpainelTabelaAniversarios = new JPanel();\n\t\t\tpainelTabelaAniversarios.setLayout(new BorderLayout());\n\t\t\tpainelTabelaAniversarios.setBounds(200, 1110, 791, 115);\n\n\t\t\tpainelDeElementos.add(painelTabelaAniversarios);\n\n\t\t\taniversarios_Tabela = new JTable(modeloTabelaAniversario) {\n\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\taniversarios_Tabela\n\t\t\t\t\t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\taniversarios_Tabela.addMouseListener(this);\n\n\t\t\taniversarios_Tabela.getTableHeader().setReorderingAllowed(false);\n\n\t\t\taniversarios_Tabela.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\n\t\t\t\taniversarios_Tabela.getColumnModel().getColumn(i)\n\t\t\t\t\t\t.setPreferredWidth(250);\n\n\t\t\t}\n\n\t\t\tJScrollPane scrollTabelaAniversarios = new JScrollPane(\n\t\t\t\t\taniversarios_Tabela);\n\n\t\t\tpainelTabelaAniversarios.add(scrollTabelaAniversarios);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tfundoTabela = new JLabel();\n\n\t\t\tfundoTabela\n\t\t\t\t\t.setIcon(new ImageIcon(\n\t\t\t\t\t\t\tTelaPrincipal.class\n\t\t\t\t\t\t\t\t\t.getResource(\"/views/principais/tela_de_inicio/png/Fundo_Tabelas.PNG\")));\n\n\t\t\tfundoTabela.setBounds(138, 700, 900, 580);\n\t\t\tpainelDeElementos.add(fundoTabela);\n\n\t\t\tfundo = new JLabel(\n\t\t\t\t\tnew ImageIcon(\n\t\t\t\t\t\t\tTelaPrincipal.class\n\t\t\t\t\t\t\t\t\t.getResource(\"/views/principais/tela_de_inicio/jpg/Fundo.jpg\")));\n\n\t\t\tfundo.setBounds(0, -5, 2125, 1245);\n\t\t\tpainelDeElementos.add(fundo);\n\n\t\t\t// Propriedades da tela ...\n\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t// this.setExtendedState(MAXIMIZED_BOTH);\n\n\t\t\tthis.setSize(1200, 750);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\tthis.setContentPane(painelDeElementos);\n\t\t\tthis.setTitle(\"Thallyta Móveis - Bem Vindo (a)\");\n\t\t\tthis.setVisible(true);\n\n\t\t\tadicionandoValoresAsTabelas();\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\n\t\t\te.getStackTrace();\n\n\t\t}\n\n\t}", "public void crearPrincipal(String nameFile, String fileClases,int tipoClase, Boolean f_gc, Boolean f_nucl, Boolean f_cod, Boolean f_k, int k) throws IOException{\n //Primero leer las clases para agregarlas al final\n ReadClasses c= new ReadClasses();\n classes=c.leer(fileClases, tipoClase);\n cat=c.getCat();\n phylum=c.getPhylum();\n specie= c.getSpecie();\n if (tipoClase==1)\n clasDif=c.getCatDif();\n //clasDif=c.getCat();\n else\n if (tipoClase==2)\n clasDif=c.getPhylumDif();\n //clasDif=c.getPhylum();\n else\n clasDif=c.getSpecieDif();\n id=c.getId();\n if (f_cod)\n crearCodon();\n if (f_k)\n crearKmers4();\n //Crear encabezado de Arff\n BufferedWriter bufferArff =crearEncArff(nameFile,f_gc, f_nucl,f_cod,f_k,k, tipoClase);\n //Adicionar los datos a la base (mismo orden)\n leerFichero(nameFile, bufferArff,f_gc, f_nucl, f_cod, f_k, k, tipoClase);\n\n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public InicioPrincipal() {\n initComponents();\n }", "private void arrancaHiloPrincipal() {\n //Creo objeto hilo principal\n HiloPrincipal hilo = new HiloPrincipal(this);\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "public TelaPrincipal3() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(CadastroFuncionario.class.getName()).log(Level.SEVERE, null, ex);\n }\n initComponents();\n BeansLogin l = new BeansLogin();\n cpf.setText(\"Bem Vindo, \"+l.getNome());\n String credito = \"\" + l.getCredito();\n saldoMostrar.setText(credito);\n }", "public FRM_MenuPrincipal() {\n initComponents();\n archivos = new ArchivoUsuarios(); \n controlador = new CNTRL_MenuPrincipal(this, archivos);\n agregarControlador(controlador);\n setResizable(false);\n ordenarVentanas();\n }", "public PantallaPrincipal() {\n gestor= new Gestor();\n initComponents();\n inicializarTablaCarreras();\n inicializarTablaCorredorTotales();\n inicializarTablaCorredor();\n mostrarCarreras();\n mostrarCorredoresTotales();\n \n \n }", "public frm_tutor_subida_prueba() {\n }", "public IAuthorizationPrincipal newPrincipal(String key, Class type);", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public FormPrincipal() {\n initComponents();\n setLocationRelativeTo( null );\n \n }", "Authorizor createAuthorizor();", "public JFrmPrincipal() {\n initComponents();\n }", "public GUI_Principal() {\n initComponents();\n \n ce = new Calculo_Ecuacion();\n inicializaValores();\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public FramePrincipal() {\n\t\tinitComponents();\n\t}", "public frmPrincipal() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n btnReiniciar.setEnabled(false);\n txtSuma.setEditable(false);\n txtSupletorio.setEnabled(false);\n btnObtenerNotaFinal.setEnabled(false);\n txtNotaFinal.setEditable(false);\n }", "public VentanaPrincipal() {\r\n\t\t\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 643, 414);\r\n\t\t\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\t\r\n\t\tmnPersona = new JMenu(\"Persona\");\r\n\t\tmenuBar.add(mnPersona);\r\n\t\t\r\n\t\tmntmAgregar = new JMenuItem(\"Agregar\");\r\n\t\tmnPersona.add(mntmAgregar);\r\n\t\t\r\n\t\tmntmModificar = new JMenuItem(\"Modificar\");\r\n\t\tmnPersona.add(mntmModificar);\r\n\t\t\r\n\t\tmntmListar=new JMenuItem(\"Listar\");\r\n\t\tmnPersona.add(mntmListar);\r\n\t\t\r\n\t\tmntmEliminar = new JMenuItem(\"Eliminar\");\r\n\t\tmnPersona.add(mntmEliminar);\r\n\t\t\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\t\r\n\r\n\t}", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "private void createSubject(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // Formulareingaben prüfen\n String name = request.getParameter(\"name\");\n\n Subject subject = new Subject(name);\n List<String> errors = this.validationBean.validate(subject);\n\n // Neue Kategorie anlegen\n if (errors.isEmpty()) {\n this.subjectBean.saveNew(subject);\n }\n\n // Browser auffordern, die Seite neuzuladen\n if (!errors.isEmpty()) {\n FormValues formValues = new FormValues();\n formValues.setValues(request.getParameterMap());\n formValues.setErrors(errors);\n\n HttpSession session = request.getSession();\n session.setAttribute(\"subjects_form\", formValues);\n }\n\n response.sendRedirect(request.getRequestURI());\n }", "public Team create(TeamDTO teamForm);", "AliciaLab createAliciaLab();", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public FramePrincipal() {\r\n initComponents();\r\n }", "@PostMapping(\"/authority\")\n @Timed\n @PreAuthorize(\"hasRole(\\\"\" + AuthoritiesConstants.ADMIN + \"\\\")\")\n public ResponseEntity<Authority> createAuthority(@Valid @RequestBody Authority authority) throws URISyntaxException {\n log.debug(\"REST request to save Authority : {}\", authority);\n\n Authority newAuthority = userService.createAuthority(authority);\n return ResponseEntity.created(new URI(\"/api/authority/\" + newAuthority.getName()))\n .headers(HeaderUtil.createAlert( \"userManagement.created\", newAuthority.getName()))\n .body(newAuthority);\n }", "@PostMapping(\"/createAccount\")\n public ModelAndView createNewAccount(AccountCreateDTO createDTO){\n ModelAndView modelAndView = new ModelAndView();\n\n accountService.createAccount(createDTO);\n modelAndView.addObject(\"successMessage\", \"Account has been created\");\n modelAndView.setViewName(\"accountPage\");\n\n return modelAndView;\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\r\n\t}", "public MenuPrincipal() {\n initComponents();\n \n }", "public abstract Anuncio creaAnuncioTematico();", "Compuesta createCompuesta();", "public abstract Anuncio creaAnuncioIndividualizado();", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public FramePrincipal() {\n initComponents();\n }", "public Principal_jefe_decredito() {\n initComponents();\n\n }", "void crearNuevaPersona(Persona persona);", "public VentanaPrincipal() {\n \n initComponents();\n DefaultComboBoxModel dcm = new DefaultComboBoxModel();\n for (LookAndFeelInfo lfi : UIManager.getInstalledLookAndFeels()){\n dcm.addElement(lfi.getName());\n }\n jComboBoxTema.setModel(dcm); \n\n String tema=UIManager.getLookAndFeel().getName(); //selecciono en el jComboBox el tema que tiene aplicado\n jComboBoxTema.setSelectedItem(tema); \n jLabelAplicado.setText(\"Tema Aplicado: \" + UIManager.getInstalledLookAndFeels()[jComboBoxTema.getSelectedIndex()].getClassName());\n\n }", "public JfPrincipal() {\n super(\"SURGI - Sistema Unificado para Registro e Gerenciamento de Informações - \" + versao.getVersao() + \" - \" + versao.getAno());\n initComponents();\n\n //Altera icone na barra de titulo\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.getImage(\"C:/SURGI/imagens/SURGI32x32.png\");\n this.setIconImage(img);\n\n //maximiza tela\n this.setExtendedState(MAXIMIZED_BOTH);\n\n //centraliza tela\n setSize(getWidth(), getHeight());\n setLocationRelativeTo(null);\n\n jlbVersao.setText(versao.getVersao());\n iniciaJfLogin();\n jfLogin.fechar();\n jfLogin = null;\n \n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public Principal() {\n initComponents();\n setResizable(false);\n setLocationRelativeTo(null);\n asignarListeners();\n listaGatos = Utilidad.leerArchivoGatos();\n listaPerros = Utilidad.leerArchivoPerros();\n // Actualizacion al iniciar el proyecto, carga de informacion de los\n // archivos planos\n actualizarListas();\n }", "public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public Principal() {\n initComponents();\n empresaControlador = new EmpresaControlador();\n clienteControlador = new ClienteControlador();\n vehiculoControlador = new VehiculoControlador();\n servicioControlador = new ServicioControlador();\n archivoObjeto = new ArchivoObjeto(\"/home/diego/UPS/56/ProgramacionAplicada/Parqueadero/src/archivo/ClienteArchivo.obj\");// Ruta Absolojuta\n archivosBinarios = new ArchivosBinarios();\n archivosBinariosAleatorio = new ArchivosBinariosAleatorio(\"ServicioArchivo.dat\");//Ruta relativa\n }", "public Principal() {\n initComponents();\n setLocationRelativeTo(null);\n deshabilitarPermisos();\n String titulos[] = {\"Nº\", \"Fecha y Hora\", \"Actividad\"};\n modeloTabla.setColumnIdentifiers(titulos);\n this.tabla.setModel(modeloTabla);\n }", "private static Principal getPrincipal(String name) {\n return new Principal() {\n @Override\n public String getName() {\n return name;\n }\n };\n }", "Klassenstufe createKlassenstufe();", "@RequestMapping(method=RequestMethod.POST)\n\tpublic User create(@AuthenticationPrincipal @RequestBody UserEntry entry) {\n\t\tUser user = new User(entry);\n\t\tuser.setUserId(counter.getNextUserIdSequence());\n\t\tuser.setRoleId(role.findByIsDefault(true).getRoleId());\n\t\tPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\tString hashedPassword = passwordEncoder.encode(user.getPassword());\n\t\tuser.setPassword(hashedPassword);\n\t\treturn repo.save(user);\n\t}", "public FormPrincipal(String privilegio) {\r\n\r\n initComponents();\r\n// jTextFieldPreco.setText(\"0.0\");\r\n// System.out.println(Float.valueOf(\"\"));\r\n if (privilegio.equals(\"administrador\") == false) {\r\n jButtonNovoUsuario.setEnabled(false);\r\n jButtonRemover.setEnabled(false);\r\n\r\n }\r\n atualizarLinhas();\r\n\r\n }" ]
[ "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.6125633", "0.61082894", "0.6100193", "0.60937274", "0.6085505", "0.60816705", "0.6049667", "0.6021717", "0.6018111", "0.6016269", "0.6012894", "0.5999516", "0.5999516", "0.5999516", "0.5999516", "0.5999516", "0.5999516", "0.5999516", "0.5999516", "0.5999516", "0.5993683", "0.5977167", "0.59688556", "0.59654737", "0.5960373", "0.5960317", "0.5908296", "0.59041303", "0.585032", "0.5812807", "0.5805627", "0.58015823", "0.57908773", "0.57590365", "0.57190156", "0.5686974", "0.5684886", "0.56817377", "0.5668661", "0.5664746", "0.56622684", "0.5660059", "0.5635646", "0.5623466", "0.5615411", "0.56124747", "0.56081295", "0.5607274", "0.557811", "0.557053", "0.5545246", "0.55443907", "0.5533017", "0.5532104", "0.5516777", "0.5516159", "0.5512787", "0.5504585", "0.5497369", "0.54853916", "0.5475902", "0.5472816", "0.5468196", "0.54659677", "0.5460705", "0.5459924", "0.54550517", "0.54400027", "0.5430594", "0.54279697", "0.54229236", "0.5422168", "0.541293", "0.5411042", "0.5409398", "0.53872585", "0.53812355", "0.537576", "0.5373899" ]
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 initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.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.69417095", "0.6934517", "0.6930924", "0.6926761", "0.69241685", "0.6923851", "0.69112706", "0.6910913", "0.689217", "0.689193", "0.6890017", "0.68896353", "0.6888143", "0.68825865", "0.6881063", "0.6880471", "0.6877822", "0.68752986", "0.6873734", "0.68713146", "0.6859294", "0.6856707", "0.685489", "0.6854541", "0.68543345", "0.68526614", "0.68516856", "0.68516856", "0.6842822", "0.6836592", "0.6836195", "0.68277925", "0.6827518", "0.68260497", "0.682339", "0.68222433", "0.6816619", "0.6815844", "0.68096834", "0.6808133", "0.68078655", "0.6807532", "0.68070555", "0.6802426", "0.6794083", "0.679347", "0.6791848", "0.6790225", "0.6788846", "0.67884487", "0.6787538", "0.67819446", "0.6766094", "0.676505", "0.6764832", "0.67562455", "0.6754961", "0.67515653", "0.6750421", "0.6742601", "0.673875", "0.67371166", "0.6735209", "0.6732373", "0.6727282", "0.6726048", "0.6719771", "0.67154175", "0.6714355", "0.671359", "0.67079127", "0.670646", "0.670331", "0.6700197", "0.669957", "0.6698499", "0.6697054", "0.6693929", "0.6690299", "0.66896695" ]
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 }", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "protected void setIdentity(long identity)\n\t{\n\t\tthis.identity=new Long(identity);\n\t}", "abstract public void setUserData(Object data);", "void setUserData(Object userData);", "public void setIdentity(String identity) {\n\t\tthis.identity = identity;\n\t}", "private void setUser(Map<String, Object> data) {\n this.setUser(ID(), data);\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setUserData(Object userData) {\n this.userData = userData;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setUserData (Object userData) {\n\t\tthis.userData = userData;\n\t}", "public void setIdTokenClaimsSet(IDTokenClaimsSet idTokenClaimsSet) {\n if (idTokenClaimsSet != null) {\n this.idTokenClaimsSet = idTokenClaimsSet.toJSONObject();\n } else {\n this.idTokenClaimsSet = null;\n }\n }", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }", "void setUserData(KingdomUser user, String path, Object value);", "void setUser(OSecurityUser user);", "@Override\n public boolean storeInIdentityDataStore(String userName, UserStoreManager userStoreManager, String operationType,\n Map<String, String> claims) throws UserStoreException {\n if (PRE_SET_USER_CLAIM_VALUES.equals(operationType)) {\n boolean isAccountLocked = Boolean.parseBoolean(claims.get(UserIdentityDataStore.ACCOUNT_LOCK));\n if (isAccountLocked) {\n IdentityErrorMsgContext customErrorMessageContext = new IdentityErrorMsgContext(UserCoreConstants\n .ErrorCode.USER_IS_LOCKED);\n IdentityUtil.setIdentityErrorMsg(customErrorMessageContext);\n }\n }\n\n // No need to separately handle if data identityDataStore is user store based.\n if (isUserStoreBasedIdentityDataStore() || isStoreIdentityClaimsInUserStoreEnabled(userStoreManager)) {\n return true;\n }\n\n // Top level try and finally blocks are used to unset thread local variables.\n try {\n if (!IdentityUtil.threadLocalProperties.get().containsKey(operationType)) {\n IdentityUtil.threadLocalProperties.get().put(operationType, true);\n\n UserIdentityClaim userIdentityClaim = null;\n if (!StringUtils.equalsIgnoreCase(operationType, PRE_USER_ADD_CLAIM_VALUES)) {\n // We avoid loading claims for pre user add operations.\n userIdentityClaim = identityDataStore.load(userName, userStoreManager);\n }\n\n if (userIdentityClaim == null) {\n userIdentityClaim = new UserIdentityClaim(userName);\n }\n\n Iterator<Map.Entry<String, String>> claimsIterator = claims.entrySet().iterator();\n\n while (claimsIterator.hasNext()) {\n Map.Entry<String, String> claim = claimsIterator.next();\n String key = claim.getKey();\n String value = claim.getValue();\n if (StringUtils.isEmpty(key)) {\n continue;\n }\n if (key.contains(UserCoreConstants.ClaimTypeURIs.IDENTITY_CLAIM_URI_PREFIX)) {\n userIdentityClaim.setUserIdentityDataClaim(key, value);\n claimsIterator.remove();\n }\n }\n\n // Storing the identity claims and challenge questions.\n try {\n identityDataStore.store(userIdentityClaim, userStoreManager);\n } catch (IdentityException e) {\n throw new UserStoreException(\n \"Error while saving user identityDataStore data for user : \" + userName, e);\n }\n }\n return true;\n } finally {\n // Remove thread local variable.\n IdentityUtil.threadLocalProperties.get().remove(operationType);\n }\n }", "public void setCreateUserIdentity(Short createUserIdentity) {\n this.createUserIdentity = createUserIdentity;\n }", "public void setCreateUserIdentity(Short createUserIdentity) {\n this.createUserIdentity = createUserIdentity;\n }", "private void setUser(HttpServletRequest req, Request sensorReq) {\n\t\tObject userObject = req.getAttribute(\"__user\");\n\t\tif ( null == userObject) \n\t\t{\n\t\t\tsensorReq.setUser(UserProfile.getAnonymous());\n\t\t} \n\t\telse \n\t\t{\n\t\t\tsensorReq.setUser((UserProfile) userObject);\n\t\t}\n\t}", "public void setClaimCenterUID(java.lang.String value);", "void setUser(final ApplicationUser user);", "@Override\n public Completable setAccessToken(DomainUserModel user) {\n return userService.setAccessToken(user);\n }", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }", "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "void setUser(User user, int id) {\n this.user = user;\n this.id = id;\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "void setUserId(Long userId);", "public void setAD_User_ID (int AD_User_ID);", "public void setClaimNumber(java.lang.String value);", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "public void setCallingUser(entity.User value);", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }", "public UserData(int userDataId) {\n this.userDataId = userDataId;\n }", "public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}", "public void claim(String tiid) throws HumanTaskManagerException {\n performStateOperation(tiid, EOperations.CLAIM, null);\n }", "private void setUser(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n user_ = value;\n \n }", "public Builder setIdentity(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n identity_ = value;\n onChanged();\n return this;\n }", "public void setUserId(int value) {\n this.userId = value;\n }", "void setUserInfo(final UserInfo userInfo);", "public void setUser(User user) { this.user = user; }", "public void setUserID(int value) {\n this.userID = value;\n }", "void saveUserData(User user);", "@Override\n\tpublic void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId);", "@Test\r\n public void testSetID() {\r\n user = userFactory.getUser(\"C\");\r\n user.setID(233);\r\n assertEquals(233, user.getID());\r\n }", "public void setIdentityIdentifier(final Identifier identifier) {\r\n this.identityIdentifier = identifier;\r\n }", "@Override\n public void setUserData(final Object userData) {\n this.userData = userData;\n }", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "public T setUserData(Object data)\n\t{\n\t\tuserData = data;\n\t\treturn (T) this;\n\t}", "public void setUserUuid(String userUuid);", "public void setUserUuid(String userUuid);", "public void setUserUuid(String userUuid);", "public void setUserUuid(String userUuid);", "private void setObjUser(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n objUser_ = value;\n \n }", "private void setUserData(){\n }", "public void setUser(String user)\n {\n _user = user;\n }", "@Override\n\tvoid setId(final UserId userId);", "public void setUserData(Object argUserData) {\n userData = argUserData;\n }", "public void setUserToken(Guid param) {\n localUserTokenTracker = param != null;\n\n this.localUserToken = param;\n }", "public void setUserToken(Guid param) {\n localUserTokenTracker = param != null;\n\n this.localUserToken = param;\n }", "public void setUserToken(Guid param) {\n localUserTokenTracker = param != null;\n\n this.localUserToken = param;\n }", "private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n public void onSuccess(CognitoUserDetails cognitoUserDetails) {\n String email = cognitoUserDetails.getAttributes().getAttributes().get(ATTR_EMAIL);\n String uid = cognitoUserDetails.getAttributes().getAttributes().get(ATTR_SUB);\n String userName = mCognitoUser.getUserId();\n prefManager.setEmail(email);\n prefManager.setUsername(userName);\n prefManager.setUid(uid);\n prefManager.setIsGuest(false);\n mCallback.onSignInSuccess();\n }", "public void setUser (User user) {\n userId = user.id != null ? user.id : User.getUserId(user.username);\n }", "public void setId(User user) {\n this.id = new GoogleInfoKey(user);\n }", "public void setAuthUserId(String newId) {\n session.setAttribute(\"userId\", newId);\n }", "public void setUserId(long value) {\r\n this.userId = value;\r\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void setUserAccount(String userAccount) {\n sessionData.setUserAccount(userAccount);\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_dictData.setUserId(userId);\n\t}", "public void setUserid(String userid) {\n this.userid = userid == null ? null : userid.trim();\n }", "public void setUserid(String userid) {\n this.userid = userid == null ? null : userid.trim();\n }", "void setCurrentUser(@Nullable User newCurrentUser) {\n currentUser = newCurrentUser;\n }", "public void setUserIdentities(List<ACUserIdentity> userIdentities) {\n this.userIdentities = userIdentities;\n }", "public ParticipantUpdater setIdentity(final String identity) {\n this.identity = identity;\n return this;\n }", "public void setModifyUserIdentity(Short modifyUserIdentity) {\n this.modifyUserIdentity = modifyUserIdentity;\n }", "public void setModifyUserIdentity(Short modifyUserIdentity) {\n this.modifyUserIdentity = modifyUserIdentity;\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.57059824", "0.5689224", "0.56826586", "0.56736565", "0.56667805", "0.56667805", "0.56518453", "0.5637291", "0.563337", "0.56221205", "0.56167984", "0.56073666", "0.5605435", "0.56047654", "0.5604256", "0.5592772", "0.558061", "0.55782443", "0.55546886", "0.5546734", "0.5546072", "0.55379057", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533639", "0.5533119", "0.55323917", "0.5531046", "0.5530892", "0.5517966", "0.55066574", "0.54642653", "0.54569143", "0.5445528", "0.54430795", "0.5442188", "0.54420054", "0.54420054", "0.5432798", "0.5427178", "0.54211277", "0.5405258", "0.5394367", "0.5389497", "0.5389497", "0.5389497", "0.5389497", "0.538653", "0.5379809", "0.53720456", "0.5363805", "0.53517133", "0.5331694", "0.5331694", "0.5331694", "0.5331083", "0.53262657", "0.5323135", "0.53065544", "0.53060323", "0.53056294", "0.5303015", "0.529597", "0.5293298", "0.5292156", "0.5292156", "0.52853334", "0.5282879", "0.5282653", "0.52793485", "0.52793485" ]
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\n public void onRequestToken() {\n Toast.makeText(getApplicationContext(), \"Your token has expired\", Toast.LENGTH_LONG).show();\n Log.i(\"Video_Call_Tele\", \"The token as expired..\");\n // mRtcEngine.renewToken(token);\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af1428905e5778a9ca209f64592b5bf80\n // Renew token - TODO\n }", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n /*Log.d(\"Refreshed token\", \"Refreshed token: \" + refreshedToken);\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n final CollectionReference clients = FirebaseFirestore.getInstance().collection(\"Tokens\");\n Map<String, Object> data1 = new HashMap<>();\n data1.put(\"token\", refreshedToken);\n clients.document(\"Iamhere\").set(data1, SetOptions.merge());*/\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n //sendRegistrationToServer(refreshedToken);\n }", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Timber.d(\"Refreshed token: \" + refreshedToken);\n }", "@Override\n public void onNewToken(String token) {\n Log.d(TAG, \"Refreshed token: \" + token);\n\n }", "@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n registerToken(token);\n }", "protected void updateTokens(){}", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n if (refreshedToken != null) {\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n sendTokenToServer(refreshedToken);\n }\n }", "@Override\n public void onTokenRefresh() {\n Log.d(\"MyInstanceIDService\", \"onTokenRefresh\");\n// new GCMDoRequest().execute(new GCMRequest(this, GCMCommand.GET_TOKEN));\n }", "private void mtd_refresh_token() {\n RxClient.get(FeedActivity.this).Login(new loginreq(sharedpreferences.\n getString(SharedPrefUtils.SpEmail, \"\"),\n sharedpreferences.getString(SharedPrefUtils.SpPassword, \"\")), new Callback<loginresp>() {\n @Override\n public void success(loginresp loginresp, Response response) {\n\n if (loginresp.getStatus().equals(\"200\")){\n\n editor.putString(SharedPrefUtils.SpRememberToken,loginresp.getToken().toString());\n editor.commit();\n\n final Handler handler = new Handler();\n final Runnable runnable = new Runnable() {\n @Override\n public void run() {\n wbService(tmpansList);\n progressBar.setVisibility(View.INVISIBLE);\n }\n };\n handler.postDelayed(runnable, 500);\n\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n progressBar.setVisibility(View.INVISIBLE);\n Log.d(\"refresh token\", \"refresh token error\");\n Toast.makeText(FeedActivity.this, \"Service not response\",\n Toast.LENGTH_LONG).show();\n finish();\n }\n });\n\n }", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n try {\n sendNewTokenToServer(refreshedToken);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void refreshGoogleCalendarToken() {\n this.getGoogleToken();\n }", "public void onCurrentAccessTokenChanged(AccessToken oldAccessToken, AccessToken currentAccessToken) {\n if (currentAccessToken == null) {\n LoginOptionActivity.this.emailTextView.setText(\"\");\n Toast.makeText(LoginOptionActivity.this, \"User Logged out\", 0).show();\n return;\n }\n LoginOptionActivity.this.loadUserProfile(currentAccessToken);\n }", "@Override\n public void onTokenRefresh() {\n\n //Getting registration token\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //Displaying token on logcat\n Log.e(TAG, \"Refreshed token: \" + refreshedToken);\n\n //calling the method store token and passing token\n storeToken(refreshedToken);\n }", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n saveToken(refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n SharedPreferences settings =\n getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_FIREBASE_TOKEN, refreshedToken);\n editor.apply();\n }", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"myToken\", \"Refreshed token: \" + refreshedToken);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n //sendRegistrationToServer(refreshedToken);\n getApplicationContext().sendBroadcast(new Intent(broadcast));\n SharedPrefManager.getInstance(getApplicationContext()).storeToken(refreshedToken);\n }", "public void setAccessToken (AccessToken accessToken)\n\t{\n\t\tthis.accessToken = accessToken;\n\t}", "@Override\n public void onTokenRefresh() {\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n sendRegistrationToServer(refreshedToken);\n }", "@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify our app's server of any changes (if applicable).\n startService(new Intent(this, RegistrationIntentService.class));\n }", "void removeAccessToken() {\n SharedPreferences prefs = // because rest also needs token\n context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n prefs.edit()\n .remove(KEY_ACCESS_TOKEN)\n .apply();\n // notification to all listeners\n state.onNext(new AuthState(false));\n\n }", "private void refreshAccessToken() throws IOException {\n\n if (clientId == null) fetchOauthProperties();\n\n URL url = new URL(tokenURI);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"refresh_token\", refreshToken);\n params.put(\"client_id\", clientId);\n params.put(\"client_secret\", clientSecret);\n params.put(\"grant_type\", \"refresh_token\");\n\n String response = HttpUtils.getInstance().doPost(url, params);\n JsonParser parser = new JsonParser();\n JsonObject obj = parser.parse(response).getAsJsonObject();\n\n JsonPrimitive atprim = obj.getAsJsonPrimitive(\"access_token\");\n if (atprim != null) {\n accessToken = obj.getAsJsonPrimitive(\"access_token\").getAsString();\n expirationTime = System.currentTimeMillis() + (obj.getAsJsonPrimitive(\"expires_in\").getAsInt() * 1000);\n fetchUserProfile();\n } else {\n // Refresh token has failed, reauthorize from scratch\n reauthorize();\n }\n\n }", "@Override\r\n\t\t\t\t\tpublic void onComplete(Bundle bundle) {\n\t\t\t\t\t\tOauth2AccessToken newToken = Oauth2AccessToken\r\n\t\t\t\t\t\t\t\t.parseAccessToken(bundle);\r\n\t\t\t\t\t\tAccessTokenKeeper.writeAccessToken(context, newToken);\r\n\t\t\t\t\t\tToast.makeText(\r\n\t\t\t\t\t\t\t\tcontext,\r\n\t\t\t\t\t\t\t\t\"onAuthorizeComplete token = \"\r\n\t\t\t\t\t\t\t\t\t\t+ newToken.getToken(), 0).show();\r\n\t\t\t\t\t}", "@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n device_id = Settings.Secure.getString(this.getContentResolver(),\n Settings.Secure.ANDROID_ID);\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n\n //**************need to modify the code such that it can update exisiting user data***********************\n sendRegistrationToServer(refreshedToken);\n //**************need to modify the code such that it can update exisiting user data***********************\n }", "void onGetTokenSuccess(AccessTokenData token);", "void setAccessToken(String accessToken);", "@Override\n public void onTokenRefresh() {\n String token = FirebaseInstanceId.getInstance().getToken();\n\n addRegistrationToFireDb(token);\n }", "void updateComponentAccessToken(WxOpenComponentAccessToken componentAccessToken);", "@Override\n public void onTokenRefresh() {\n final String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n\n //To displaying token on logcat\n Log.w(\"TOKEN: \", refreshedToken);\n\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFERENCE_FILE, MODE_PRIVATE);\n final Long userId = sharedPreferences.getLong(\"userId\", 0L);\n\n if (!userId.equals(0L)){\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"firebaseToken\", refreshedToken);\n editor.apply();\n\n Handler handler = new Handler(this.getMainLooper());\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n // Update token for this user\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }\n };\n\n handler.post(runnable);\n\n }\n\n }", "void expireComponentAccessToken();", "void setOAuthAccessToken(AccessToken accessToken);", "@Override\n public void onTokenRefresh() {\n // Get updated InstanceID token.\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(\"Refreshed token: \" + refreshedToken);\n sendRegistrationToServer(refreshedToken);\n }", "@Override\n public void handleTokenExpiration(){\n JWTToken.removeTokenSharedPref(this);\n }", "@Override\n public void onLogin() {\n accessToken = mSimpleFacebook.getSession().getAccessToken();\n Log.e(\"facebook token\", \"\" + accessToken);\n //check validation\n new LoginGoogleFb().execute(null, null, null);\n }", "protected AccessToken getAccessToken() \n\t{\n\t\treturn accessToken;\n\t}", "@Override\n public void onNewToken(String token) {\n Log.d(TAG, \"Refreshed token: \" + token);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n enviaTokenParaServidor(token);\n }", "@Override\n public void onTokenRefresh(){\n if (FirebaseAuth.getInstance().getCurrentUser() != null) {\n String token = FirebaseInstanceId.getInstance().getToken();\n Log.v(TAG, \"success in getting instance \"+ token);\n onSendRegistrationToServer(token);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(requestCode==request_Code){\n AuthenticationResponse response = AuthenticationClient.getResponse(resultCode,data);\n if(response.getType()==AuthenticationResponse.Type.TOKEN){\n accessToken = response.getAccessToken();\n }else{\n }\n }\n new SpotifyNewRelease(accessToken).execute();\n }", "public void setAccessToken(String access_token) {\n\t\tthis.access_token = access_token;\r\n\t\tif(message_monitor!=null)\r\n\t\t\tmessage_monitor.setAccessToken(access_token);\r\n\t\tif(feed_monitor!=null)\r\n\t\t\tfeed_monitor.setAccessToken(access_token);\r\n }", "@Override\n public void onNewToken(String token) {\n Log.d(TAG, \"Refreshed token: \" + token);\n super.onNewToken(token);\n Log.e(\"newToken\", token);\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n sendRegistrationToServer(token);\n }", "@Override\n public void onSuccess(AuthenticationResult authenticationResult) {\n Log.d(TAG, \"Edit Profile: \" + authenticationResult.getAccessToken());\n hasRefreshToken();\n }", "void tokenchange();", "@Override\n public void onNewToken(String token) {\n Log.e(\"Token:\", token);\n }", "@Override\n public void tokenOverdue(final Context context) {\n System.out.println(\"tokenOverdue token 失效,重新获取token\");\n\n // 开发者通过自己的方法获取token,这里是demo\n String acountId = \"\";\n USDKCommonManager.updateToken(context, acountId);\n\n /**** 这份代码是例子。。。。。 ****/\n acountId = USDKTest.getSPToken(context);\n String callerPhone = USDKTest.getCallerPhone(context);\n if (TextUtils.isEmpty(acountId) || TextUtils.isEmpty(acountId)) {\n return;\n }\n USDKTest.getToken(context, callerPhone, acountId, new IUSDKHttpCallback() {\n @Override\n public void onSuccess(Object result) {\n try {\n String json = (String) result;\n System.out.println(\"onSuccess json =\" + json);\n String token = \"\";\n\n USDKTestResultGetTokenBean bean = new USDKTestResultGetTokenBean(new JSONObject(json));\n token = bean.getToken();\n USDKCommonManager.updateToken(context, token);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailed(Object result) {\n System.out.println(\"onFailed result =\" + result);\n }\n });\n /**** 这份代码是例子。。。。。 ****/\n }", "@Override\n public void onTokenRefresh(){\n // start Gcm registration service\n Intent intent = new Intent(this, GcmRegistrationIntentService.class);\n startService(intent);\n }", "@Override\n\tpublic void expireToken() {\n\t\t\n\t}", "String refreshTokens();", "private TokenHandler(Context context) {\n mContext = context;\n pullTokenDataFromLocal();\n if(hasSocialToken()){\n updateLoginTokens();\n }\n }", "public static void setAccessToken(String accessToken) {\n }", "public void setAccessToken(String accessToken) {\n\t\tthis.accessToken = accessToken;\n\t}", "public void setAccessToken(String accessToken) {\n\t\tthis.accessToken = accessToken;\n\t}", "@Override\n public void onTokenRefresh() {\n\n String refreshedToken = FirebaseInstanceId.getInstance().getToken();\n Log.d(TAG, \"Refreshed token: \" + refreshedToken);\n\n // TODO: 13/6/2017 Persistir token en archivo XML.\n sharedPreferences = getSharedPreferences(\"datos\",MODE_PRIVATE);\n SharedPreferences.Editor edit = sharedPreferences.edit();\n edit.putString(String.valueOf(R.string.token),refreshedToken);\n edit.commit();\n\n\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetAccessTokenFromGoogle(code);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onTokenIncorrect() {\n\t\t\t\t\t\t\t\t Log.d(\"LoginActivity\", \"--onTokenIncorrect\");\n\t\t\t\t\t\t\t}", "@Override\n public void onSuccess(AuthenticationResult authenticationResult) {\n updateRefreshTokenUI(true);\n\n /* If the token is refreshed we should refresh our data */\n callAPI();\n }", "public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}", "@Override\n public void acceptVisitor(AuthServiceVisitor visitor) {\n visitor.visitAccessToken(this);\n }", "@Override\n public void onNewToken(String token) {\n Log.d(TAG, \"Refreshed token: \" + token);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n sendRegistrationToServer(token);\n }", "@Override\n public String refresh() {\n\n // Override the existing token\n setToken(null);\n\n // Get the identityId and token by making a call to your backend\n // (Call to your backend)\n\n // Call the update method with updated identityId and token to make sure\n // these are ready to be used from Credentials Provider.\n\n update(identityId, token);\n return token;\n\n }", "@Override\n public void onTokenRefresh() {\n // Fetch updated Instance ID token and notify of changes\n Intent intent = new Intent(this, RegistrationIntentService.class);\n intent.putExtra(\"SOURCE\", \"GCM\");\n startService(intent);\n }", "private void retrieveAccessToken() {\n Log.d(TAG, \"at retreiveAccessToken\");\n String accessURL = TWILIO_ACCESS_TOKEN_SERVER_URL + \"&identity=\" + \"1234\" + \"a\";\n Log.d(TAG, \"accessURL \" + accessURL);\n Ion.with(this).load(accessURL).asString().setCallback(new FutureCallback<String>() {\n @Override\n public void onCompleted(Exception e, String accessToken) {\n if (e == null) {\n Log.d(TAG, \"Access token: \" + accessToken);\n MainActivity.this.accessToken = accessToken;\n registerForCallInvites();\n } else {\n Toast.makeText(MainActivity.this,\n \"Error retrieving access token. Unable to make calls\",\n Toast.LENGTH_LONG).show();\n Log.d(TAG, e.toString());\n }\n }\n });\n }", "@Override\n public void onNewToken(String token) {\n //Log.d(TAG, \"Refreshed token: \" + token);\n\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n sendRegistrationToServer(token);\n\n }", "public void setAccessToken(String accessToken) {\n\t\t\tthis.accessToken = accessToken;\n\t\t}", "public static void setAccessToken(String token, Context context){\n\t\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences.Editor prefEditor = prefs.edit();\n\t\t\tprefEditor.putString(TWITTER_ACCESS_TOKEN, token);\n\t\t\tprefEditor.commit();\n\t\t\t\n\t\t}", "public boolean onSessionChanged(String authToken, String refreshToken, long expires);", "@Override\n public void onAppTokenUpdate(String appToken, String appId, String deviceId, ApiCallback<Boolean> callback) {\n Log.d(TAG, \"onAppTokenUpdate(): Not implemented for now. appId=\" + appId +\n \", deviceId=\" + deviceId + \", appToken=\" + appToken);\n }", "@Override\n public void onResume() {\n super.onResume();\n\n validateToken();\n }", "public boolean setAccessToken(JSONObject response){\n boolean ret=false;\n Log.d(TAG, \"setAccessToken: \"+response);\n SharedPreferences.Editor editor=context.getSharedPreferences(Const.LINKAI_SHAREDPREFERENCE_FILE,Context.MODE_PRIVATE).edit();\n try {\n editor.putString(\"access_token\",response.getString(\"access_token\"));\n editor.putString(\"token_type\",response.getString(\"token_type\"));\n editor.putLong(\"expires_in\",Long.valueOf(response.getString(\"expires_in\")));\n// editor.putLong(\"expires_in\",10000);\n editor.putLong(\"token_timestamp\",new Date().getTime());\n editor.commit();\n ret=true;\n }catch (Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "@Override\n public void onTokenRefresh() {\n\n String token = FirebaseInstanceId.getInstance().getToken();\n CTOKEN = token;\n\n// if(sgen.ID != \"\") {\n// String query = \"UPDATE USER_DETAILS SET FTOKEN = '\"+token+\"' WHERE ID = '\"+sgen.ID+\"'; \";\n// ArrayList<Team> savedatateam = servicesRequest.save_data(query);\n// sgen.FTOKEN = token;\n// }\n\n\n // Once the token is generated, subscribe to topic with the userId\n// if(sgen.ATOKEN.equals(sgen.CTOKEN)) {\n try {\n FirebaseMessaging.getInstance().subscribeToTopic(SUBSCRIBE_TO);\n Log.i(TAG, \"onTokenRefresh completed with token: \" + token);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n// }\n\n\n /* sendRegistrationToServer(refreshedToken);*/\n }", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "@Override\n public List<AccessToken> getAccessTokens() {\n return new ArrayList<AccessToken>(accessTokens.values());\n }", "public void setCurrentAccessToken() {\n String userAccessToken = null;\n String moderatorAccessToken = null;\n // Get tokens of local user and logged in moderator if existing.\n localUser = getLocalUser();\n if (localUser != null) {\n userAccessToken = localUser.getServerAccessToken();\n }\n if (loggedInModerator != null) {\n moderatorAccessToken = loggedInModerator.getServerAccessToken();\n }\n // Use the access token of the local moderator if available (logged in).\n accessToken = moderatorAccessToken;\n if (accessToken == null) {\n // Otherwise, use the access token of the local user.\n accessToken = userAccessToken;\n }\n }", "@Override\n public void onNewToken(String token) {\n Log.d(\"FireBaseActivity\", \"Refreshed token: \" + token);\n // If you want to send messages to this application instance or\n // manage this apps subscriptions on the server side, send the\n // Instance ID token to your app server.\n // sendRegistrationToServer(token);\n }", "@Override\n public void onAuthenticated(AuthData authData) {\n Log.i(\"lt\", \"authed\");\n }", "public void setAccessToken(String accessToken) {\n mAccessToken = accessToken;\n retrieveAllUserData();\n }", "public void onGetAccessToken(java.lang.String r5) {\n /*\n r4 = this;\n java.lang.String r1 = \"AccessTokenForwarder\"\n java.lang.String r0 = \"onGetAccessToken\"\n com.oculus.panellib.SystraceBlock r3 = new com.oculus.panellib.SystraceBlock\n r3.<init>(r1, r0)\n java.util.concurrent.locks.ReentrantLock r0 = r4.mAccessTokenLock // Catch:{ all -> 0x0036 }\n r0.lock() // Catch:{ all -> 0x0036 }\n r4.mAccessToken = r5 // Catch:{ all -> 0x0036 }\n java.util.List<com.oculus.device.AccessTokenForwarder$IListener> r0 = r4.mListeners // Catch:{ all -> 0x0036 }\n int r2 = r0.size() // Catch:{ all -> 0x0036 }\n L_0x0016:\n int r2 = r2 + -1\n if (r2 < 0) goto L_0x002d\n java.util.List<com.oculus.device.AccessTokenForwarder$IListener> r0 = r4.mListeners // Catch:{ all -> 0x0036 }\n java.lang.Object r1 = r0.get(r2) // Catch:{ all -> 0x0036 }\n com.oculus.device.AccessTokenForwarder$IListener r1 = (com.oculus.device.AccessTokenForwarder.IListener) r1 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = r4.mAccessToken // Catch:{ all -> 0x0036 }\n r1.onGetAccessToken(r0) // Catch:{ all -> 0x0036 }\n java.util.List<com.oculus.device.AccessTokenForwarder$IListener> r0 = r4.mListeners // Catch:{ all -> 0x0036 }\n r0.remove(r2) // Catch:{ all -> 0x0036 }\n goto L_0x0016\n L_0x002d:\n java.util.concurrent.locks.ReentrantLock r0 = r4.mAccessTokenLock // Catch:{ all -> 0x0036 }\n r0.unlock() // Catch:{ all -> 0x0036 }\n r3.close()\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.device.AccessTokenForwarder.onGetAccessToken(java.lang.String):void\");\n }", "@MainThread\n @CalledByNative\n void invalidateAccessToken(String accessToken) {\n mAccountManagerFacade.invalidateAccessToken(accessToken);\n }", "public void tokenArrived(Object token)\n {\n }", "private void handleFacebookAccessToken(AccessToken token) {\n Log.d(TAG, \"handleFacebookAccessToken:\" + token);\n // [START_EXCLUDE silent]\n showProgressDialog();\n // [END_EXCLUDE]\n\n if (token == null) return;\n AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken());\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"signInWithCredential:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n hideProgressDialog();\n if (!task.isSuccessful()) {\n Log.w(TAG, \"signInWithCredential\", task.getException());\n Toast.makeText(LogInActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n else\n {\n currentUser = task.getResult().getUser();\n General.SetStringData(getApplicationContext(), Constants.FACEBOOK_LOGIN, \"true\");\n General.SetStringData(getApplicationContext(), Constants.GOOGLE_LOGIN, \"false\");\n General.SetStringData(getApplicationContext(), Constants.EMAIL_LOGIN, \"false\");\n // General.ShowToast(getApplicationContext(), \"Success\");\n General.currentUser = currentUser;\n Google_FacebookUserUpdate();\n }\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n });\n }", "@Override\n\t\t\t\tpublic void onComplete(Bundle values)\n\t\t\t\t{\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookAuthorize().onComplete(): \" + mFacebook.getAccessToken());\n\t\t\t\t\t\n\t\t\t\t\t// save access token\n\t\t\t\t\tPreferences preferences = new Preferences(getActivity());\n\t\t\t\t\tpreferences.setFacebookAccessToken(mFacebook.getAccessToken());\n\t\t\t\t\tpreferences.setFacebookAccessExpiration(mFacebook.getAccessExpires());\n\t\t\t\t\t\n\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\n\t\t\t\t\t// toast\n\t\t\t\t\tToast.makeText(getActivity(), \"Successfully logged in.\", Toast.LENGTH_LONG).show();\n\t\t\t\t}", "@Override\n\t\t\t\t public void onComplete(Bundle values) {\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"access_token\",\n\t\t\t\t\t\t\t facebook.getAccessToken());\n\t\t\t\t\t fb_access_token=facebook.getAccessToken();\n\t\t\t\t\t editor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t facebook.getAccessExpires());\n\t\t\t\t\t editor.commit();\n\n\t\t\t\t\t // Making Login button invisible\n\t\t\t\t\t getProfileInformation();\n\t\t\t\t\t //Log.w(\"email\",uEmail);\n\n\n\t\t\t\t }", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "@Override\n public void run() {\n UserTask<Void> userTask = new UserTask<>(userId);\n userTask.setFirebaseToken(refreshedToken);\n userTask.execute(\"refreshFirebaseToken\");\n\n }", "@Override\n public void intercept(RequestInterceptor.RequestFacade request) {\n if ((mCredentials != null) && (mCredentials.accessToken != null)) {\n request.addEncodedQueryParam(PARAM_ACCESS_TOKEN, mCredentials.accessToken);\n }\n }", "private void handleFacebookAccessToken(AccessToken accessToken) {\n progressBar.setVisibility(View.VISIBLE);\n loginButton.setVisibility(View.GONE);\n\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n mAuth.signInWithCredential(credential)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n //Log.d(TAG, \"signInWithCredential:success\");\n //Toast.makeText(getApplicationContext(),R.string.firebase_error_login, Toast.LENGTH_SHORT).show();\n FirebaseUser user = mAuth.getCurrentUser();\n //updateUI(user);\n } else {\n // If sign in fails, display a message to the user.\n //Log.w(TAG, \"signInWithCredential:failure\", task.getException());\n Toast.makeText(getApplicationContext(), \"Fallo la autenticacion.\",\n Toast.LENGTH_SHORT).show();\n //updateUI(null);\n progressBar.setVisibility(View.GONE);\n loginButton.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "@Override\n public void run() {\n\n try {\n token=null;\n token=getAccessGenToken(hand);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onCancel() {\n Log.d(TAG, \"User cancelled login.\");\n updateRefreshTokenUI(true);\n }", "public AccessToken getAccessToken() {\n return token;\n }", "protected boolean generateRefreshTokenOnRefreshRequest() {\n\t\treturn true;\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n if (resultCode != RESULT_OK || requestCode != AUTH_TOKEN_REQUEST_CODE) {\n Log.e(TAG, \"Finished with no result.\");\n return;\n }\n\n mToken = NestAPI.getAccessTokenFromIntent(intent);\n if (mToken != null) {\n Auth.saveAuthToken(this, mToken);\n authenticate(mToken);\n } else {\n Log.e(TAG, \"Unable to resolve access token from payload.\");\n }\n }", "@Override\n\tprotected RefreshToken doCreateNewRefreshToken(ServerAccessToken at) {\n\t\tRefreshToken refreshToken = super.doCreateNewRefreshToken(at);\n\t\trefreshToken.setTokenKey(\"RT:\" + UUID.randomUUID().toString());\n\t\trefreshToken.setExpiresIn(Oauth2Factory.REFRESH_TOKEN_EXPIRED_TIME_SECONDS);\n\t\t\n\t\tif (log.isDebugEnabled()) {\n\t\t\ttry {\n\t\t\t\tlog.debug(\"RefreshToken={}\", OBJECT_MAPPER.writeValueAsString(refreshToken));\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlog.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn refreshToken;\n\t}", "@Override\n public void processFinish(String token) {\n user.setGoogleCalendarToken(token);\n }", "public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}", "@Override\n public void intercept(RequestFacade request) {\n // Add the access_token that we previously obtained to this request as\n // the \"Authorization\" header.\n request.addHeader(\"Authorization\", \"Bearer \" + accessToken);\n }", "public void onSuccess(Token token) {\n\n }", "@Override\n\t\tpublic void onComplete(Bundle values) {\n\n\t\t\tLoginUI.accessToken = new Oauth2AccessToken(\n\t\t\t\t\tvalues.getString(\"access_token\"),\n\t\t\t\t\tvalues.getString(\"expires_in\"));\n\t\t\taccess_token = values.getString(\"access_token\");\n\t\t\texpires_in = values.getString(\"expires_in\");\n\t\t\tsina_keyid = values.getString(\"uid\");\n\t\t\tuploadUserInfo();\n\n\t\t}", "private void updateTokenUI() {\n if (authResult != null) {\n TextView it = (TextView) findViewById(R.id.itStatus);\n TextView at = (TextView) findViewById(R.id.atStatus);\n\n if(authResult.getIdToken() != null) {\n it.setText(it.getText() + \" \" + getString(R.string.tokenPresent));\n } else {\n it.setText(it.getText() + \" \" + getString(R.string.noToken));\n }\n\n if (authResult.getAccessToken() != null) {\n at.setText(at.getText() + \" \" + getString(R.string.tokenPresent));\n } else {\n at.setText(at.getText() + \" \" + getString(R.string.noToken));\n }\n\n /* Only way to check if we have a refresh token is to actually refresh our tokens */\n hasRefreshToken();\n } else {\n Log.d(TAG, \"No authResult, something went wrong.\");\n }\n }", "private void allowForRefreshToken(ApplicationUser user, HttpServletRequest request) {\n UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(\n null, null, null);\n SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);\n request.setAttribute(\"user\", user);\n }" ]
[ "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.6647027", "0.6636833", "0.66232204", "0.6612262", "0.6600934", "0.65781444", "0.65646684", "0.6563055", "0.6551751", "0.6542794", "0.6536586", "0.6520227", "0.6480421", "0.6464096", "0.6450503", "0.6430886", "0.64197534", "0.64149165", "0.64137214", "0.64065367", "0.63971597", "0.6388972", "0.6388321", "0.6384348", "0.6382025", "0.6363454", "0.63560945", "0.6352411", "0.63460183", "0.63295", "0.6326266", "0.6325745", "0.6325745", "0.6306281", "0.629386", "0.62856996", "0.6258817", "0.6248299", "0.62429535", "0.6239754", "0.6227158", "0.62104154", "0.6208733", "0.6207959", "0.61883885", "0.6168529", "0.61613744", "0.61548084", "0.6149347", "0.6142413", "0.6138656", "0.6137583", "0.6137583", "0.6137556", "0.61320776", "0.6124746", "0.6122577", "0.6121009", "0.6120905", "0.6113422", "0.6111464", "0.61082965", "0.60784197", "0.60433877", "0.6039842", "0.6010568", "0.60081017", "0.6006615", "0.59906477", "0.5990405", "0.5989428", "0.59824723", "0.5970066", "0.59621304", "0.5946539", "0.59453785", "0.5944254", "0.59438825", "0.59400517", "0.59389454" ]
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 if (session == Session.getActiveSession()) {\n\n if (user != null && user.getProperty(\"email\") != null) {\n\n String email = user.getProperty(\"email\").toString();\n String firstName = user.getName().split(\" \")[0].trim();\n String lastName;\n if (user.getName().split(\" \").length >= 1) {\n lastName = user.getName().split(\" \")[1].trim();\n }\n Log.d(TAG, email);\n Log.d(TAG, session.getAccessToken());\n\n Log.d(TAG, \"Id \" + user.getId());\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\", LOGIN_SUCCESS);\n resultIntent.putExtra(\"social_network\", mSocialNetwork);\n resultIntent.putExtra(Constants.EMAIL, email);\n String profilePic =\n \"https://graph.facebook.com/\" +\n user.getId() + \"/picture?type=large\";\n\n resultIntent.putExtra(Constants.TOKEN, session.getAccessToken());\n resultIntent.putExtra(Constants.ID, Long.parseLong(user.getId()));\n resultIntent.putExtra(Constants.NAME, user.getName());\n resultIntent.putExtra(Constants.PHOTO, profilePic);\n Log.d(TAG,\"Email:\"+email);\n Log.d(TAG, \"Name:\" + user.getName());\n setResult(RESULT_OK, resultIntent);\n\n mProgressDialog.dismiss();\n finish();\n }\n }\n if (response.getError() != null) {\n // Handle errors, will do so later.\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\", LOGIN_FAILURE);\n setResult(RESULT_OK, resultIntent);\n mProgressDialog.dismiss();\n finish();\n }\n }", "@Override\n public void onCompleted(GraphResponse response) {\n Log.d(\"GraphAPI FB debug\", String.valueOf(response));\n Log.d(\"GraphAPI FB debug\", response.toString());\n }", "@Override\r\n public void onBatchCompleted(GraphRequestBatch graphRequests) {\n }", "public void onCompleted(GraphResponse response) {\r\n try {\r\n\r\n Log.d(\"Response\", response.getRawResponse());\r\n\r\n email = response.getJSONObject().getString(\"email\");\r\n mEmailID.setText(email);\r\n\r\n name = response.getJSONObject().getString(\"name\");\r\n mUsername.setText(name);\r\n\r\n saveNewUser();\r\n\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n public void onCompleted(GraphResponse response) {\n lastGraphResponse = response;\n JSONObject jsonObject = response.getJSONObject();\n try {\n // simple json pojo mapping\n JSONArray fetchedAlbums = jsonObject.getJSONArray(\"data\");\n for (int i = 0; i < fetchedAlbums.length(); i++) {\n JSONObject jo = (JSONObject) fetchedAlbums.get(i);\n Album album = new Album(jo.getString(\"id\"));\n album.setName(jo.getString(\"name\"));\n album.setCount(jo.getString(\"count\"));\n album.setCover_photo_id(jo.getJSONObject(\"cover_photo\").getString(\"id\"));\n albumsList.add(album);\n }\n // sorting the list by name\n Collections.sort(albumsList);\n adapter.notifyDataSetChanged();\n\n progress.dismiss();\n // unlocking the variable so the girdadapter\n // can be free to send async requests\n locker.unlock();\n } catch (JSONException e)\n {\n e.printStackTrace();\n\n // if there's a problem in json response, the app will show a dialog with an error message shown below,\n // and it will return back to previous activity (Albums Activity)\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(AlbumsActivity.this);\n // setting the error message\n alertDialogBuilder.setMessage(\"Sorry an error has occured we couldn't fetch your photos, please try again later\");\n alertDialogBuilder.setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n // terminate the current app, which leads us the previous\n finish();\n }\n });\n // displaying the error dialog\n alertDialogBuilder.show();\n\n }\n }", "@Override\n public void onCompleted(GraphResponse response) {\n try {\n email = response.getJSONObject().getString(\"email\");\n name = response.getJSONObject().getString(\"name\");\n timezone = response.getJSONObject().getString(\"timezone\");\n firstName = response.getJSONObject().getString(\"first_name\");\n lastName = response.getJSONObject().getString(\"last_name\");\n gender = response.getJSONObject().getString(\"gender\");\n isVerified = response.getJSONObject().getBoolean(\"verified\");\n\n JSONObject picture = response.getJSONObject().getJSONObject(\"picture\");\n JSONObject data = picture.getJSONObject(\"data\");\n\n //get the 50X50 profile pic they send us\n String pictureURL = data.getString(\"url\");\n\n new ProfilePicAsync(pictureURL,1).execute();\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "public void onCompleted(GraphResponse response) {\n if (response.getError() != null) {\n // get personal information\n }else {\n ////////////////////////////////////////////////////////////\n ////////////////// all facebook users///////////////////////\n\n try {\n JSONObject json = response.getJSONObject();\n\n if (json.has(\"data\")) {\n JSONArray userphotos = json.getJSONArray(\"data\");\n\n } else {\n\n }\n } catch (JSONException e) {\n Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n\n istagglefriend = 1;\n if(isfriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n ////////////////////////////////////////////////////////////\n }", "@Override\n public void onCompleted(GraphUser user, Response response)\n {\n if (user != null)\n {\n // publishFeedDialog(session);\n try\n {\n email = user.asMap().get(\"email\").toString();\n WODebug.LogDebug(email);\n }\n catch (Exception e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n email=\"\";\n WODebug.LogDebug(email);\n }\n }\n }", "@Override\n public void onCompleted() {\n }", "@Override\n public void onCompleted() {\n }", "@Override\n protected void onCompleted(User result) {\n mSession.storeAccessToken(result.getAccessToken(), result.getId(), result.getUsername(),\n result.getFullName());\n \n // Notify caller application\n callback.notifyCompleted();\n }", "@Override\n public void onCompleted() {\n responseObserver.onCompleted();\n }", "public void onCompleted() {\n\t\t\n\t\t }", "@Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n jsonGraphObject = response.getJSONObject();\n\n //Get user detail and save it to loacal instances.\n getFacebookInfo();\n\n LoginManager.getInstance().logOut();\n\n //Save info to params and pass Login Type [Twitch,Facebook,Twitter].\n //saveInfoToParams(ApplicationGlobal.TAG_LOGIN_FACEBOOK);\n }", "@Override\n\t\tpublic void onCompleted() {\n\t\t}", "@Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n Bundle bFacebookData = getFacebookData(object);\n\n final String email;\n final String password;\n final String name;\n\n name = bFacebookData.getString(\"first_name\");\n email = bFacebookData.getString(\"email\");\n password = \"adminacc\";\n if (!ifUserExsist(email)) {\n dbHelper.openToWrite();\n long rowID = dbHelper.insert(name, email, password);\n //Log.d(LOG_TAG, \"row inserted, ID = \" + rowID);\n }\n\n new android.os.Handler().postDelayed(\n new Runnable() {\n public void run() {\n // On complete call either onLoginSuccess or onLoginFailed\n if (userAutentification(email, password)) {\n onLoginSuccess(name, email);\n } else {\n onLoginFailed();\n // onLoginFailed();\n }\n mConnectionProgressDialog.dismiss();\n }\n }, 3000);\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n // App code\n GraphRequest request = GraphRequest.newMeRequest(\n loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n Log.v(\"LoginActivity\", response.toString());\n\n // Application code\n try {\n doCheckExitingUser(object.getString(\"email\"), object.getString(\"name\"), object.getString(\"id\"), \"\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n// Toaster.shortToast(\"On Success\" + loginResult.toString());\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(\n loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n\n //Log.e(\"FACEBOOK RESPONSE \", response.toString());\n jsonGraphObject = response.getJSONObject();\n\n //Get user detail and save it to loacal instances.\n getFacebookInfo();\n\n LoginManager.getInstance().logOut();\n\n //Save info to params and pass Login Type [Twitch,Facebook,Twitter].\n //saveInfoToParams(ApplicationGlobal.TAG_LOGIN_FACEBOOK);\n }\n });\n Bundle parameters = new Bundle();\n // parameters.putString(\"fields\", \"id,city,name,email,gender, birthday,first_name,locale,country,latitude,longitude,state,zip\");\n parameters.putString(\"fields\", \"email,first_name,last_name, locale, location\");\n request.setParameters(parameters);\n request.executeAsync();\n }", "@Override\n public void onCompleted(Response response) {\n FacebookRequestError error = response.getError();\n if (error != null) {\n Ln.i(error.getErrorMessage());\n }\n }", "@Override\n public void onCompleted(Response response) {\n FacebookRequestError error = response.getError();\n if (error != null) {\n Ln.i(error.getErrorMessage());\n }\n }", "public void onCompleted(GraphResponse response) {\n if (response.getError() != null) {\n // get personal information\n }else {\n ////////////////////////////////////////////////////////////\n ////////////////// all facebook users///////////////////////\n\n try {\n JSONObject json = response.getJSONObject();\n\n if (json.has(\"data\")) {\n JSONArray rawPhotosData = json.getJSONArray(\"data\");\n JSONArray facebookfriend = new JSONArray();\n for (int j = 0; j < rawPhotosData.length(); j++) {\n //save whatever data you want from the result\n JSONObject photo = new JSONObject();\n photo.put(\"id\", ((JSONObject) rawPhotosData.get(j)).get(\"id\"));\n photo.put(\"name\", ((JSONObject) rawPhotosData.get(j)).get(\"name\"));\n// photo.put(\"icon\", ((JSONObject) rawPhotosData.get(j)).get(\"picture\"));\n facebookfriend.put(photo);\n }\n String strfacebookfriend = facebookfriend.toString().trim();\n DataUtils.savePreference(Const.FACEBOOK_FRIENDS, strfacebookfriend);\n\n } else {\n\n }\n } catch (JSONException e) {\n Toast.makeText(MainActivity.this, e.toString(), Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }\n\n istagglefriend = 1;\n if(isfriend == 1 && islogin == 1){\n gotoReadyPage();\n }\n\n ////////////////////////////////////////////////////////////\n }", "@Override\r\n\t\t\tpublic void onCompleted() {\n\r\n\t\t\t}", "public void onCompleted(GraphResponse response) {\n Log.i(\"mTAG\", \"onCompleted: \" + response.toString());\n Gson mGson = new Gson();\n AlbumObject mAlbumObject = mGson.fromJson(response.getJSONObject().toString(), AlbumObject.class);\n mDashboardItems = mAlbumObject.getmAlbums();\n DashboardAdapter mDashboardAdapter = new DashboardAdapter(mDashboardItems, mItemListener);\n mRecyclerView.setAdapter(mDashboardAdapter);\n mDashboardAdapter.notifyDataSetChanged();\n }", "@Override\n\t public void onCompleted(GraphUser user, Response response) {\n\t \tLogger.d(TAG, \"GraphUserCallback onCompleted called\");\n\t if (user != null) {\n\t \tLogger.d(TAG, \"handleFacebookMeResponseRunnable about to be called\");\n\t \t\tcontext.runOnUiThread(new handleFacebookMeResponseRunnable(user, response));\n\t }\n\t }", "@Override\n\t public void onCompleted(GraphUser user, Response response) {\n\t if (user != null) {\n\t \tLogger.d(TAG, \"handleFacebookMeResponseRunnable about to be called\");\n\t \t\tcontext.runOnUiThread(new handleFacebookMeResponseRunnable(user, response));\n\t }\n\t }", "public void onCompleted(GraphResponse response) {\n Log.d(\"title\", \"onCompleted: \" + title);\n\n new DownloadImage().execute(response.getConnection().getURL().toString(),title.get(finalI),id.get(finalI));\n }", "@Override\n public void onCompleted(GraphUser user, Response response) {\n if (session == Session.getActiveSession()) {\n if (user != null) {\n mUser.setFacebookID(user.getId());\n mUser.setFacebookName(user.getName());\n mWelcome.setText(\"Hello \" + mUser.getFacebookName());\n \n mServerConnection.registerGCMId();\n }\n }\n if (response.getError() != null) {\n // Handle errors, will do so later.\n }\n }", "public void onCompleted(GraphResponse response) {\n String json = response.getRawResponse();\n Gson gson = new Gson();\n ListFriends friends = gson.fromJson(json, ListFriends.class);\n list = friends.getData();\n adapter = new FriendsAdapter(FriendsActivity.this, list, new FriendsAdapter.onClick() {\n @Override\n public void click(int pos) {\n friendsInfo = list.get(pos);\n }\n });\n adapter.notifyDataSetChanged();\n rvFriends.setAdapter(adapter);\n }", "@Override\n\t\t\t\tpublic void onComplete(Bundle values)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tLogcat.d(\"Fragment.facebookWallPost().onComplete(): \" + mFacebook.getAccessToken());\n\t\t\t\t}", "void onCompleted(T response);", "@Override\n public void onCompleted(GraphUser user, Response response)\n {\n if (user != null)\n {\n try\n {\n email = user.asMap().get(\"email\").toString();\n WODebug.LogDebug(email);\n }\n catch (Exception e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n email=\"\";\n WODebug.LogDebug(email);\n }\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onCompleted(\n\t\t\t\t\t\t\t\t\t\t\t\t\tGraphUser user,\n\t\t\t\t\t\t\t\t\t\t\t\t\tResponse response) {\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublishfeed(\"current\", jsonRoot);\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t public void onCompleted(GraphUser user, Response response) \n\t\t\t {\n\t\t\t // TODO Auto-generated method stub\n\t\t\t if (user != null) \n\t\t\t {\n\t\t\t Log.e(\"session\",\"if open user\");\n\t\t\t try\n\t\t\t {\n\t\t\t \tstrFacebookEmail=user.asMap().get(\"email\").toString();\n\t\t\t\t\tLog.e(\"email\",\"hi\"+strFacebookEmail);\n\t\t\t\t\tstrFacebookName=user.getName();\n\t\t\t\t\tLog.e(\"name\",strFacebookName);\n\t\t\t\t\tstrFacebookId=user.getId();\n\t\t\t\t\tLog.e(\"fbid\",strFacebookId);\n\t\t\t\t\n\t\t\t\t\t \tstrFacebookProfilePic= \"http://graph.facebook.com/\"+strFacebookId+\"/picture?type=large\";\n\t\t\t\t\t\tprofilepicture=strFacebookProfilePic.replaceAll(\" \",\"%20\").trim();\n\t\t\t\t\t\n\t\t\t\t\t\tLog.e(\"profilepic\",strFacebookProfilePic);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfirstname=user.getFirstName();\n\t\t\t\t\t\tlastname=user.getLastName();\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.e(\"firstname\",firstname);\n\t\t\t\t\t\tLog.e(\"lastname\",lastname);\n\t\t\t\t\t\t\n\t\t\t\t\t\t mPrefs = PreferenceManager.getDefaultSharedPreferences(LoginScreenActivity.this);\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"email\",strFacebookEmail);\n\t\t\t\t\t \t editor.putString(\"access_token\",strAccesstoken);\n\t\t\t\t\t editor.putString(\"facebookid\",strFacebookId);\n\t\t\t\t\t editor.putString(\"profilepic\",strFacebookProfilePic);\n\t\t\t\t\t editor.putString(\"username\",strFacebookName);\n\t\t\t\t\t editor.putString(\"firstname\",firstname);\n\t\t\t\t\t editor.putString(\"lastname\",lastname);\n\t\t\t\t\t editor.putString(\"checkvalue\",\"2\");\n\t\t\t\t\t editor.commit();\n\t \n\t\t\t\t\t new LoginFacebook().execute();\n\t\t\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t \te.printStackTrace();\n\t\t\t }\n\t\t\t \n\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t // Check for publish permissions \n\t\t\t \n\t\t\t \n\t\t\t }", "@Override\n\t\t\t\t\t\t\t\tpublic void onCompleted(GraphUser user,\n\t\t\t\t\t\t\t\t\t\tResponse response) {\n\t\t\t\t\t\t\t\t\tif (user != null) {\n\n\t\t\t\t\t\t\t\t\t\tTextView welcome = (TextView) findViewById(R.id.welcome);\n\t\t\t\t\t\t\t\t\t\twelcome.setText(\"Hello \"\n\t\t\t\t\t\t\t\t\t\t\t\t+ user.getName() + \"!\");\n\t\t\t\t\t\t\t\t\t\tTextView username = (TextView) findViewById(R.id.labelUsername);\n\t\t\t\t\t\t\t\t\t\tusername.setText(user.getUsername());\n\t\t\t\t\t\t\t\t\t\tTextView firstname = (TextView) findViewById(R.id.labelFirstName);\n\t\t\t\t\t\t\t\t\t\tfirstname.setText(user.getFirstName());\n\t\t\t\t\t\t\t\t\t\tTextView lastname = (TextView) findViewById(R.id.labelLastName);\n\t\t\t\t\t\t\t\t\t\tlastname.setText(user.getLastName());\n\t\t\t\t\t\t\t\t\t\tTextView birthday = (TextView) findViewById(R.id.labelBirthday);\n\t\t\t\t\t\t\t\t\t\tbirthday.setText(user.getBirthday());\n\t\t\t\t\t\t\t\t\t\tTextView location = (TextView) findViewById(R.id.labelLocation);\n\t\t\t\t\t\t\t\t\t\tlocation.setText(user.getLocation()\n\t\t\t\t\t\t\t\t\t\t\t\t.getProperty(\"name\").toString());\n\t\t\t\t\t\t\t\t\t\t// location.setText(user.asMap().get(\"location\").toString());\n\t\t\t\t\t\t\t\t\t\tTextView gender = (TextView) findViewById(R.id.labelGender);\n\t\t\t\t\t\t\t\t\t\tgender.setText(user.asMap()\n\t\t\t\t\t\t\t\t\t\t\t\t.get(\"gender\").toString());\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n try{\n email = object.getString(\"email\");\n name = object.getString(\"name\");\n\n } catch (JSONException ex) {\n ex.printStackTrace();\n Log.e(\"error\",ex.getMessage());\n }\n CheckUserOnPArse();\n\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\",\"id,name,email\");\n request.setParameters(parameters);\n request.executeAsync();\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONObjectCallback() {\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n if (response.getError() != null) {\n\n } else {\n getFacebookItems(object);\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,first_name,picture\");\n request.setParameters(parameters);\n request.executeAsync();\n\n }", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "@Override\n public void onCompleted(Flow flow) {}", "@Override\n\t\t\t\t\t\tpublic void onCompleted(GraphUser user,\n\t\t\t\t\t\t\t\tResponse response) {\n\t\t\t\t\t\t\tif (user != null) {\n\t\t\t\t\t\t\t\t// Display the parsed user info\n\t\t\t\t\t\t\t\t// userInfoTextView.setText(buildUserInfoDisplay(user));\n\t\t\t\t\t\t\t\tLog.d(TAG, \"get user data\");\n\t\t\t\t\t\t\t\tvalue.setfbacesstoken(acesstoken);\n\t\t\t\t\t\t\t\tvalue.setfbid(user.getId().toString());\n\t\t\t\t\t\t\t\tvalue.setfblink(user.getLink().toString());\n\t\t\t\t\t\t\t\tLog.d(TAG, acesstoken);\n\t\t\t\t\t\t\t\tLog.d(TAG, value.showfbid());\n\t\t\t\t\t\t\t\tLog.d(TAG, value.showfblink());\n\t\t\t\t\t\t\t\tLog.d(TAG, \"do post\");\n\t\t\t\t\t\t\t\tpostdataTask postdata = new postdataTask();\n\t\t\t\t\t\t\t\tpostdata.execute();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "@Override\n public void onSuccess(LoginResult loginResult) {\n mloginPresenter.onRegisterCallbackSuccess(mActivity,loginResult);\n// populateObjectFromGraphRequest(loginResult);\n }", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onSuccess(AuthResult authResult) {\n\n }", "public void onComplete() {\r\n\r\n }", "@Override\n\t\t\tpublic void onCompleted(final GraphUser user, Response response) {\n\t\t\t\tif (session == Session.getActiveSession()) {\n\t\t\t\t\tif (user != null) {\n\t\t\t\t\t\tToast.makeText(getBaseContext(), \"Hello \"+user.getName()+\"!\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\tParseClass p = new ParseClass(getBaseContext());\n\t\t\t\t\t\tp.Signup(user,user.getProperty(\"email\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (response.getError() != null) {\n\n\t\t\t\t\tToast.makeText(getBaseContext(), \"Error with connection\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}", "public void onFetchCompleted () {}", "void onTaskCompleted(TaskResult taskResult);", "public void onCompleted(GraphResponse response) {\n try {\n FbPost p = FbPostParser.parseFbPostResponse(finalPostArray.getJSONObject(finalI), response.getJSONObject().getJSONArray(\"data\"));\n if (p != null && DBManager.getDBManager(context).getPostById(p.getId()) == null) {\n postList.add(p);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public void onCompleted(Response response) {\n\t\t\t\t\t\tMylog.i(TAG, response.toString());\n\t\t\t\t\t\tDAO db = new DAO(fragment, getActivity()\n\t\t\t\t\t\t\t\t.getApplicationContext());\n\t\t\t\t\t\tFacebookPost fbpost = new FacebookPost();\n\t\t\t\t\t\tfbpost.setContent(message);\n\t\t\t\t\t\tfbpost.setlogType(\"facebookPost\");\n\t\t\t\t\t\tdb.postData(dbName, fbpost, \"touch\");\n\t\t\t\t\t}", "void onRequestCompleted(JSONArray result);", "@Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n System.out.println(\"JsonFB : \"+response.getJSONObject().toString());\n\n try {\n\n\n name = object.optString(\"name\");\n first_name = object.optString(\"first_name\");\n last_name = object.optString(\"last_name\");\n JSONObject picture = object.getJSONObject(\"picture\");\n JSONObject data = picture.getJSONObject(\"data\");\n String url = data.optString(\"url\");\n\n System.out.println(\"Url : \" + url);\n System.out.println(\"Email : \" + email);\n\n\n if (object.has(\"email\")) {\n\n email = object.optString(\"email\");\n\n } else {\n email = \"\";\n }\n\n if (url == null) {\n url = \"\";\n }\n\n\n\n sharedPreferenceClass.saveData(object.optString(\"id\"),name,email,url, null);\n sharedPreferenceClass.isLooggedIn(true);\n\n Intent goIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(goIntent);\n\n\n\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n//Login bhayera aba uninstall garnu parchha\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n }", "@Override\n public void onComplete() {\n callback.getRandomUserResponse(randomUserResponse);\n }", "@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"GreetingsServiceImpl.greetAll All greetings done\");\n\t\t\t\tresponseObserver.onCompleted();\n\t\t\t}", "@Override\n\t\t\t\tpublic void onComplete(Bundle values)\n\t\t\t\t{\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookAuthorize().onComplete(): \" + mFacebook.getAccessToken());\n\t\t\t\t\t\n\t\t\t\t\t// save access token\n\t\t\t\t\tPreferences preferences = new Preferences(getActivity());\n\t\t\t\t\tpreferences.setFacebookAccessToken(mFacebook.getAccessToken());\n\t\t\t\t\tpreferences.setFacebookAccessExpiration(mFacebook.getAccessExpires());\n\t\t\t\t\t\n\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\n\t\t\t\t\t// toast\n\t\t\t\t\tToast.makeText(getActivity(), \"Successfully logged in.\", Toast.LENGTH_LONG).show();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookProfile().onComplete(): \" + response);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "void onComplete(RouterRequest request);", "@Override\n public void onCompleted() {\n builder.setMessage(\"All request data received completely!\");\n responseObserver.onNext(builder.build());\n responseObserver.onCompleted();\n }", "@Override\n public void onCompleted() {\n logger.info(\"Forwarding for query {} complete.\", queryId);\n }", "void onRequestCompleted(String requestName, boolean status,\n String response, String errorMessage);", "@Override\n\t\tpublic void onComplete(Bundle arg0) {\n\t\t\tsocialAuthAd.getUserProfileAsync(new SocialAuthListener<Profile>() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onExecute(String s, Profile p) {\n\t\t\t\t\n\t\t\t\t\tString pUrl;\n\t\t\t\t\tpUrl=p.getProfileImageURL();\n\t\t\t\t\tLog.i(\"String s\", \"\"+s);\n\t\t\t\t\t\n\t\t\t\t\tLog.i(\"ProfileImageURL\", \"\"+pUrl);\n\t\t\t\t\tLog.i(\"DOB\", \"\"+p.getDob());\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(SocialAuthError arg0) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t//After Authentication User Contact Data\n\t\t\tsocialAuthAd.getContactListAsync(new SocialAuthListener<List<Contact>>() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onExecute(String string, List<Contact> userContacts) {\n\t\t\t\t\t Log.i(\"name\", \"\"+userContacts.get(0).getFirstName());\n\t\t\t\t Log.i(\"lName\", \"\"+userContacts.get(0).getLastName());\n\t\t\t\t Log.i(\"ID\", \"\"+userContacts.get(0).getId());\n\t\t\t\t Log.i(\"PimgURL\", \"\"+userContacts.get(0).getProfileImageURL());\n\t\t\t\t Log.i(\"Purl\", \"\"+userContacts.get(0).getProfileUrl());\n\t\t\t\t \n\t\t\t\t shareWithFriends_lv.setAdapter(new LinkedInContactAdapter(ShareWithFriendsActivity.this, userContacts));\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(SocialAuthError arg0) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}", "@Override\n\t\t\t\tpublic void onComplete(final String response, Object state)\n\t\t\t\t{\n\n\t\t\t\t\tLogcat.d(\"Fragment.facebookFriends().onComplete(): \" + response);\n\n\t\t\t\t\tgetActivity().runOnUiThread(new Runnable()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// hide progress in action bar\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}", "@Override\n\t\t\tpublic void onCompleted(GraphUser user, Response response) {\n\t\t\t\tif (session == Session.getActiveSession()) {\n\t\t\t\t\tif (user != null) {\n\t\t\t\t\t\tuserID = String.valueOf(user.getId());\n\t\t\t\t\t\tLog.v(\"FB_ID\", userID);\n\t\t\t\t\t\t// Set the id for the ProfilePictureView\n\t\t\t\t\t\t// view that in turn displays the profile picture.\n\t\t\t\t\t\tprofilePictureView.setProfileId(user.getId());\n\t\t\t\t\t\t// Set the Textview's text to the user's name.\n\t\t\t\t\t\tuserNameView.setText(user.getName());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (response.getError() != null) {\n\t\t\t\t\t// Handle errors, will do so later.\n\t\t\t\t\tuserNameView.setText(response.getError().toString());\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleFacebookAccessToken(loginResult.getAccessToken());\n\n }", "public void onCompletedImpl() {\n }", "public void onCompleted(GraphResponse response) {\n JSONArray postArray = null;\n try {\n postArray = response.getJSONObject().getJSONArray(\"data\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n int postLimit = 10;\n if(postArray.length()<10) {postLimit=postArray.length();}\n\n for (int i=0; i<postLimit; i++) {\n String postId;\n try {\n postId = postArray.getJSONObject(i).getString(\"id\");\n\n final int finalI = i;\n final JSONArray finalPostArray = postArray;\n\n // se non esiste in DB\n if(DBManager.getDBManager(context).getPostById(postId)==null) {\n Log.e(\"FB POST MANAGER\", \"New post found\");\n\n new GraphRequest(\n AccessToken.getCurrentAccessToken(),\n \"/\" + postId + \"/attachments\",\n null,\n HttpMethod.GET,\n new GraphRequest.Callback() {\n public void onCompleted(GraphResponse response) {\n /* handle the result */\n try {\n FbPost p = FbPostParser.parseFbPostResponse(finalPostArray.getJSONObject(finalI), response.getJSONObject().getJSONArray(\"data\"));\n if (p != null && DBManager.getDBManager(context).getPostById(p.getId()) == null) {\n postList.add(p);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n ).executeAndWait();\n }\n else {\n Log.e(\"FB POST MANAGER\", \"Post skipped\");\n totalImages--;\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public void onCompletion();", "@Override\n public void onSuccess(IAuthenticationResult authenticationResult) {\n Log.d(TAG, \"Successfully authenticated\");\n Log.d(TAG, \"ID Token: \" + authenticationResult.getAccount().getClaims().get(\"id_token\"));\n\n /* Update account */\n mAccount = authenticationResult.getAccount();\n updateUI();\n\n /* call graph */\n callGraphAPI(authenticationResult);\n }", "@Override\n public void onCompleted(\n JSONObject object,\n GraphResponse response) {\n System.out.println(\"In graph:\");\n try {\n\n\n System.out.println(\"Graph response: \" + response);\n\n String token = FirebaseInstanceId.getInstance().getToken();\n newUserObj.put(\"userid\", userId);\n newUserObj.put(\"firebaseToken\", token);\n System.out.println(\"firebase Token = \" + token);\n newUserObj.put(\"tokenStr\",tokenStr);\n System.out.println(\"parsed userid and token (as email)\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n String first_name = object.getString(\"first_name\");\n String last_name = object.getString(\"last_name\");\n String userID_Test = object.getString(\"id\");\n String user_name_test = object.getString(\"name\");\n\n\n JSONObject tempArray = response.getJSONObject();\n System.out.println(\"tempArray: \" + tempArray);\n //index 5 is position in field parameter request from above\n //JSONObject data_obj = tempArray.getJSONObject(0);\n JSONObject picture_obj = tempArray.getJSONObject(\"picture\");\n System.out.println(\"picture_obj: \" + picture_obj);\n\n JSONObject data_obj = picture_obj.getJSONObject(\"data\");\n System.out.println(\"data_obj: \" + data_obj);\n\n String prof_pic = data_obj.getString(\"url\");\n\n //String prof_pic = object.getString(\"picture\");\n //String prof_pic_url = object.getString(\"url\");\n System.out.println(\"MY URL IS: \" + prof_pic);\n\n\n\n System.out.println(\"parsed first and last name\");\n System.out.println(\"test field: \"+userID_Test+\" ;\"+user_name_test);\n full_name = first_name + \" \" + last_name;\n //backend needs full name\n newUserObj.put(\"username\", full_name);\n newUserObj.put(\"id_Test\",userID_Test);\n newUserObj.put(\"name_Test\",user_name_test);\n newUserObj.put(\"pic_url\",prof_pic);\n connectJsonStream postUser = new postUserInfo(current,newUserObj,serverAddress,phpAddress);\n postUser.execute();\n System.out.println(\"Reuse token and skip Login: \"+userId+\" \"+newUserObj.get(\"username\")+\"\\n\"+newUserObj.get(\"name_Test\")+\"\\n\"+newUserObj.get(\"id_Test\"));\n System.out.println(\"parsed userid and token (as email)\");\n\n } catch (Exception e) {\n e.printStackTrace();\n getPopup(global.ERROR_FACEBOOK_LOGIN);\n }\n }", "public void onComplete(Bundle values) {\r\n\t\t final String postId = values.getString(\"post_id\");\r\n\t\t if (postId != null) {\r\n\t\t Log.d(\"FB Sample App\", \"Dialog Success! post_id=\" + postId);\r\n\t\t mAsyncRunner.request(postId, new WallPostRequestListener());\r\n\t\t } else {\r\n\t\t Log.d(\"FB Sample App\", \"No wall post made\");\r\n\t\t }\r\n\t\t \r\n\t\t Intent intent=new Intent(getActivity(), TelaPrincipal.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t}", "@Override\n public void onCompleted() {\n System.out.println(\"Sending final response as client is done\");\n //as client done, setting the result to response observer object\n responseObserver.onNext(LongGreetResponse.newBuilder().setResult(result).build());\n //complete the response\n responseObserver.onCompleted();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\r\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\r\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\r\n\t\t}", "@Override\n public void completed(Integer result, String attachment)\n {\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleFacebookAccessToken(loginResult.getAccessToken());\n }", "@Override\n public void onSuccess(LoginResult loginResult) {\n handleFacebookAccessToken(loginResult.getAccessToken());\n }", "void onComplete(ResultModel result);", "@Override\n public void onComplete() {\n System.out.println (\"Suree onComplete\" );\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n\n\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\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.64940006", "0.64743614", "0.6432467", "0.6402011", "0.6379669", "0.6306644", "0.63050675", "0.62639266", "0.62259436", "0.62162113", "0.6202653", "0.62004304", "0.6196045", "0.61942333", "0.61898786", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.61895835", "0.6188718", "0.61825144", "0.6175668", "0.61655885", "0.61364686", "0.6123294", "0.6121796", "0.6121796", "0.6096266", "0.6085282", "0.60635895", "0.6055787", "0.60555434", "0.6052261", "0.60482836", "0.604275", "0.60233545", "0.60046273", "0.60046273", "0.6003874", "0.6003747", "0.5998531", "0.598818", "0.5963902", "0.5950612", "0.59314054", "0.5908142", "0.5882458", "0.58737534", "0.5872929", "0.585961", "0.5855833", "0.5844565", "0.5837229", "0.58269405", "0.5826218", "0.5825329", "0.5820235", "0.5818693", "0.58078563", "0.5794891", "0.5790542", "0.5790458", "0.5790458", "0.57878494", "0.57803035", "0.57783294", "0.5775258", "0.5775258", "0.5775258", "0.5775258", "0.5775258" ]
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 (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw new RuntimeException(\"An error occurred while executing doInBackground()\", e2.getCause());\n } catch (CancellationException unused) {\n C1000c.this.mo5101e(null);\n } catch (Throwable th) {\n throw new RuntimeException(\"An error occurred while executing doInBackground()\", th);\n }\n }", "public void done() {\n AppMethodBeat.i(98166);\n try {\n AsyncTask.this.a(get());\n AppMethodBeat.o(98166);\n } catch (InterruptedException e) {\n AppMethodBeat.o(98166);\n } catch (ExecutionException e2) {\n RuntimeException runtimeException = new RuntimeException(\"An error occured while executing doInBackground()\", e2.getCause());\n AppMethodBeat.o(98166);\n throw runtimeException;\n } catch (CancellationException e3) {\n AsyncTask.this.a(null);\n AppMethodBeat.o(98166);\n }\n }", "@Override\n\tpublic boolean done() {\n\t\tfor(Task t : details.getPendingTasks()){\n\t\t\tif(!t.isComplete())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void done() {\n try {\n AsyncTask.this.a(get());\n } catch (InterruptedException e) {\n Log.w(\"AsyncTask\", e);\n } catch (ExecutionException e2) {\n throw new RuntimeException(\"An error occured while executing doInBackground()\", e2.getCause());\n } catch (CancellationException unused) {\n AsyncTask.this.a(null);\n }\n }", "public void waitForFinish() {\n for(Future future : futures){\n try {\n future.get();\n } catch (InterruptedException | ExecutionException e) {\n LOGGER.error(\"ERROR\",e);\n }\n }\n }", "public void awaitPendingTasksFinished() throws IgniteCheckedException {\n GridCompoundFuture pendingFut = this.pendingTaskFuture;\n\n this.pendingTaskFuture = new GridCompoundFuture();\n\n if (pendingFut != null) {\n pendingFut.markInitialized();\n\n pendingFut.get();\n }\n }", "@Override\n public void onTaskDone(Object... values) {\n }", "public void taskComplete() {\n mTasksLeft--;\n if ((mTasksLeft==0) & mHasCloRequest){\n onAllTasksCompleted();\n }\n }", "public void finishedAllRequests() {\n hasMoreRequests = false;\n }", "protected void completeFuturesForFauxInstances() {\n }", "public abstract Task markAsDone();", "protected void synchronizationDone() {\n }", "public void completeTask() {\n completed = true;\n }", "void whenComplete();", "private void awaitDone() throws IgniteInterruptedCheckedException {\n U.await(doneLatch);\n }", "public void done() {\n\t\t}", "@Override\n public void done() {\n }", "@Override\n public void done() {\n }", "public abstract void done();", "public void waitAllNodesCompleteProcessingTask() {\n // check coordinator finished task\n while (!txnCoordinator.hasNoRunningJobs()) {\n Thread.yield();\n }\n // check each participant finished task and resolve unfinished task\n for (Participant p : txnCoordinator.getParticipants()) {\n while (!((Node) p).hasNoRunningJobs()) {\n Thread.yield();\n }\n p.resolveUnfinishedTask();\n }\n }", "public void finishTask() {\n\t\t\n\t}", "@SuppressWarnings(\"SynchronizationOnLocalVariableOrMethodParameter\") // I know what I'm doing - famous last words.\n private static void awaitCompletion(final HashMultimap<UUID, Future<Void>> handles) {\n final Set<Future<Void>> futures;\n synchronized (handles) {\n futures = new HashSet<>(handles.values());\n handles.clear();\n }\n\n for (final Future<Void> future : futures) {\n await(future);\n }\n }", "@Override\r\n\tpublic void done() {\n\t\t\r\n\t}", "void onTaskComplete(T result);", "@Override\n\t\tpublic void onCompleted() {\n\t\t}", "@Override\n\tpublic void onComplete() {\n\t\tSystem.out.println(\"Its Done!!!\");\n\t}", "void synchronizationDone();", "@Override\r\n\t\t\tpublic void onCompleted() {\n\r\n\t\t\t}", "void TaskFinished(Task task) {\n\n repository.finishTask(task);\n }", "@Override\n\t\tpublic void done() {\n\n\t\t}", "public void afterDone() {\n }", "public void afterDone() {\n }", "private void waitForBackgroupTasks() {\n this.objectStore.getAllObjectIDs();\n this.objectStore.getAllEvictableObjectIDs();\n this.objectStore.getAllMapTypeObjectIDs();\n }", "public void await() {\n for (final Future<Void> future : futures) {\n try {\n future.get();\n } catch (final Throwable e) {\n LOGGER.error(\"Scheduled blob storage job threw an exception.\", e);\n }\n }\n futures.clear();\n }", "public void onCompleted() {\n\t\t\n\t\t }", "void onTaskCompleted(TaskResult taskResult);", "@Override\n public void onCompleted() {\n }", "@Override\n public void onCompleted() {\n }", "public void done() {\n isDone = true;\n }", "public void done() {\n done = true;\n }", "void finish(Task task);", "public void done();", "public void done();", "public void done();", "void done();", "void onTaskCompleted(T t, boolean succeed) {\n metrics.markCompletion(t, succeed);\n for (CompletableTask.Listener<T> listener : listeners) {\n listener.onComplete(t, succeed);\n }\n }", "@Override\r\n\tpublic void done() {\n\t\tSystem.out.println(\"done\");\r\n\t}", "public void done() {\n \t\t\t\t\t\t}", "@Override\n\tpublic void onTaskDone(String result) {\n\t\t\n\t}", "@Override\n public boolean isDone()\n {\n return false;\n }", "public void done() {\n if (!isCancelled()) {\n try {\n C0637h.this.mo7991a(get());\n } catch (InterruptedException | ExecutionException e) {\n C0637h.this.mo7992a(e.getCause());\n }\n } else {\n C0637h.this.mo7992a((Throwable) new CancellationException());\n }\n }", "@Override\n\tpublic boolean done() {\n\t\treturn true;\n\t}", "@Override\n public boolean isDone() {\n return false;\n }", "protected void execute() {\n finished = true;\n }", "@Override\n public void onCompleted() {\n System.out.println(\n \"\\n\\tServer is finished!\"\n );\n\n this.latch.countDown();\n }", "@Override\n\tpublic void onFinal(Task task) {\n\n\t}", "public Status waitUntilFinished();", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);//Run the generic code that should be ran when the task is complete\n onCompleteListener.onAsyncTaskComplete(result);//Run the code that should occur when the task is complete\n }", "@Override\n public void onCompleted() {\n System.out.println(\"Server has completed sending us response\");\n // on completed will be called right after onNext\n // Whenever server is done sending data latch is going down by 1\n latch.countDown();\n }", "@Override\n\tpublic synchronized void waitAllTasks() throws ExecutionException, InterruptedException {\n\t\twaitTasks(key -> true);\n\t}", "public void handleFinish()\n {\n }", "public void complete() {\n\t}", "protected void fireQueueComplete() {\n for (UploadListener uploadListener : uploadListeners) {\n uploadListener.queueUploadComplete();\n }\n }", "public void onAllTasksCompleted() {\n if (mIsLoadingDone) {\n // nothing to do\n return;\n }\n\n Outfit temp;\n // get best top, bottom combo\n Outfit best_outfit = getBestTopBottom(mCloRequest);\n double diff = Math.abs(mCloRequest - best_outfit.getCloValue());\n\n // get best dress\n temp = getBestDress(mCloRequest);\n if (best_outfit.isEmpty() || (!temp.isEmpty() && (Math.abs(mCloRequest - temp.getCloValue()) < diff))) {\n best_outfit = temp;\n diff = Math.abs(mCloRequest - temp.getCloValue());\n }\n\n // get best jacket outfit\n temp= getBestWithJacket(mCloRequest);\n if (best_outfit.isEmpty() || (!temp.isEmpty() && (Math.abs(mCloRequest - temp.getCloValue()) < diff))) {\n best_outfit = temp;\n diff = Math.abs(mCloRequest - temp.getCloValue());\n }\n\n mIsLoadingDone = true;\n if (!best_outfit.isEmpty() && best_outfit.isValid()) {\n mParent.addOutfit(best_outfit);\n }\n }", "@SuppressWarnings(\"SynchronizationOnLocalVariableOrMethodParameter\") // I know what I'm doing - famous last words.\n private static void awaitCompletion(final HashMultimap<UUID, Future<Void>> handles, final UUID handle) {\n final Set<Future<Void>> futures;\n synchronized (handles) {\n futures = handles.removeAll(handle);\n }\n\n for (final Future<Void> future : futures) {\n await(future);\n }\n }", "void submitAndWaitForAll(Iterable<Runnable> tasks);", "@Override\n public void onComplete() {\n System.out.println (\"Suree onComplete\" );\n }", "public void checkOffTask() {\n isDone = true;\n }", "public boolean isDone() { return true; }", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "void endTask();", "@Override\n protected void onPostExecute (ArrayList<Event> result) {\n }", "public void onFinished();", "public void performBatchComplete() {\n ArrayList arrayList = new ArrayList(this.batch);\n this.batch.clear();\n this.mainThreadHandler.sendMessage(this.mainThreadHandler.obtainMessage(8, arrayList));\n logBatch(arrayList);\n }", "public boolean done() {\n return false;\n }", "@Override\n public void onCompleted() {\n builder.setMessage(\"All request data received completely!\");\n responseObserver.onNext(builder.build());\n responseObserver.onCompleted();\n }", "void waitAll();", "@Override\n\tpublic void complete()\n\t{\n\t}", "@Override\n\tpublic boolean done() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean done() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic void onComplete() {\n\t\t\tSystem.out.println(\"onComplete\");\n\t\t}", "public void awaitDone() {\n try {\n // Wait until the CountDownLatch reaches 0.\n mExitBarrier.await();\n } catch(java.lang.InterruptedException e) {\n errorLog(\"PlatformStrategyAndroid\",\n e.getMessage());\n }\n }", "public void finish() {\n latch.countDown();\n }", "@Override\n\t\tpublic void onFinish() {\n\t\t\tfinalizar();\n\t\t}", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n }", "@Override\n public void onComplete(@NonNull Task<Void> task) {\n }", "void complete();", "void complete();", "private static void mergingSyncMadeAsync() {\n Observable.merge(getDataSync(1).subscribeOn(Schedulers.io()), getDataSync(2).subscribeOn(Schedulers.io())).blockingForEach(System.out::println);\n }", "@Override\n public boolean isDone() {\n return future.isDone();\n }", "final void waitFinished() {\n if (selectionSyncTask != null) {\n selectionSyncTask.waitFinished();\n }\n }", "@Override\n public void onFinished() {\n\n }", "protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"All Finished\");\r\n\t\t\t}", "@Override\n public boolean completed() {\n return false;\n }", "public void onComplete() {\r\n\r\n }", "public void finish() {\n\t\ttask.run();\n\t\ttask.cancel();\n\t}" ]
[ "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.6267234", "0.6267234", "0.6258361", "0.6258359", "0.62480175", "0.6229632", "0.6229117", "0.622591", "0.6225003", "0.6185571", "0.6162299", "0.61583495", "0.6154241", "0.61523557", "0.6151406", "0.6151406", "0.6128744", "0.6122411", "0.6110771", "0.6096684", "0.60964453", "0.60964453", "0.6083294", "0.60666305", "0.6060295", "0.6054038", "0.6054038", "0.6054038", "0.6046103", "0.6037699", "0.6037018", "0.60214233", "0.6019814", "0.6015718", "0.6008833", "0.59983516", "0.5996842", "0.59960186", "0.5993006", "0.5987701", "0.5984503", "0.59748805", "0.5968088", "0.5953821", "0.5927166", "0.5924064", "0.5913418", "0.5887498", "0.5884699", "0.58846074", "0.58830285", "0.5877046", "0.58633167", "0.5843942", "0.58288443", "0.5827933", "0.5825926", "0.5822864", "0.5810183", "0.5808843", "0.58056325", "0.57967544", "0.57948405", "0.57948405", "0.57903755", "0.5783708", "0.5779995", "0.5776485", "0.57734615", "0.57734615", "0.57706773", "0.57706773", "0.5767079", "0.575294", "0.5752497", "0.5752205", "0.5750421", "0.5745275", "0.5743501", "0.5740568", "0.5739218" ]
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}", "@Override\r\n\tpublic Set<Robot> getRobots(Board board)\r\n\t{\r\n\t\treturn board.getElements(Robot.class);\r\n\t}", "public ArrayList<String> getRobots() {\n return robotDiscovery.getRobots();\n }", "private void initRobots() {\n\t\tthis.robots.clear();\n\t\tGraphRobot robot = new GraphRobot();\n\t\tString info = game.toString();\n\t\ttry {\n\t\t\tJSONObject line = new JSONObject(info);\n\t\t\tJSONObject ttt = line.getJSONObject(\"GameServer\");\n\t\t\tint rs = ttt.getInt(\"robots\");\n\t\t\tfor(int a = 0;a<rs;a++) {\n\t\t\t\tgame.addRobot(a);\n\t\t\t}\n\t\t}\n\t\tcatch (JSONException e) {e.printStackTrace();}\n\n\t\tList<String> r = game.getRobots();\n\t\tfor(String s : r) {\n\t\t\trobot.initRobot(s);\n\t\t\tthis.robots.add(robot);\n\t\t}\n\t}", "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}", "@Override\n\tpublic void locateRobots() throws JSONException {\n\t\tfor (int i = 0; i < this.rob.size() && i < this.fru.size(); i++) {\n\t\t\tthis.rob.get(i).setSrc(this.fru.get(i).src);\n\t\t}\n\t}", "@Override\n\tpublic void moverob(game_service game) throws JSONException {\n\t\tthis.rob = new ArrayList<robot>();\n\t\tfor (String ro : game.getRobots()) {\n\t\t\trob.add(new robot(ro));\n\t\t}\n\t}", "public RobotInfo[] get(int[] bots){\n \tint numBots = bots.length;\n\t\tRobotInfo[] ret = new RobotInfo[numBots];\n\t\twhile(numBots > 0){\n\t\t\tnumBots--;\n\t\t\tret[numBots] = info[bots[numBots] % HASH];\n\t\t}\n\t\treturn ret;\n }", "public List<Robot> getMoveableRobots() {\r\n\t\tList<Robot> moveable = new ArrayList<Robot>();\r\n\r\n\t\tfor (Robot robot : this.getRobotsAlive()) {\r\n\t\t\tif (robot.getMovement() > 0) {\r\n\t\t\t\tmoveable.add(robot);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn moveable;\r\n\t}", "public void spawnRobots() {\n\t\tString robotName\t= \"\";\n\t\tPlayer newPlayer\t= null;\n\t\tint numberOfRobots \t= 0;\n\t\tint robotsPerPlayer = server.getRobotsPerPlayer();\n\t\tint numberOfPlayers = server.getPlayerCount();\n\t\tint robotsPerLevel\t= server.getRobotsPerLevel();\n\t\t\n\t\t// calculate how many robots that should be spawned\n\t\trobotsPerPlayer = robotsPerPlayer *\n\t\t\t\t\t\t (robotsPerLevel * \n\t\t\t\t\t\t currentLevel);\n\t\t\n\t\tnumberOfRobots \t= robotsPerPlayer *\n\t\t\t\t\t\t numberOfPlayers;\n\t\t\n\t\tfor(int i = 0; i < numberOfRobots; i++) {\n\t\t\trobotName \t\t\t= \"Robot\" + (i+1);\n\t\t\tnewPlayer = initPlayerToGameplane(robotName, \n\t\t\t\t\t\t\t\t \t\t\t PlayerType.Robot, \n\t\t\t\t\t\t\t\t \t\t\t 0, 0);\n\t\t\t\n\t\t\tHandleCommunication.broadcastToClient(null, \n\t\t\t\t\t\t\t\t\t\t\t\t server.getConnectedClientList(), \n\t\t\t\t\t\t\t\t\t\t\t\t SendSetting.AddPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t newPlayer, \n\t\t\t\t\t\t\t\t\t\t\t\t null);\n\t\t}\n\t}", "public void DrawRobots(List<String> robots) {\r\n\t\tcounter++;\r\n\t\trob=new ArrayList<>();\r\n\t\tList<String> r=game.getRobots();\r\n\t\tString RJ=r.toString();\r\n\t\ttry {\r\n\t\t\tJSONArray j =new JSONArray(RJ);\r\n\t\t\tint i=0; \r\n\t\t\tint c=0;\r\n\t\t\twhile(i<j.length()) {\r\n\t\t\t\tString help=\"\";\r\n\t\t\t\tJSONObject n=(JSONObject) j.get(i);\r\n\t\t\t\tJSONObject jr = n.getJSONObject(\"Robot\");\r\n\t\t\t\tString s=jr.getString(\"pos\");\r\n\t\t\t\tString p[]=new String[3];\r\n\t\t\t\tfor (int k = 0; k < s.length(); k++) {\r\n\t\t\t\t\tif(s.charAt(k)!=',') {\r\n\t\t\t\t\t\thelp=help+s.charAt(k);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(c<3&&s.charAt(k)==',') {\r\n\t\t\t\t\t\tp[c]=help; \r\n\t\t\t\t\t\tc++;\r\n\t\t\t\t\t\thelp=\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp[c]=help; \r\n\t\t\t\tc=0;\r\n\t\t\t\tdouble x=Double.parseDouble(p[0]);\r\n\t\t\t\tdouble y=Double.parseDouble(p[1]);\r\n\t\t\t\tdouble z=Double.parseDouble(p[2]);\r\n\t\t\t\tPoint3D p1=new Point3D(x,y,z);\r\n\t\t\t\tint id=jr.getInt(\"id\");\r\n\t\t\t\tdouble value=jr.getDouble(\"value\");\r\n\t\t\t\tint src=jr.getInt(\"src\");\r\n\t\t\t\tint dest=jr.getInt(\"dest\");\r\n\t\t\t\tdouble speed=jr.getDouble(\"speed\");\r\n\t\t\t\tRobot ro=new Robot(src,p1,id,dest,value,speed);\r\n\t\t\t\trob.add(ro);\r\n\t\t\t\ti++;\r\n\r\n\t\t\t\tif(KMLbool) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tKML_Logger.write(KmlName, ro.p.x(), ro.p.y(), \"Robot\", game.timeToEnd());\r\n\r\n\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t}catch(Exception error) {\r\n\t\t\terror.printStackTrace();\r\n\r\n\t\t\tSystem.out.println(\"catch\");\r\n\r\n\t\t}\r\n\t\tint n=1;\r\n\t\tfor (Robot r1: rob) {\r\n\t\t\tStdDraw.setPenRadius(0.030);\r\n\t\t\tStdDraw.setPenColor(Color.black);\r\n\t\t\tStdDraw.point(r1.p.x(), r1.p.y());\r\n\t\t\tStdDraw.text(rx.get_max() - 0.001 - 0.0075*n, ry.get_max()-0.0005, \r\n\t\t\t\t\t\"robot \"+ (n++) + \" score: \" + r1.value);\r\n\t\t}\r\n\r\n\r\n\t}", "public void setRobots(List<Robot> listaRobots) {\n\t\tif ( visorEscenario != null )\n\t\t\tvisorEscenario.setRobots(listaRobots);\n\t}", "private void moveRobots() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == Player.PlayerType.Robot) {\n\t\t\t\tPoint old = new Point(p.getX(), p.getY());\n\t\t\t\tPoint newPoint = new Point(p.getX(), p.getY());\n\t\t\t\t\n\t\t\t\toccupiedPositions.remove(old);\n\t\t\t\t\n\t\t\t\tint playerX = p.getPlayerToFollow().getX();\n\t\t\t\tint playerY = p.getPlayerToFollow().getY();\n\t\t\t\t\n\t\t\t\t//move towards the agent\n\t\t\t\tif(p.getX() < playerX)\n\t\t\t\t\tnewPoint.x += 1;\n\t\t\t\telse if(p.getX() > playerX)\n\t\t\t\t\tnewPoint.x -= 1;\n\t\t\t\t\n\t\t\t\tif(p.getY() < playerY)\n\t\t\t\t\tnewPoint.y += 1;\n\t\t\t\telse if(p.getY() > playerY)\n\t\t\t\t\tnewPoint.y -= 1;\n\t\t\t\t\n\t\t\t\tp.setPosition(newPoint);\n\t\t\t\t\n\t\t\t\t//check if the robot has moved on to something\n\t\t\t\tif(occupiedPositions.contains(newPoint)) { \t\t// check if the position is occupied\n\t\t\t\t\tfor(Player p2 : playerList) { \t\t\t\n\t\t\t\t\t\tif(!p.getName().equals(p2.getName())) {\t// check so it not is the robot itself\n\t\t\t\t\t\t\tif(newPoint.equals(p2.getPosition())) {\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Robot) { // if it is a robot, both should be rubble\n\t\t\t\t\t\t\t\t\tp2.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp2.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(p2.getType() == PlayerType.Rubble) { // if it is rubble\n\t\t\t\t\t\t\t\t\tp.setType(PlayerType.Rubble);\n\t\t\t\t\t\t\t\t\tp.getPlayerToFollow().decreaseRobotsFollowing();\n\t\t\t\t\t\t\t\t\tHandleCommunication.broadcastToClient(null, server.getConnectedClientList(), SendSetting.ChangedType, p.getName(), p2.getName());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(p2.getType() == PlayerType.Agent) {\n\t\t\t\t\t\t\t\t\tString send = generateSendableHighscoreList();\n\t\t\t\t\t\t\t\t\tserver.sendMessageToClient(p2.getName(), \"@132@\" + highscore.size() + \"@\" + send);\n\t\t\t\t\t\t\t\t\tserver.addTextToLoggingWindow(\"Robot killed player (\" + p2.getName() + \")\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toccupiedPositions.add(newPoint);\n\t\t\t\tserver.broadcastToClient(p.getName(), SendSetting.PlayerMoved, old, newPoint);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t//send that it is agents turn again\n\t\tserver.broadcastToClient(null, SendSetting.AgentsTurnToMove, null, null);\n\t}", "public void agregarRobot(Robot robot);", "@Override\r\n\tpublic RobPlayerInfo[] placeRobber(HexLocation hexLoc) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void deplacerRobot(ArrayList<Robot> listeRobot) {\n\t\t\r\n\t}", "public void initRobotPath() {\n for (int i = 0; i < my_game.getRobot_size(); i++) {\n Robot robot = my_game.getRobots().get(i);\n // Fruit fruit = my_game.getFruits().get(i);\n Fruit fruit = findClosestFruit(robot);\n List<node_data> tmp = algo_g.shortestPath(robot.getSrc(), fruit.getEdge().getDest());\n robots_paths.put(robot.getId(), tmp);\n fruits_status.put(robot.getId(),fruit);\n }\n }", "public static Robot[] nearbyAllies(int radiusSquared) {\n int i;\n switch (radiusSquared) {\n case 3: \n i = 0;\n break;\n case LC_RADIUS:\n i = 1;\n break;\n case Soldier.GL_RADIUS:\n i = 2;\n break;\n // We don't cache that radius\n default: return RC.senseNearbyGameObjects(Robot.class, radiusSquared, MY_TEAM);\n }\n \n if (nearby_allies[i] == null || nearby_allies_last_updated[i] < Clock.getRoundNum()) {\n nearby_allies[i] = RC.senseNearbyGameObjects(Robot.class, radiusSquared, MY_TEAM);\n nearby_allies_last_updated[i] = Clock.getRoundNum();\n }\n \n return nearby_allies[i];\n }", "List<AgentReference> getCurrentAgents();", "public static void main(String[] args) {\n\t\t\n\t//2. create an array of 5 robots.\n\tRobot[] robs = new Robot[5];\n\t//3. use a for loop to initialize the robots.\n\tfor (int i = 0; i < robs.length; i++) {\n\t\t\trobs[i] = new Robot();\n\t\t\trobs[i].setX(100 * i + 100);\n\t\t\trobs[i].setY(500);\n\t\t\trobs[i].setSpeed(10);\n\t}\n\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\t\t\n\t//5. use another for loop to iterate through the array and make each robot move \n\t// a random amount less than 50.\n\tfor (int i = 0; i < robs.length; i++) {\n\t\tRandom rnd = new Random();\n\t\trobs[i].move(rnd.nextInt(50)+1);\n\t}\n\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\n\tboolean notwon = true;\n\tint winner = -250;\n\twhile(notwon) {\n\t\tfor (int i = 0; i < robs.length; i++) {\n\t\t\tRandom rnd = new Random();\n\t\t\trobs[i].move(rnd.nextInt(50)+1);\n\t\t}\n\t\tfor (int i = 0; i < robs.length; i++) {\n\t\t\tif (notwon && winner == -250 && robs[i].getY() <= 72) {\n\t\t\t\twinner = i;\n\t\t\t\tnotwon = false;\n\t\t\t}\n\t\t}\n\t}\n\t\n\trobs[winner].sparkle();\n\t//7. declare that robot the winner and throw it a party!\n\t\n\t//8. try different races with different amounts of robots.\n\n\t//9. make the robots race around a circular track.\n}", "private void removeRobot(Actor r) {\n\t\tfor (int i = 0; i < attackRobots.size(); i++) {\n\t\t\tif (attackRobots.get(i).equals(r)) {\n\t\t\t\tattackRobots.remove(i);\n\t\t\t\tcheckLost();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < supportRobots.size(); i++) {\n\t\t\tif (supportRobots.get(i).equals(r))\n\t\t\t\tsupportRobots.remove(i);\n\t\t}\n\t}", "private static Sittable[] makePeopleWhoCanSit() {\n\t\treturn null;\n\t}", "protected ArrayList<Obstacle> getObstacles() {\n return obstacles;\n }", "private void reAssignRobots(Player p) {\n\t\tfor(Player player : playerList) \n\t\t\tif(player.getType() == PlayerType.Robot) \n\t\t\t\tif(player.getPlayerToFollow().getName().equals(p.getName())) \n\t\t\t\t\tplayer.addPlayerToFollow(assignPlayerToFollow(p));\n\t}", "public void setRois(Roi[] rois) {\n this.rois = rois;\n }", "public List<REPoint> getObstacles();", "public java.lang.Object[] getArbolesAsArray()\r\n {\r\n return (arboles == null) ? null : arboles.toArray();\r\n }", "boolean insertRobot(Position pos, Robot rob);", "void setPlaces(Place[] places);", "@Override\r\n \tprotected Robot getRobot() {\t\t\r\n \t\treturn null;\r\n \t}", "public RobotID getRobot() {\n return robot;\n }", "Robot getRobot(Position pos);", "public org.biocatalogue.x2009.xml.rest.Agent[] getAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List<org.biocatalogue.x2009.xml.rest.Agent> targetList = new java.util.ArrayList<org.biocatalogue.x2009.xml.rest.Agent>();\r\n get_store().find_all_element_users(AGENT$0, targetList);\r\n org.biocatalogue.x2009.xml.rest.Agent[] result = new org.biocatalogue.x2009.xml.rest.Agent[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "Lift(final Robot ROBOT)\n {\n _robot = ROBOT;\n }", "public List<UsersRobots> findAll(){\n CriteriaBuilder cb = entityManager.getCriteriaBuilder();\n CriteriaQuery<UsersRobots> cq = cb.createQuery(UsersRobots.class);\n Root<UsersRobots> rootEntry = cq.from(UsersRobots.class);\n CriteriaQuery<UsersRobots> all = cq.select(rootEntry);\n TypedQuery<UsersRobots> allQuery = entityManager.createQuery(all);\n return allQuery.getResultList();\n }", "public static void main(String[] args) {\n\t\t\n\t\n\t\t//2. create an array of 5 robots.\n\tRobot[] robot = new Robot[5];\n\t\t//3. use a for loop to initialize the robots.\n\tfor (int i = 0; i < robot.length; i++) {\n\t\trobot[i]=new Robot();\n\t}\n\t\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\nrobot[0].moveTo(50, 550);\nrobot[1].moveTo(150, 550);\nrobot[2].moveTo(250, 550);\nrobot[3].moveTo(350, 550);\nrobot[4].moveTo(450, 550);\n\t\t//5. use another for loop to iterate through the array and make each robot move \n\t // a random amount less than 50.\n \n\t\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\nboolean finished=false;\nwhile(!finished) {\n \tfor (int i = 0; i < robot.length; i++) {\n\tRandom random = new Random();\n\t\trandom.nextInt(50);\n\t\trobot[i].move(i);\n\t\tif(robot[i].getY()==0) {\n \t\tfinished=true;\n \t\trobot[i].sparkle();\n \t\tSystem.out.println(\"You are the winner!\");\n \t\t\n \t}\n \t}\n}\n\t}", "public interface RobotConveyor {\n\n Robot createRobot();\n}", "protected int[] getOwners() {\n \t\treturn owners;\n \t}", "public Robot getRobot(String nombre);", "public abstract void interagir(Robot robot);", "public java.util.ArrayList getClones();", "public ArrayList<Obstacle> getObstacles(){\n\t\treturn obstacles;\n\t}", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "public void addRobot(AttackRobot robot) {\n\t\tattackRobots.add(robot);\n\t}", "public abstract void interagir (Robot robot);", "com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfguid addNewSites();", "public ArrayList<String> getObjects(){\n ArrayList<String> objs = new ArrayList<>();\n for (int i = 0; i < field.length; i++){\n objs.add(\"Asteroid\");\n }\n return objs;\n }", "private static Vuelo[] arribos(Vuelo [] vuelosArray) {\n Ciudad concordia = new Ciudad(\"CON\",\"Concordia\");\n\n Vuelo[] listado = new Vuelo[0];\n for (Vuelo vuelo: vuelosArray) {\n if (vuelo.getCiudaDestino().equals(concordia)) {\n listado = agregarVuelo(listado, vuelo);\n }\n }\n return listado;\n }", "public static void checkForAgentsWithPeopleInCar() {\n\t\tfor(int i=0; i<numOfAgents; i++) {\n\t\t\tagents[i].peopleInCar += peopleToSave[agents[i].position];\n\t\t\tpeopleToSave[agents[i].position]=0;\n\t\t}\n\t}", "T[] getObjects() {\n\t\treturn this.array;\n\t}", "public RepositorioClientesArray() {\n\t\tclientes = new Cliente[TAMANHO_CACHE];\n\t\tindice = 0;\n\t}", "public int getRobotsDestroyed () {\r\n\t\treturn this.robotsDestroyed;\r\n\t}", "public Position[] getWinningPositions();", "public static void main(String[]args) {\n\t\t//2. create an array of 5 robots.\n\t\tRobot[] potato = new Robot[3];\n\t\t//3. use a for loop to initialize the robots.\n\t\tfor(int i = 0; i<potato.length; i++) {\n\t\t\tpotato[i]= new Robot();\n\t\t\t//4. make each robot start at the bottom of the screen, side by side, facing up\n\t\t\t//potato[i].setX(i*100+50);\n\t\t\t//potato[i].setY(500);\n\t\t\tpotato[i].setX(250);\n\t\t\tpotato[i].setSpeed(100);\n\t\t}\n\tpotato[0].setPenColor(Color.red);\n\tpotato[1].setPenColor(Color.blue);\n\tpotato[2].setPenColor(Color.green);\n\tpotato[0].penDown();\n\tpotato[1].penDown();\n\tpotato[2].penDown();\n\t\n\t\t//5. use another for loop to iterate through the array and make each robot move \n\t\t// a random amount less than 50.\n\t\tRandom ran = new Random();\n\t\t\n\t\tboolean done = false;\n\tint x =0;\n\tRobot rob = new Robot();\n\trob.penDown();\n\trob.setSpeed(100);\n\trob.setX(300);\n\tfor(int i = 0; i < 360; i++) {\n\t\trob.move(2);\n\t\trob.turn(1);\n\t}\n\trob.penUp();\n\trob.move(1000);\n\tRobot r2 = new Robot();\n\tr2.penDown();\n\tr2.setSpeed(100);\n\tr2.setX(200);\n\tfor(int i = 0; i < 360; i++) {\n\t\tr2.move(4);\n\t\tr2.turn(1);\n\t}\n\tr2.penUp();\n\tr2.move(1000);\n\t\n\twhile(!done) {\n\t\tfor(int i = 0; i<potato.length&&!done; i++) {\t\n\t\t\tint u = ran.nextInt(50)+1;\n\t\t\tfor(int y = 0;y<u ;y++) {\n\t\t\tpotato[i].move(3);\n\t\t\tpotato[i].turn(1);\n\t\t\t}\n\t\t\tx=i+1;\n\t\t\tif(potato[i].getX()<=252) {\n\t\t\t\tdone=true;\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\t//6. use a while loop to repeat step 5 until a robot has reached the top of the screen.\n\n\t//7. declare that robot the winner and throw it a party!\n\t\tSystem.out.println(\"The fastest robot is robot #\" + x);\n\t//8. try different races with different amounts of robots.\n\t\t\n\t//9. make the robots race around a circular track.\n\t\n}", "public ArrayList<Bot> getAllBots() {\n final String errorMessage = \"Error getting all bots\";\n ResultSet retrievedBots = dbConnector.selectQuery(\"SELECT c.name, bot_id, active_time, probability, activity_status\" +\n \" FROM Bots as b, Company as c WHERE b.company_id = c.company_id;\");\n ArrayList<Bot> bots = null;\n try {\n bots = new ArrayList<Bot>();\n while (retrievedBots.next()) {\n bots.add(toBot(retrievedBots));\n }\n } catch (SQLException e) {\n System.out.println(errorMessage);\n }\n return bots;\n }", "public void communicate() {\n // Send\n for (int i = 0; i < robots.length; i++) {\n if (i != this.id) {\n if (objectFound) {\n System.out.println(\"Robot \" + this.id + \": Telling everyone else...\");\n this.robots[i].mailbox[i] = new Message(this.id, this.objectFound, goal);\n } else {\n this.robots[i].mailbox[i] = new Message(this.id, this.objectFound, null);\n }\n }\n }\n // Read\n for (int i = 0; i < mailbox.length; i++) {\n if (i != this.id && mailbox[i] != null && mailbox[i].objectFound) {\n this.objectFound = true;\n this.goal = mailbox[i].objectLocation;\n }\n }\n }", "public void robotInit() \n {\n RobotMap.init();\n\n driveTrain = new DriveTrain();\n gripper = new Gripper();\n verticalLift = new VerticalLift();\n\n // OI must be constructed after subsystems. If the OI creates Commands \n //(which it very likely will), subsystems are not guaranteed to be \n // constructed yet. Thus, their requires() statements may grab null \n // pointers. Bad news. Don't move it.\n\n oi = new OI();\n\n autonomousChooser = new SendableChooser();\n autonomousChooser.addDefault( \"Auto: Do Nothing\" , new DoNothing () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone\" , new DriveToAutoZone () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone (Bump)\" , new DriveToAutoZoneBump () );\n //autonomousChooser.addObject ( \"Auto: Get One (Long)\" , new GetOneLong () );\n //autonomousChooser.addObject ( \"Auto: Get One (Short)\" , new GetOneShort () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Bump)\" , new GetOneRecycleBin () );\n autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Side)\" , new GetRecycleBinSide () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards)\" , new GetOneRecycleBinBackwards () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards, Bump)\", new GetOneRecycleBinBackwardsBump() );\n //autonomousChooser.addObject ( \"Auto: Get Two (Short)\" , new GetTwoShort () );\n //autonomousChooser.addObject ( \"Auto: Get Two Short (Special)\" , new GetTwoShortSpecial () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From left)\" , new TwoLongFromLeft () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From right)\" , new TwoLongFromRight () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin\" , new OneRecycleBinAndTote () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin (Bump)\" , new OneRecycleBinAndToteBump () );\n SmartDashboard.putData( \"Autonomous\", autonomousChooser );\n\n // instantiate the command used for the autonomous period\n //autonomousCommand = new RunAutonomousCommand();\n\n m_USBVCommand = new UpdateSBValuesCommand();\n m_USBVCommand.start();\n \n frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\n /*\n // the camera name (ex \"cam0\") can be found through the roborio web interface\n session = NIVision.IMAQdxOpenCamera(\"cam1\",\n NIVision.IMAQdxCameraControlMode.CameraControlModeController);\n NIVision.IMAQdxConfigureGrab(session);\n \n NIVision.IMAQdxStartAcquisition(session);\n */\n /*\n camServer = CameraServer.getInstance();//.startAutomaticCapture(\"cam1\");\n camServer.setQuality(30);\n \n cam = new USBCamera(\"cam1\");\n cam.openCamera();\n cam.setFPS(60);\n \n cam.setSize(320, 240);\n cam.updateSettings();\n */\n }", "public static Robot[] nearbyEnemies(int radiusSquared) {\n // Since we only have shitty fixed-sized arrays, we implement this only for common inputs:\n int i;\n switch (radiusSquared) {\n case LC_RADIUS:\n i = 0;\n break;\n case Soldier.GL_RADIUS:\n i = 1;\n break;\n // We don't cache that radius\n default: return RC.senseNearbyGameObjects(Robot.class, radiusSquared, ENEMY_TEAM);\n }\n \n if (nearby_enemies[i] == null || nearby_enemies_last_updated[i] < Clock.getRoundNum()) {\n nearby_enemies[i] = RC.senseNearbyGameObjects(Robot.class, radiusSquared, ENEMY_TEAM);\n nearby_enemies_last_updated[i] = Clock.getRoundNum();\n }\n \n return nearby_enemies[i];\n }", "private EnemyBot newRadarTarget() {\r\n\t\tArrayList<EnemyBot> temp = new ArrayList<>();\r\n\t\ttemp.addAll(enemyTracker.getEnemyList());\r\n\r\n\t\tif (!enemyTracker.getEnemyList().isEmpty() && !targetTracking.isEmpty()) {\r\n\t\t\tfor (int i = 0; i < enemyTracker.getEnemyList().size(); i++) {\r\n\t\t\t\tfor (int x = 0; x < targetTracking.size(); x++) {\r\n\t\t\t\t\tif (enemyTracker.getEnemyList().get(i).getName()\r\n\t\t\t\t\t\t\t.equals(targetTracking.get(x).getRadarTarget().getName())) {\r\n\t\t\t\t\t\ttemp.remove(enemyTracker.getEnemyList().get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!temp.isEmpty()) {\r\n\t\t\t\treturn temp.get(0);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn enemyTracker.getTarget();\r\n\t}", "private NeighborhoodHelper[] getHelpers()\n/* */ {\n/* 230 */ return this.helpers;\n/* */ }", "public static BufferedImage getRobot(Robot r) {\n\t\t//a kulonbozo jatekosok robotjai kulonbozo szinuek\n\t\t//robot=ImageIO.read(new File(\"robot\"+(r.getID()-1)+\".png\"));\n\t\t//return robot;\n\t\t//return robot[r.getID()-1];\n\t\treturn robot[r.getID()];\n\t}", "boolean findRobot();", "org.landxml.schema.landXML11.LanesDocument.Lanes[] getLanesArray();", "public void setRobot(Robot robot) {\n this.robot = robot;\n }", "public DcMotor[] getMotors(){\n return this.motors;\n }", "public void makeRoads()\r\n\t{\r\n\t\tfor(int i=0; i<roads.length; i++)\r\n\t\t\troads[i] = new Road(i*SCREEN_HEIGHT/20,SCREEN_WIDTH,SCREEN_HEIGHT/20-10);\r\n\t}", "public org.biocatalogue.x2009.xml.rest.Agent getAgentArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.Agent target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.Agent)get_store().find_element_user(AGENT$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "private static Guest[] makeGuests() {\n\t\treturn null;\n\t}", "Toy[] getToys() {\r\n\r\n\t\treturn this.toys;\r\n\t}", "public SmallGameBoard[] getAllGames(){return games;}", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "static void evadeRobotGroup(RobotInfo[] robotInfo) {\n try {\n tryMove(rc.getLocation().directionTo(robotInfo[0].getLocation()).opposite(), 5, 36);\n } catch (Exception e) {\n System.out.println(\"Evade robot exception.\");\n e.printStackTrace();\n }\n }", "public void robotInit() {\n\n }", "public void robotInit() {\n\n }", "public abstract NSMutableArray<I_WorkFlowItem> tachesObligatoires();", "public void sendCloneAgent(){\n LinkedList<Node> tempLiveNeighbors = new LinkedList<>(liveNeighbors);\n for (Node n : tempLiveNeighbors) {\n if ((n.getStatus().equals(Status.BLUE) || n.getStatus().equals(Status.YELLOW))\n && n.agent == null) {\n Agent clone = new Agent(n,false);\n boolean b = n.recieveClone(clone);\n if(!b){\n clone.kill();\n }\n }\n }\n }", "public void setRobot(Robot robot) {\n\t\tthis.robot = robot;\n\t}", "public interface IRobotConvView {\n void setRobotConvList(List<RobotConversation> robotConvList);\n}", "public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}", "protected RobotCoordinates getRobotCoordinates() { return currentPos; }", "private void randMove(Person[] array){\r\n\t\t\tlogger.info(\"randMoving starts\");\r\n\t\t\tArrayList<Integer> remaining = new ArrayList<>();\r\n\t\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\t\tremaining.add(i);\r\n\t\t\t}\r\n\t\t\tint step = 0;\r\n\t\t\tboolean isAgentArray = false;\r\n\t\t\tif(array[0] instanceof Agent) isAgentArray = true;\r\n\r\n\t\t\t//select from remaining index when remaining is not empty\r\n\t\t\twhile (step<array.length) {\r\n\t\t\t\tint index = randInt(0,remaining.size()-1);\r\n\t\t\t\tif(remaining.get(index)>=0){\r\n\t\t\t\t\t//move agents and cops here\r\n\t\t\t\t\tif(isAgentArray){\r\n\t\t\t\t\t\tif(agents[index].getJailTerm() == 0)\r\n\t\t\t\t\t\t\tagents[index].move();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse cops[index].move();\r\n\t\t\t\t\tremaining.set(index,-1);\r\n\t\t\t\t\tstep++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.info(\"randmove finished after \" + step + \"iterations.\");\r\n\t\t}", "private Point[] moveCars(ParkingLot p)\r\n {\r\n ArrayList<Point> emptySpots = new ArrayList<>();\r\n ArrayList<Point> oneSpotTaken = new ArrayList<>();\r\n for(int i = 0; i < p.getTotalRow(); i++){\r\n for(int j = 0; j < p.getTotalColumn(); j++){\r\n if(!p.getOccupany(i,j)){\r\n emptySpots.add(new Point(i,j));\r\n }else{\r\n if(p.getSpotInfo(i,j).getVehicle().getSpotsTaken() == 1){\r\n oneSpotTaken.add(new Point(i,j));\r\n }\r\n }\r\n }\r\n }\r\n\r\n if(oneSpotTaken.size() <= 1){\r\n System.out.println(\"There are not enough spots in this lot to park this car.\");\r\n return null;\r\n }\r\n\r\n Random rand = new Random();\r\n Point randomPoint = emptySpots.get(rand.nextInt(emptySpots.size()));\r\n\r\n if(((int)randomPoint.getY()-1) >= 0 && oneSpotTaken.contains(new Point((int)randomPoint.getX(),(int)randomPoint.getY()-1))){\r\n emptySpots.remove(randomPoint);\r\n Point newEmpty = emptySpots.get(rand.nextInt(emptySpots.size()));\r\n p.setSpot((int)newEmpty.getX(),(int)newEmpty.getY(),p.getSpotInfo((int)randomPoint.getX(),(int)randomPoint.getY()-1));\r\n p.setSpot((int)randomPoint.getX(),(int)randomPoint.getY()-1,null);\r\n return new Point[]{new Point((int)randomPoint.getX(),((int)randomPoint.getY()-1)),randomPoint};\r\n }else if((int)randomPoint.getY()+1 <= p.getTotalColumn()-1 && oneSpotTaken.contains(new Point((int)randomPoint.getX(),(int)randomPoint.getY()+1))){\r\n emptySpots.remove(randomPoint);\r\n Point newEmpty = emptySpots.get(rand.nextInt(emptySpots.size()));\r\n p.setSpot((int)newEmpty.getX(),(int)newEmpty.getY(),p.getSpotInfo((int)randomPoint.getX(),(int)randomPoint.getY()+1));\r\n p.setSpot((int)randomPoint.getX(),(int)randomPoint.getY()+1,null);\r\n return new Point[]{randomPoint,new Point((int)randomPoint.getX(),((int)randomPoint.getY()+1))};\r\n }else{\r\n return moveCars(p);\r\n }\r\n }", "public ReloadResponse(Robot robot){\n super(robot);\n this.robot = robot;\n }", "@Override\n\tpublic void onScannedRobot(ScannedRobotEvent e)\n\t{\n\t\tif(this.running)\n\t\t{\n\n\t\t\tdouble angleToEnemy = e.getBearing();\n\t\t\tdouble angleToEnemyRadians = e.getBearingRadians();\n\t\n\t // Calculate the angle to the scanned robot\n\t \tdouble angle = Math.toRadians((this.robotStatus.getHeading() + angleToEnemy) % 360);\n\t\n\t // Calculate the coordinates of the robot\n\t \tdouble enemyX = (this.robotStatus.getX() + Math.sin(angle) * e.getDistance());\n\t \tdouble enemyY = (this.robotStatus.getY() + Math.cos(angle) * e.getDistance());\n\t \tdouble enemyDistance = e.getDistance();\n\t \t\n\t \t//Saving enemy position variables in a list of object class.\n\t \t//Only enemy positions from different quadrants, that were never reached will be saved.\n\t \tif((getQuadrant(getX(), getY()) != getQuadrant(enemyX, enemyY)) && (!quadrants.contains((double)getQuadrant(enemyX, enemyY))))\n\t\t\t\tthis.positions.add(new Position<Double>(enemyX, enemyY, enemyDistance, angleToEnemyRadians));\n\t\t}\n\t}", "void setLanesArray(org.landxml.schema.landXML11.LanesDocument.Lanes[] lanesArray);", "public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}", "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }", "ArrayList<Sprite> getSpriteArray();", "ArrayList<Actor> getActors();", "public Atendiendo(Robot robot){\n this.robot = robot;\n }", "public ChatRoom[] getChatRooms();", "void setLanesArray(int i, org.landxml.schema.landXML11.LanesDocument.Lanes lanes);", "org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i);", "public BasicRobot getRobot() {\n\t\treturn robot;\n\t}", "GameBoardVertex(ArrayList<GameBoardVertex> neighbors){this.neighbors = neighbors;}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation getObjectives();", "public ArrayList<Ball> getBalls(){\n return balls;\n }" ]
[ "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.5124754", "0.5124315", "0.511028", "0.51005673", "0.5078224", "0.5059871", "0.5042936", "0.49928793", "0.49821407", "0.49764714", "0.49756506", "0.496545", "0.4955663", "0.49361575", "0.49352622", "0.49275038", "0.4921114", "0.4916745", "0.49161053", "0.48998684", "0.48952758", "0.48789263", "0.48654965", "0.48642576", "0.48642576", "0.48642576", "0.48616198", "0.48572332", "0.4849501", "0.48287266", "0.48135558", "0.48014262", "0.4796824", "0.4796396", "0.4790109", "0.4784496", "0.4782482", "0.47804528", "0.47752413", "0.47711852", "0.47668293", "0.47605926", "0.47589365", "0.475834", "0.47562546", "0.47445342", "0.4744112", "0.4739274", "0.47302103", "0.47258884", "0.4721083", "0.4720599", "0.47175384", "0.47114158", "0.47109327", "0.47073197", "0.47073197", "0.4699748", "0.46982062", "0.4689287", "0.4682858", "0.46776462", "0.4676344", "0.46700045", "0.46682882", "0.4667482", "0.4665601", "0.46627074", "0.46586224", "0.46485284", "0.4648305", "0.46473143", "0.46422568", "0.46356204", "0.46319228", "0.46314588", "0.46153533", "0.46139634", "0.4607371", "0.46050128", "0.45976198" ]
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\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inherit(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_nTotalChildren++;\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t\t_infectedGeneticCode = null;\n\t\t\t}\n\t\t\t_timeToReproduce = 20;\n\t\t}\n\t}", "public static void main(String[] args) {\n int progressId = 1;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Set<Entity> map000entity = new HashSet<>();\n map000entity.add(new Entity(new LocationPair<>(9.5F, 12.5F), Entity.TOWARD_RIGHT, \"Cirno\") {\n int useRefresh = 10;\n int activeTime = 80;\n boolean acting = true;\n\n @Override\n public void onRegisiter() {\n this.setMovingWay(MOVING_FASTER);\n }\n\n @Override\n public void onUnRegisiter() {\n System.out.println(\"Entity was unregisitered.\");\n }\n\n @Override\n public void action() {\n if (acting) {\n if (activeTime >= 0) {\n this.setToward(Entity.TOWARD_RIGHT);\n this.setWonderMoving(Entity.GOTOWARD_RIGHT);\n } else {\n this.setToward(Entity.TOWARD_LEFT);\n this.setWonderMoving(Entity.GOTOWARD_LEFT);\n }\n }\n if (isLastMovingSucceed()) {\n if (++activeTime >= 160) {\n activeTime = -160;\n }\n }\n if (useRefresh > 0) {\n useRefresh--;\n }\n }\n\n @Override\n public void onUse() {\n if (useRefresh == 0) {\n Keyboard.setState(Keyboard.STATE_DIALOG);\n acting = false;\n int moving = this.getMoving();\n int wonderMoving = this.getWonderMoving();\n int toward = this.getToward();\n this.setMoving(Entity.NOTGO);\n this.setWonderMoving(Entity.NOTGO);\n this.facePlayer();\n System.out.println(\"Changed the state of Keyboard.\");\n Case progress = new Case(\"test.entity.prs\", 2, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n EventManager.getInstance().performedNp(this, 0);\n Resource.regisiterMisc(new Misc() {\n @Override\n public void invoke() {\n if (Resource.getMapId() == 1) {\n this.completed();\n Keyboard.setState(Keyboard.STATE_DIALOG);\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.misc\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Invoked misc.\");\n }\n }\n });\n System.out.println(\"Progress ID is now 0.\");\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n Case hello = new Case(\"test.entity.faq\", 3, () -> {\n ArrayList<String> str = new ArrayList<>();\n str.add(Localization.query(\"test.entity.hello1\"));\n str.add(Localization.query(\"test.entity.hello2\"));\n SimpleTalkingDialog std = new SimpleTalkingDialog(str, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n useRefresh = 40;\n });\n std.init();\n GameFrame.getInstance().regisiterDialog(std);\n System.out.println(\"Changed the state of Keyboard.\");\n });\n Case back = new Case(\"test.entity.buff\", 4, () -> {\n Keyboard.setState(Keyboard.STATE_MOVING);\n acting = true;\n this.setMoving(moving);\n this.setWonderMoving(wonderMoving);\n this.setToward(toward);\n Resource.getPlayer().addBuff(new SpeedBuff(600, 1.5F));\n System.out.println(\"Changed the state of Keyboard.\");\n useRefresh = 40;\n });\n progress.setRelation(hello, null, hello);\n hello.setRelation(back, progress, back);\n back.setRelation(null, hello, null);\n progress.init();\n hello.init();\n back.init();\n List<Case> cases = new ArrayList<>();\n cases.add(progress);\n cases.add(hello);\n cases.add(back);\n ArrayList<String> strs = new ArrayList<>();\n strs.add(Localization.query(\"test.entity.title\"));\n\t\t\t\t\tTalkingDialog dialog = new TalkingDialog(strs, cases);\n\t\t\t\t\tdialog.init();\n GameFrame.getInstance().regisiterDialog(dialog);\n }\n useRefresh = 10;\n }\n });\n Set<Entity> map002entity = new HashSet<>();\n List<String> greet = new ArrayList<>();\n greet.add(\"test.entity.npc\");\n map002entity.add(new FriendlyNPC(new LocationPair<>(9.5F, 7.5F), Entity.TOWARD_DOWN, \"Sanae\", 3, greet));\n progressEntities.put(0, map000entity);\n progressEntities.put(2, map002entity);\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n //*/\n\n\n /*\n int progressId = 0;\n Map<Integer, Set<Entity>> progressEntities = new HashMap<>();\n Map<Integer, Set<Item>> progressItems = new HashMap<>();\n boolean withDefaultProgress = true;\n */\n\n\n try {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File(\"resources/object/progress\", \"progress\" + String.format(\"%03d\", progressId) + \".prs\")));\n oos.writeObject(new Progress(progressId, progressEntities, progressItems, withDefaultProgress));\n oos.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }", "public void finishSimulation() {\n finishSimulation(0.0);\n }", "protected static void creatingSimulationStats(int situation) {\n // Clearing previous simulation results.\n TrainStation.clearSimulationTrainQueues();\n\n // Getting the Waiting Room from the DataBase.\n Passenger[][] waitingRoomDB = Methods.readingDB();\n\n // Declaring a waiting Room to run the simulation on.\n Passenger[][] waitingRoom = new Passenger[2][42];\n\n // Running the simulation twice.\n for (int simulation = 1; simulation < 3; simulation++) {\n\n // Declaring and initializing a SimulationPassengerQueue[] to store simulation results.\n SimulationPassengerQueue[] trainQueues = new SimulationPassengerQueue[simulation];\n for (int i = 0; i < simulation; i++) {\n trainQueues[i] = new SimulationPassengerQueue();\n }\n\n // Initializing Waiting room for the simulation.\n for(int train = 0; train < waitingRoom.length; train++) {\n System.arraycopy(waitingRoomDB[train], 0, waitingRoom[train], 0, waitingRoomDB[train].length);\n }\n\n // Getting the Waiting room trainQueue.\n PassengerQueue trainQueue = TrainStation.getTrainQueue();\n\n for (int train = 0; train < 2; train++) {\n // Making the waiting room equal to the TrainStation.waitingRoom if its selected.\n if (situation == 0) {\n for (int passenger = 0; passenger < trainQueue.getQueueLength(train); passenger++) {\n String seatNumberTQ = trainQueue.getQueueArray(train)[passenger].getSeatNumber();\n if (waitingRoom[train][seatNumberConverter(seatNumberTQ)] != null) {\n if (waitingRoom[train][seatNumberConverter(seatNumberTQ)].getSeatNumber().equalsIgnoreCase(seatNumberTQ)) {\n waitingRoom[train][seatNumberConverter(seatNumberTQ)] = null;\n }\n }\n }\n }\n\n // Initializing the group number.\n int groupNumber = 0;\n // Running the simulation till the waiting room finishes.\n while (Methods.waitingRoomSize(train, waitingRoom) > 0) {\n // Increasing the group number.\n groupNumber++;\n\n // Declaring random.\n Random random = new Random();\n\n // Getting number rof passengers for the current group.\n int maxSelect = Methods.creatingMaxWQSelect(train, waitingRoom);\n\n // Creating a array for the Group and Populating it.\n SimulationPassenger[] passengersGroup = new SimulationPassenger[maxSelect];\n for (int select = 0; select < maxSelect; select++) {\n // Getting the current Waiting room without any null elements.\n Passenger[] sortedWaitingRoom = Methods.sortingWaitingRoom(train, waitingRoom);\n\n // Selecting a Passenger Randomly to the Group.\n int selection;\n do {\n selection = random.nextInt(sortedWaitingRoom.length);\n } while (sortedWaitingRoom[selection] == null);\n\n // Adding the selected passenger to the group.\n passengersGroup[select] = new SimulationPassenger(sortedWaitingRoom[selection], maxSelect, groupNumber);\n // Deleteing the added passenger from the waiting room.\n waitingRoom[train][Methods.seatNumberConverter(passengersGroup[select].getSeatNumber())] = null;\n }\n\n // Sorting the Group to according to the seat number (because passengers board according to the seat number).\n SimulationPassenger temp;\n for (int i = 0; i < passengersGroup.length; i++) {\n for (int j = i + 1; j < passengersGroup.length; j++) {\n if (passengersGroup[j].getSeatNumber().compareTo(passengersGroup[i].getSeatNumber()) < 0) {\n temp = passengersGroup[i];\n passengersGroup[i] = passengersGroup[j];\n passengersGroup[j] = temp;\n }\n }\n }\n\n // Selecting the Queue 2 if the Queue 1 is longer than Queue 2\n boolean isTQ2Selected = false;\n if (simulation == 2) {\n isTQ2Selected = trainQueues[0].getQueueLength(train) > trainQueues[1].getQueueLength(train);\n }\n\n // Initializing waiting time for a group.\n int secondsWaited = 0;\n // Adding every passenger in group to trainQueue.\n for (int passenger = 0; passenger < maxSelect; passenger++) {\n // Adding each passengers waiting time to the Queue waiting time.\n secondsWaited += passengersGroup[passenger].getSecondsInQueue();\n // Setting the waiting time in queue to each passenger.\n passengersGroup[passenger].setWaitingTime(secondsWaited);\n\n // Adding passengers to the Queue.\n if (isTQ2Selected) {\n trainQueues[1].add(passengersGroup[passenger], train);\n } else {\n trainQueues[0].add(passengersGroup[passenger], train);\n }\n\n }\n }\n }\n // Storing the simulation report.\n TrainStation.addToSimulationTrainQueues(trainQueues);\n }\n }", "public void startSimulation() {\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\t// if simulation is not in pause state\r\n \t\tif (!stopSimulation.isEnabled()) {\r\n \t\t\t// Asks for confirmation before overwriting previous simulation data\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\t// Find frame to show confirm dialog\r\n \t\t\t\tComponent parent = mainWindow;\r\n \t\t\t\tif (resultsWindow != null && resultsWindow.isFocused()) {\r\n \t\t\t\t\tparent = resultsWindow;\r\n \t\t\t\t}\r\n \r\n\t\t\t\tint resultValue = JOptionPane.showConfirmDialog(parent, \"This operation will overwrite old simulation results. Continue anyway?\",\r\n \t\t\t\t\t\t\"JMT - Warning\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \t\t\t\tif (resultValue == JOptionPane.NO_OPTION) {\r\n \t\t\t\t\treturn;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t// Asks for confirmation if a logger-file exists (and has existing data) [MF08 0.7.4 (Marco Bertoli)]\r\n \t\t\tString[] ln = model.getLoggerNameList();\r\n \t\t\tString ln2 = \"\";\r\n \t\t\tif (ln != null) {\r\n \t\t\t\tif (model.getLoggingGlbParameter(\"autoAppend\")\r\n \t\t\t\t\t\t.equalsIgnoreCase(new Integer(jmt.engine.log.LoggerParameters.LOGGER_AR_ASK).toString())) {\r\n \t\t\t\t\tif (ln.length > 0) {\r\n \t\t\t\t\t\t// Cache the absolute log-path\r\n \t\t\t\t\t\tString logabspath;\r\n \t\t\t\t\t\tif (model.getLoggingGlbParameter(\"path\").equalsIgnoreCase(\"\") || (model.getLoggingGlbParameter(\"path\").equalsIgnoreCase(\".\"))) {\r\n \t\t\t\t\t\t\tlogabspath = new File(\"\").getAbsolutePath() + File.separator;\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tlogabspath = new File(model.getLoggingGlbParameter(\"path\")).getAbsolutePath() + File.separator;\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t// Find if the logfiles have data in them:\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\t//Code to remove duplicate file names from the list to obtain a unique list of File names.\r\n \t\t\t\t\t\t\tArrays.sort(ln);\r\n \t\t\t\t\t\t\tint k = 0;\r\n \t\t\t\t\t\t\tfor (int i = 0; i < ln.length; i++){\r\n \t\t\t\t\t\t\t\tif (i > 0 && ln[i].equals(ln[i -1])){\r\n \t\t\t\t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tln[k++] = ln[i];\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tString[] unique = new String[k];\r\n \t\t\t\t\t\t\tSystem.arraycopy(ln, 0, unique, 0, k);\r\n \r\n \t\t\t\t\t\t\tfor (String element : unique) {\r\n \t\t\t\t\t\t\t\t// if the files have data, print what will be overwritten\r\n \t\t\t\t\t\t\t\tif (new File(logabspath + element).length() > 0) {\r\n \t\t\t\t\t\t\t\t\t\tln2 = ln2 + element + \", \";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t// remove the trailing comma\r\n \t\t\t\t\t\t\tif (ln2 != \"\") {\r\n \t\t\t\t\t\t\t\tln2 = ln2.substring(0, ln2.length() - 2);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} catch (Exception e) {\r\n \t\t\t\t\t\t\te.printStackTrace();\r\n \t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\tif (ln2 != \"\") {\r\n \t\t\t\t\t\t\t// Find frame to show dialog\r\n \t\t\t\t\t\t\tComponent parent = mainWindow;\r\n \t\t\t\t\t\t\tif (resultsWindow != null && resultsWindow.isFocused()) {\r\n \t\t\t\t\t\t\t\tparent = resultsWindow;\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\tint resultValue = JOptionPane.showConfirmDialog(parent, \"This operation will modify the following logfile(s): \" + ln2\r\n \t\t\t\t\t\t\t\t\t+ \". \" + \"Continue anyway?\", \"JMT - Warning\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n \t\t\t\t\t\t\tif (resultValue == JOptionPane.NO_OPTION) {\r\n \t\t\t\t\t\t\t\treturn;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\t//System.out.println(\"Empty file\");\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t} // end confirmation if file exists\r\n \t\t\t// Correct eventual problems on preloading for closed classes\r\n \t\t\tmodel.manageJobs();\r\n \t\t\tmc = new ModelChecker(model, model, model, model, false);\r\n \t\t\tpw = new JModelProblemsWindow(mainWindow, mc, this);\r\n \t\t\tif (!mc.isEverythingOkNormal()) {\r\n \t\t\t\tpw.show();\r\n \t\t\t}\r\n \t\t\tif (mc.isEverythingOkNormal() || ((!mc.isEverythingOkNormal()) && (pw.continued()))) {\r\n \t\t\t\tif (!model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\ttry {\r\n \t\t\t\t\t\t// Removes previous ResultsWindow\r\n \t\t\t\t\t\tif (resultsWindow != null) {\r\n \t\t\t\t\t\t\tresultsWindow.dispose();\r\n \t\t\t\t\t\t\tshowResults.setEnabled(false);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tFile temp = File.createTempFile(\"~JModelSimulation\", \".xml\");\r\n \t\t\t\t\t\ttemp.deleteOnExit();\r\n \t\t\t\t\t\tXMLWriter.writeXML(temp, model);\r\n \t\t\t\t\t\t// Creates results data structure\r\n \t\t\t\t\t\tmodel.setSimulationResults(new ResultsModel(model.getPollingInterval()));\r\n \t\t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t\t\tdispatcher = new DispatcherThread(this, model, (ResultsModel) model.getSimulationResults());\r\n \t\t\t\t\t\tdispatcher.startSimulation(temp);\r\n \t\t\t\t\t} catch (Exception e) {\r\n \t\t\t\t\t\thandleException(e);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Removes previous ResultsWindow\r\n \t\t\t\t\tshowResults.setEnabled(false);\r\n \t\t\t\t\tif (resultsWindow != null) {\r\n \t\t\t\t\t\tresultsWindow.dispose();\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (progressWindow == null) {\r\n \t\t\t\t\t\tprogressWindow = new PAProgressWindow(mainWindow, simulate, pauseSimulation, stopSimulation, model\r\n \t\t\t\t\t\t\t\t.getParametricAnalysisModel());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tbatchThread = new PADispatcherThread(this, model, progressWindow);\r\n \t\t\t\t\tchangeSimActionsState(false, true, true);\r\n \t\t\t\t\tprogressWindow.initialize(model.getParametricAnalysisModel().getNumberOfSteps());\r\n \t\t\t\t\tprogressWindow.start();\r\n \t\t\t\t\tprogressWindow.show();\r\n \t\t\t\t\tbatchThread.start();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tif (!model.isParametricAnalysisEnabled()) {\r\n \t\t\t\tdispatcher.restartSimulation();\r\n \t\t\t} else {\r\n \t\t\t\tbatchThread.restartSimulation();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void quickSimulation() {\n\t\tnew SimulationControleur();\n\t}", "@Override\n public void simulationPeriodic() {\n }", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "@Override\n public void simulationPeriodic() {\n }", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "SimulationRun() {\n firms = new ArrayList<>();\n }", "public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}", "public Behaviour runObjective() {\n //System.out.println(\"Simulation runObjective(): running method\");\n final int iterations = config.getSimulationIterations();\n return objectiveSimulation(iterations);\n }", "public synchronized void runPreTurtles() {\n\t\tcomputePerceptions();\n\t\tfirePreAgentScheduling();\n\t}", "private void obtainProblem(){\n followers = frame.getFollowers();\n followers = Math.min(followers, CreatureFactory.getStrongestMonster().getFollowers() * Formation.MAX_MEMBERS);\n maxCreatures = frame.getMaxCreatures();\n heroes = frame.getHeroes();//is this field needed?\n prioritizedHeroes = frame.getHeroes(Priority.ALWAYS);\n //create boss formation\n LinkedList<Creature> list = new LinkedList<>();\n list.add(frame.getBoss());\n bossFormation = new Formation(list);\n containsRandomBoss = bossFormation.containsRandomHeroes();\n yourRunes = frame.getYourRunes();\n for (int i = 0; i < Formation.MAX_MEMBERS; i++){\n //System.out.println(yourRunes[i]);\n if (!(yourRunes[i] instanceof Nothing)){\n hasRunes = true;\n //System.out.println(\"hasRunes\");\n break;\n }\n }\n \n NHWBEasy = heroes.length == 0 && prioritizedHeroes.length == 0 && frame.getBoss().getMainSkill().WBNHEasy() && !hasRunes && !containsRandomBoss;\n \n }", "private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }", "private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }", "private void runEndogenousEngine() {\n\t\tfloat currentTime = this.timeManager.getCurrentTime(TimeUnit.SECONDS);\n\t\tfloat simulationStepDuration;\n\t\tif (Float.isNaN(this.lastSimulationTime)) {\n\t\t\tsimulationStepDuration = 0f;\n\t\t} else {\n\t\t\tsimulationStepDuration = currentTime - this.lastSimulationTime;\n\t\t}\n\n\t\tMultiCollection<Influence> endoInfluences = new MultiCollection<>();\n\n\t\tthis.lastSimulationTime = currentTime;\n\t\tCollection<Influence> col = this.grid.runAutonomousProcesses(currentTime, simulationStepDuration);\n\t\tif (col != null && !col.isEmpty()) {\n\t\t\tendoInfluences.addCollection(col);\n\t\t}\n\n\t\t// Run endogenous engine\n\t\tEnvironmentEndogenousEngine engine = this.endogenousEngine;\n\t\tif (engine != null) {\n\t\t\tcol = engine.computeInfluences(this.grid, this.timeManager);\n\t\t\tif (col != null && !col.isEmpty()) {\n\t\t\t\tendoInfluences.addCollection(col);\n\t\t\t}\n\t\t}\n\n\t\tif (!endoInfluences.isEmpty()) {\n\t\t\tthis.endogenousInfluences = endoInfluences;\n\t\t}\n\t}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "protected void setup() {\n\t\tSystem.out.println(\" Searching \" + getAID().getName() + \"starts\");\n\t\taddBehaviour(new WakerBehaviour(this, 1000) {\n\t\t\tprotected void handleElapsedTimeout() {\n\t\t\t\t// perform operation X\n\t\t\t\tDFAgentDescription template = new DFAgentDescription();\n\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\tsd.setType(\"Cloth adviser\");\n\t\t\t\ttemplate.addServices(sd);\n\t\t\t\ttry {\n\t\t\t\t\tDFAgentDescription[] resultOfAdviser = DFService.search(myAgent, template);\n\t\t\t\t\tadviser= resultOfAdviser[0].getName();\n\t\t\t\t} catch (FIPAException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tACLMessage recMessage = blockingReceive();\n\t\t\t\tif (recMessage != null) {\n\t\t\t\t\tString senderName = recMessage.getSender().getName();\n\t\t\t\t\tSystem.out.println(getName()+\" receive message from \" + senderName);\n\t\t\t\t\tString rec = recMessage.getContent();\n\t\t\t\t\tSystem.out.println(\"receive message is \" + rec);\n\t\t\t\t\tACLMessage sendMessage = new ACLMessage(ACLMessage.INFORM);\n\t\t\t\t\tsendMessage.setContent(rec);\n\t\t\t\t\tsendMessage.addReceiver(adviser);\n\t\t\t\t\tsend(sendMessage);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"null exception\");\n\t\t\t\t\tblock();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "protected static void runningSimulation() {\n Scanner sc = new Scanner(System.in);\n\n try {\n // Getting the simulation type.\n System.out.print(\"Select the Simulation Method : \\n\" +\n \"\\t0 : To Run the Simulation to the Current Waiting Room\\n\" +\n \"\\t1 : To Run the Simulation for the Whole Waiting Room\\n\" +\n \"\\n\\t\\t : \");\n int situation = sc.nextInt();\n sc.nextLine();\n\n // Checking if the Simulation Type is valid.\n if (situation == 0 || situation == 1) {\n creatingSimulationStats(situation);\n simulationReport(TrainStation.getSimulationTrainQueues());\n launchingSimulationGUI(\"SimTQ\", TrainStation.getSimulationTrainQueues(), 0, 0, 0);\n\n }\n // When the simulation type is invalid.\n else {\n System.out.println(\"Invalid Selection.\");\n mainMenu();\n }\n }\n // When an Invalid character is added.\n catch (InputMismatchException e) {\n System.out.println(\"Invalid Input.\");\n mainMenu();\n }\n // When an error is OCCured when writing the simulation report.\n catch ( IOException e) {\n System.out.println(\"ERROR - Making the Simulation Report.\");\n mainMenu();\n }\n }", "protected void addFinishedData() throws ModelException {\n int i;\n \n //Harvest data\n ArrayList<Behavior> p_oBehs = m_oDisturbanceBehaviors.getBehaviorByParameterFileTag(\"Harvest\");\n if (mp_oHarvestData.size() == 0) {\n if (p_oBehs.size() > 0) {\n m_oDisturbanceBehaviors.removeBehavior(p_oBehs.get(0));\n }\n } else {\n Harvest oHarvest;\n if (p_oBehs.size() > 0) {\n oHarvest = (Harvest) p_oBehs.get(0);\n oHarvest.clearHarvestEvents();\n } else {\n oHarvest = (Harvest) m_oDisturbanceBehaviors.createBehaviorFromParameterFileTag(\"Harvest\");\n }\n for (i = 0; i < mp_oHarvestData.size(); i++) {\n oHarvest.addHarvestEvent(mp_oHarvestData.get(i));\n }\n }\n \n //Mortality episode data\n p_oBehs = m_oDisturbanceBehaviors.getBehaviorByParameterFileTag(\"EpisodicMortality\");\n if (mp_oMortEpisodeData.size() == 0) {\n if (p_oBehs.size() > 0) {\n m_oDisturbanceBehaviors.removeBehavior(p_oBehs.get(0));\n }\n } else {\n EpisodicMortality oEp;\n if (p_oBehs.size() > 0) {\n oEp = (EpisodicMortality) p_oBehs.get(0);\n oEp.clearMortalityEpisodes();\n } else {\n oEp = (EpisodicMortality) m_oDisturbanceBehaviors.createBehaviorFromParameterFileTag(\"EpisodicMortality\");\n }\n for (i = 0; i < mp_oMortEpisodeData.size(); i++) {\n oEp.addMortalityEpisode(mp_oMortEpisodeData.get(i));\n }\n }\n\n //Planting data\n p_oBehs = m_oPlantBehaviors.getBehaviorByParameterFileTag(\"Plant\");\n if (mp_oPlantingData.size() == 0) {\n if (p_oBehs.size() > 0) {\n m_oDisturbanceBehaviors.removeBehavior(p_oBehs.get(0));\n }\n } else {\n Planting oPlant;\n if (p_oBehs.size() > 0) {\n oPlant = (Planting) p_oBehs.get(0);\n oPlant.clearPlantingEvents();\n } else {\n oPlant = (Planting) m_oPlantBehaviors.createBehaviorFromParameterFileTag(\"Plant\");\n }\n for (i = 0; i < mp_oPlantingData.size(); i++) {\n oPlant.addPlantingEvent(mp_oPlantingData.get(i));\n }\n }\n }", "void think() {\n //get the output of the neural network\n decision = brain.output(vision);\n\n if (decision[0] > 0.8) {//output 0 is boosting\n boosting = true;\n } else {\n boosting = false;\n }\n if (decision[1] > 0.8) {//output 1 is turn left\n spin = -0.08f;\n } else {//cant turn right and left at the same time\n if (decision[2] > 0.8) {//output 2 is turn right\n spin = 0.08f;\n } else {//if neither then dont turn\n spin = 0;\n }\n }\n //shooting\n if (decision[3] > 0.8) {//output 3 is shooting\n shoot();\n }\n }", "public static void main(String[] args)\n\t{\tint generation = 0;\n\t\tint sum = 0;\n\t\tExecutor exec=new Executor();\n\t\t\n\t\tGeneticController pacman = new GeneticController();\n\t\tController<EnumMap<GHOST,MOVE>> ghosts = new Legacy();\n\n\n\t\tLispStatements ls = new LispStatements();\n\t\tArrayList<String> functionSet = new ArrayList<>();\n\t\tfunctionSet.add(\"2ifblue\");\n\t\tfunctionSet.add(\"4ifle\");\n\t\tfunctionSet.add(\"2ifindanger\");\n\t\tfunctionSet.add(\"2ifpowerpillscleared\");\n\t\tfunctionSet.add(\"2istopowersafe\");\n\t\tArrayList<String> terminalSet = new ArrayList<>();\n\t\tterminalSet.add(\"distToPill\");\n\t\tterminalSet.add(\"distToPower\");\n\t\tterminalSet.add(\"distGhost\");\n\t\tterminalSet.add(\"distTo2ndGhost\");\n\t\tterminalSet.add(\"distTo3rdGhost\");\n\t\tterminalSet.add(\"distToEdibleGhost\");\n\t\tterminalSet.add(\"distToNonEdibleGhost\");\n\t\tterminalSet.add(\"moveToFood\");\n\t\tterminalSet.add(\"moveToPower\");\n\t\tterminalSet.add(\"moveToEdibleGhost\");\n\t\tterminalSet.add(\"moveFromNonEdibleGhost\");\n\t\tterminalSet.add(\"moveFromPower\");\n\t\tterminalSet.add(\"runaway\");\n\t\ttry {\n\t\t\tls.setFunctionalSet(functionSet);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\t\tls.setTerminalSet(terminalSet);\n\t\ttry {\n\t\t\tGenetic.Executor.setUp(pacman, ls, 8);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\n\t\tdouble average = 0;\n\n\t\twhile (generation < 51) {\n\t\t\twhile (Generation.isGenFinished()) {\n\n\t\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\t\tint delay = 0;\n\t\t\t\t\t\tboolean visual = false;\n\t\t\t\t\t\tsum += exec.runGame(pacman, ghosts, visual, delay);\n\t\t\t\t\t}\n\n\t\t\t\t\tGeneration.setFitness(50000 - (sum/10));\n\t\t\t\t\tSystem.out.println(sum/10);\n\n\n\t\t\t\t\tsum = 0;\n\n\t\t\t\tGeneration.pointerUpdate();\n\t\t\t}\n\t\t\tSystem.out.println(\"Generation \" + generation);\n\t\t\tGenetic.Executor.newGen();\n\t\t\tSystem.out.println(Generation.getBestRating());\n\t\t\tgeneration ++;\n\t\t}\n\n\t\tSystem.out.println(Generation.getBestTree());\n\t\tSystem.out.println(Generation.getBestRating());\n\n\n\n/*\n\t\tboolean visual=false;\n\t\tString fileName=\"results/replay10.txt\";\n\n\t\tint bestScore = 0;\n\t\tint result = 0;\n\t\tint average = 0;\n\t\tfor(int i = 0; i < 1000 ; i++) {\n\t\t\tresult = exec.runGameTimedRecorded(pacman, ghosts, visual, fileName, bestScore);\n\t\t\taverage +=result;\n\t\t\tif(result > bestScore){\n\t\t\t\tbestScore = result;\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tvisual = true;\n\t\tSystem.out.println(average/1000.0);\n\t\texec.replayGame(fileName,visual);\n\t\t*/\n\n\n\t}", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "public void setup() {\n\t\taddBehaviour(new TickerBehaviour(this, 1000L) {\n\n\t\t\t@Override\n\t\t\tprotected void onTick() {\n\t\t\t\tint extinguishedFires = 0;\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < worldAgent.getAircraftAgents().length; i++) {\n\t\t\t\t\textinguishedFires+=worldAgent.getAircraftAgents()[i].getAircraftMetricsStats().getNumTotalFiresExtinguishedByThisAircraft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tworldAgent.getWorldMetricsStats().setNumTotalFiresExtinguishedByAllAircrafts(extinguishedFires);\n\t\t\t\t\n\t\t\t\tif(extinguishedFires >= 3) {\t\t\t\t\t\n\t\t\t\t\tlong end_time = System.currentTimeMillis();\n\t\t\t\t\tlong execution_time = end_time - init_time;\n\t\t\t\t\t\n\t\t\t\t\tAircraftAgent[] aircrafts = worldAgent.getAircraftAgents();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < aircrafts.length; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Thread sleepingThread : aircrafts[i].getSleepingThreads().values()) {\n\t\t\t\t\t\t\tSystem.err.println(\"Interrupting thread = \\\"\" + sleepingThread.getName() + \"!\");\n\t\t\t\t\t\t\tsleepingThread.interrupt();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tkillContainer();\n\t\t\t\t\t\n\t\t\t\t\tLogger.appendConfigValues(execution_time);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Run no. \" + JADELauncher.NUMBER_OF_RUNS + \" finished.\");\n\n\t\t\t\t\tif(JADELauncher.NUMBER_OF_RUNS == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLogger.closeStream();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJADELauncher.NUMBER_OF_RUNS--;\n\t\t\t\t\t\tinstanceRun();\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\t\n\t\tinstanceRun();\n\t}", "public void endOfSimulation()\n\t{\n\t\trynekHistory.createFirstPriceVSFinalPriceReport();\n\t}", "protected void runAfterIterations() {}", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "public void simulationTerminated() {\n }", "@Override\n\tprotected void execute() {\n\t\tRobot.collector.setMawOpen(Robot.oi.getCollectorOpen());\n\t\tRobot.collector.setIntakeSpeed(Robot.oi.getCollectorSpeed());\n\t\tRobot.collector.setWristStageOneRetracted(Robot.oi.getWristStageOneRetracted());\n\t\tRobot.collector.setWristStageTwoRetracted(Robot.oi.getWristStageTwoRetracted());\n\t}", "public void setUp() {\r\n\t\tsynchronized(phys) {\r\n\t\t\r\n\t\tReactionSystem reactions = new ReactionSystem();\r\n\t\tphys.getParticles().clear();\r\n\t\tphys.compounds.clear();\r\n\t\tphys.particlecount.clear();\r\n\t\t\r\n\t\t//Add new compounds\r\n\t\t\r\n\t\tfor (Compound c: rm.compounds) {\r\n\t\t\tphys.addCompound(c);\r\n\t\t}\r\n\t\t\r\n\t\t//Add new reactions\r\n\t\t\r\n\t\tfor (CompoundReaction rx: rm.reactions) {\r\n\t\t\trx.convertToReactions(reactions.getReactions());\r\n\t\t}\r\n\t\t\r\n\t\tphys.reactions = reactions;\r\n\t\tphys.calculateAvgMass();\r\n\t\tphys.calculateAvgRadius();\r\n\t\r\n\t\t\r\n\t\tfor (Reaction r: phys.reactions.getReactions()) {\r\n\r\n\t\t\tSystem.out.println(r);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Add graphs\r\n\t\tscale.reset();\r\n\t\tphys.graphs.clear();\r\n\t\tfor (Compound c: phys.compounds) {\r\n\t\t\tphys.graphs.add(new ConcentrationDataCollector(300, c, scale));\t\r\n\t\t}\r\n\t\t\r\n\t\tphys.time = 0;\r\n\t\tphys.nextcollection = phys.collectioninterval;\r\n\t\tphys.bondenergy = 0;\r\n\t\t}\r\n\t}", "public synchronized void runPostTurtles() {\n\t\trunEndogenousEngine();\n\t\tsolveConflicts();\n\t\tfirePostAgentScheduling();\n\t}", "public static void doEncounters() {\r\n \t\r\n \tIterator<String> populationIter = population.keySet().iterator();\r\n\t\twhile (populationIter.hasNext()) { \r\n\t String pos = populationIter.next();\r\n\t ArrayList<Critter> critterList = population.get(pos);\r\n\t if(critterList.size() > 1) {\r\n\t \tint[] coords = stringToPos(pos);\r\n\t \t//get the integer value of the coordinates from the String key\r\n\t \tint x_copy = coords[0];\r\n\t \tint y_copy = coords[1];\r\n\t \t\r\n\t \tfor(int i = 0; i < critterList.size(); i++) {\r\n\t \t\tfor (int j = i+1; j < critterList.size(); j++) {\r\n\t \t\t\tCritter A = critterList.get(i);\r\n\t \t\t\tCritter B = critterList.get(j);\r\n\t \t\t\tif(A.getEnergy() > 0 && B.getEnergy() > 0 && A.x_coord == x_copy && A.y_coord == y_copy && B.x_coord == x_copy && B.y_coord == y_copy) {\r\n\t \t\t\t\t\r\n\t \t\t\t\t//Critters A and B are fighting\r\n\t \t\t\t\tA.isFight = true;\r\n\t \t\t\t\tB.isFight = true;\r\n\t \t\t\t\t\r\n\t \t\t\t\t//boolean AWantsToFight = A.fight(B.toString());\r\n\t \t\t\t\t//boolean BWantsToFight = B.fight(A.toString());\r\n\t \t\t\t\tint skillA = 0;\r\n\t \t\t\t\tint skillB = 0;\r\n\t \t\t\t\t\r\n\t \t\t\t\t//determine how A wants to respond\r\n\t \t\t\t\tif(A.fight(B.toString()) == true) {\r\n\t \t\t\t\t\tskillA = getRandomInt(A.energy);\r\n\t \t\t\t\t}\r\n\t \t\t\t\t\r\n\t \t\t\t\t//determine how B wants to respond\r\n\t \t\t\t\tif(B.fight(A.toString()) == true) {\r\n\t \t\t\t\t\tskillB = getRandomInt(B.energy);\r\n\t \t\t\t\t}\r\n\t \t\t\t\tif(A.x_coord == x_copy && B.x_coord == x_copy && A.y_coord == y_copy && B.y_coord == y_copy) {\r\n\t \t\t\t\t\tif(skillA > skillB) { // A wins\r\n\t \t\t\t\t\t\tA.energy += (int) Math.floor(B.energy*1.0*0.5);\r\n\t \t\t\t\t\t\tB.energy = 0;\r\n\t \t\t\t\t\t} else if (skillB > skillA) {\r\n\t \t\t\t\t\t\tB.energy += (int) Math.floor(A.energy*1.0*0.5); //B wins\r\n\t \t\t\t\t\t\tA.energy = 0;\r\n\t \t\t\t\t\t} else {\r\n\t \t\t\t\t\t\tif(getRandomInt(1) == 0) { // A wins\r\n\t\t \t\t\t\t\t\tA.energy += (int) Math.floor(B.energy*1.0*0.5);\r\n\t\t \t\t\t\t\t\tB.energy = 0;\r\n\t \t\t\t\t\t\t} else {\r\n\t\t \t\t\t\t\t\tB.energy += (int) Math.floor(A.energy*1.0*0.5); //B wins\r\n\t\t \t\t\t\t\t\tA.energy = 0;\r\n\t \t\t\t\t\t\t}\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t}\r\n\t \t\t\t\t\r\n\t \t\t\t\t//Critters A and B have completed their fight\r\n\t \t\t\t\tA.isFight = false;\r\n\t \t\t\t\tB.isFight = false;\r\n\t \t\t\t\t\r\n\t \t\t\t\tcritterList.set(i, A);\r\n\t \t\t\t\tcritterList.set(j, B);\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \t//Iterate through the critters in that position\r\n\t \tIterator<Critter> crittIter = critterList.iterator();\r\n\t \twhile(crittIter.hasNext()) {\r\n\t \t\tCritter c = crittIter.next();\r\n\t \t\t//remove critters who have moved out of that grid position or who have died\r\n\t \t\tif(c.x_coord != x_copy || c.y_coord != y_copy || (c.energy <= 0)) {\r\n\t \t\t\tcrittIter.remove();\r\n\t \t\t}\r\n\t \t}\r\n\t \tpopulation.replace(pos, critterList);\r\n\t }\r\n\t\t}\r\n }", "protected void finishLogic() throws Exception {//activity\n this.worldActivity = CombatActivity.forName(moduleConfig.getString(\"Activity\"));\n loginSession = new LoginSession(moduleConfig, worldActivity);\n library = new XteaLibrary();\n ItemDefinition.init(revision);\n //gamedialogues.start\n Runtime.getRuntime().addShutdownHook(new WorldShutdownHook());\n protocol = Protocol.applyPatch(revision);\n //revisionMap = Protocol.handleProtocolLoad(revision, multiRevisional, new File(Module.getFile(\"available_revisions.inf\")));\n combat = new Combat(this.worldActivity);\n }", "protected void initializeExecutionRandomness() {\r\n\r\n\t}", "private void finishBuilding() {\n buildTarget = null;\n buildStep = 0;\n buildInstructions = null;\n buildLocation = null;\n buildHeight = null;\n\n knowledge.myState = RobotState.IDLE;\n }", "public void processStimulus(java.util.Enumeration en) {\n//\t\tSystem.out.println(\"physics\");\n// performPhysics();\n\n//\t\tSystem.out.println(\"behavior\");\n doEveryFrame();\n\n//\t\tobjHPindicator\n// hpAppear.setColoringAttributes(new ColoringAttributes(1.0f - (float) hitpoints / (float) maxHitpoints, (float) hitpoints / (float) maxHitpoints, 0.0f, ColoringAttributes.NICEST));\n\n// refreshPosition();\n\n if (isAlive()) {\n wakeupOn(w);\n } else {\n kill();\n }\n }", "private void runBest() {\n }", "public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n addBehaviour(new RequestToMatchMakerBehaviour());\n\n }", "protected void setup() {\n\t\tgetContentManager().registerOntology(JADEManagementOntology.getInstance());\r\n getContentManager().registerLanguage(new SLCodec(), FIPANames.ContentLanguage.FIPA_SL0);\r\n\t\tSystem.out.println(\"Agent FixCop cree : \"+getLocalName());\r\n\t\tObject[] args = getArguments();\r\n\t\tList<String> itinerary = (List<String>) args[0];\r\n\t\tint period = (int) args[1];\r\n\t\t\r\n\t\t\r\n\t// POLICIER STATIONNAIRE DO THE CYCLIC BEHAVIOUR TO SCAN THE ROOT , IF THE INTRUDER IS IN ROOT, POLICIER STATIO KILLS HIM.\r\n addBehaviour(new StationScanRootBehaviour(this));\r\n\r\n\t// RESPAWN ANOTHER POLICIER MOBILE AFTER EACH POLICIER MOBILE's LIFETIME DURATION ELAPSES.\r\n addBehaviour(new RespawnCopBehaviour(this, period, itinerary));\r\n\r\n\t}", "public Vector run(){\n generationCount = 0;\n solutionList = new Vector();\n bannedList = new Vector();\n solutionCounter = 0;\n whenToHalt.init();\n //INITIALIZE THE POPULATION\n\n population = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n fitnessArray = new double[populationSize];\n //COMPUTE FITNESSES\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) population.get(x);\n fitnessArray[x] = next.getFitness();\n }\n\n Arrays.sort(fitnessArray);\n\n while (! stop()){\n //RUN THROUGH THE GENERATIONS\n population = step();\n }\n\n if (useList){\n return solutionList;\n } else {\n return population;\n }\n }", "public void executeSimulation() {\n\t\twhile(!world.isFinished()) { //Execute the world while the command is not exit\n\t\t\tSystem.out.println(\"Command > \");\n\t\t\tString str = in.nextLine();\n\t\t\tstr.toLowerCase();\n\t\t\t\n\t\t\tString[] inputWords = str.split(\" \");\n\t\t\tCommand command = CommandParser.parseCommand(inputWords);\n\t\t\t\n\t\t\tif (command != null) {\n\t\t\t\tcommand.execute(this.world);\n\t\t\t}\n\t\t\telse \n\t\t\t\tSystem.err.println(\"Invalid command! Please, type 'help' to know the commands availables.\\n\");\n\t\t}\n\t}", "public void finishGameSession() {\n\t\tthis.agentNeural.storeWeights();\n\t}", "@Override\n\t\tpublic void action() {\n\t\t\tLogicTuple working = null;\n\t\t\t\n\t\t\t// Signal that \"I, the Worker W, have taken the word K and I'm working for Master M\"\n\t\t\ttry {\n\t\t\t\tTerm me = ValidTermFactory.getTermByString(WorkerAgent.this.getAgentName());\n\t\t\t\tTerm k = ValidTermFactory.getTermByString(word);\n\t\t\t\tTerm to = ValidTermFactory.getTermByString(master);\n\t\t\t\tworking = LogicTuple.parse(\"working(\" + \"who(\" + me + \"),\" + \"keyword(\" + k + \"),\" + \"for(\" + to + \")\" + \")\");\n\t\t\t\tfinal Out out = new Out(WorkerAgent.this.tcid, working);\n\t\t\t\tWorkerAgent.this.bridge.asynchronousInvocation(out);\n\t\t\t\tWorkerAgent.this.bridge.clearTucsonOpResult(this);\n\t\t\t\t\n\t\t\t} catch (InvalidLogicTupleException | ServiceException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tWorkerAgent.this.doDelete();\n\t\t\t}\n\t\t}", "public void reproduce() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < Utils.between(_nChildren,1,8); i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inherit(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_nTotalChildren++;\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t\t_infectedGeneticCode = null;\n\t\t\t}\n\t\t\t_timeToReproduce = 20;\n\t\t}\n\t}", "public Behavior() \r\n\t{ \r\n\t\tm_influence = 0; \r\n\t}", "private static List<Cell> runSimulationExecutive(int sim_duration, int simulation_time_interval, List<Cell> cell_population)\n\t{\n\t\tint population_size = cell_population.size();\n int[][][] blank_genome = new int[haploid_number][2][2]; // A blank diploid genome - The karyotype of the cell, 3 dimensional array to store discrete values for each chromosome -> each homologous pair of chromosomes -> 2 complementary DNA strands'\n\t\t\n //Progress through time at selected intervals for a specified duration\n\t\tfor(int current_time = 0; current_time < sim_duration; current_time += simulation_time_interval)\n {\n printString(current_time + \" \" + population_size);\n //Perform division of all cells that can divide as determined by a random number generator and the set division threshhold\n //As new cells are being added to the list, only go through the cells present in the population before new cells were added in this round i.e use the previous population size as max number of iterations.\n for(int current_element = 0; current_element < population_size; current_element++)\n {\n Cell current_cell = cell_population.get(current_element);\n boolean current_cell_can_divide = current_cell.getDivisionStatus();\n if(current_cell_can_divide)\n {\n \n //Produce a random number, R, between ***********????!!!!!!!!!\n double between_zero_and_one = randomDouble();\n if(between_zero_and_one < 0.2) //The cell can divide\n {\n //Remove one cell from the current generation and add two to the next\n //by changing the generation of the original cell to current_gen + 1 and\n //creating a new cell object also in generation current_gen + 1\n \n final int daughter_cell_one = current_element; //The original cell will become daughter cell one\n \n // Change the orginal cell to daughter cell 1 by increasing its generation value by 1, from its current generation\n //printString(\"Generation of parent cell = \" + daughter_cell_one.getGeneration());\n //printString(\"Cell ID of parent cell = \" + daughter_cell_one.getId());\n int next_generation = cell_population.get(daughter_cell_one).getGeneration() + 1;\n printString(\"Generation of daughter cells = \" + next_generation);\n cell_population.get(daughter_cell_one).setGeneration(next_generation);\n //This is now a new cell, change its ID to a new unique one???????\n \n //Create a new cell object which will become daughter cell 2, with a blank diploid genome, of same generation as the newly created daughter cell 1\n printString(\"Population size before division = \" + cell_population.size());\n cell_population.add(new Cell(id_of_last_created_cell + 1, next_generation, -1, CAN_DIVIDE, newEmptyDeploidGenome()));\n id_of_last_created_cell++;\n printString(\"Population size after division = \" + cell_population.size());\n final int daughter_cell_two = (cell_population.size() - 1); //Create and set daughter cell 2 to the newly created cell object\n \n /*********************************************************/\n // Track the latest generation of cells.\n if(cell_population.get(daughter_cell_one).getGeneration() > newest_generation)\n {newest_generation++;}\n /*********************************************************/\n \n \n //CREATE AN EMPTY GENOME\n int[][][] empty_diploid_genome = newEmptyDeploidGenome();\n \n int[][][] temp_genome_d1 = cell_population.get(daughter_cell_one).getGenome(), temp_genome_d2 = empty_diploid_genome;\n\n //Perform labelling logic as cell divides\n for(int chromosome_count = 0; chromosome_count < temp_genome_d1.length; chromosome_count++)\n {\n\n for(int homologous_pair_count= 0; homologous_pair_count < temp_genome_d1[chromosome_count].length; homologous_pair_count++)\n {\n for(int dna_strand_count = 0; dna_strand_count < temp_genome_d1[chromosome_count][homologous_pair_count].length; dna_strand_count++)\n {\n if(homologous_pair_count == 0 && dna_strand_count==0)\n {temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Set cell 2 DNA strand to labelled\n //printString(\"Labelled strand \" + Integer.toString(temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count]));\n }\n else if(homologous_pair_count == 0 && dna_strand_count==1)\n {\n temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count]; //This strand in cell 2 came from the original cell\n temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Label cell 1s strand as it's new\n }\n else if(homologous_pair_count == 1 && dna_strand_count==0)\n temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Label cells 2's strand, new\n else if(homologous_pair_count == 1 && dna_strand_count==1)\n {\n temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] = temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count]; //This strand in cell 2 came from the original cell\n temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_LABELLED; //Label cell 1s strand as it's new\n }\n //if(temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count] == 0)\n //printString(\"Labelled strand \" + Integer.toString(temp_genome_d2[chromosome_count][homologous_pair_count][dna_strand_count]));\n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand \" + Integer.toString(dna_strand_count+1) + \" - Label status = \" + Integer.toString(blank_genome[chromosome_count][homologous_pair_count][dna_strand_count]));\n\n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand \" + Integer.toString(dna_strand_count+1) + \" - Label status = \" + Integer.toString(temp_genome_d1[chromosome_count][homologous_pair_count][dna_strand_count]));\n }// for every DNA strand\n\n /****/\n //Model stochastic nature of chromosome migration. Each chromosome could end up in either cell one or cell two.\n double another_between_zeroANDone = randomDouble();\n if(another_between_zeroANDone >= 0.5)\n {}\n else\n {\n int[][] temp_chromosome_1 = temp_genome_d1[chromosome_count]; int[][] temp_chromosome_2 = temp_genome_d2[chromosome_count];\n\n temp_genome_d1[chromosome_count] = temp_chromosome_2;\n temp_genome_d2[chromosome_count] = temp_chromosome_1;\n \n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand 1\" + \" - Label status = \" + Integer.toString(temp_genome_d1[chromosome_count][homologous_pair_count][0]));\n //printString(\"Chromosome \" + Integer.toString(chromosome_count+1) + \"; Homologous Pair \" + Integer.toString(homologous_pair_count+1) + \"; Strand 1\" + \" - Label status = \" + Integer.toString(temp_genome_d1[chromosome_count][homologous_pair_count][1]));\n /******/\n //Update the genomes of both cells\n cell_population.get(daughter_cell_one).setGenome(temp_genome_d1);\n cell_population.get(daughter_cell_two).setGenome(temp_genome_d2);\n \n // daughter_cell_one = null;\n //daughter_cell_two = null;\n //temp_genome_d1 = null;\n //temp_genome_d2 = null;\n }// if_between...\n \n }// for every homologous pair\n \n }// for each chromosome\n \n \n \n //cell_population.set(current_element, daughter_cell_one);\n //cell_population.set((cell_population.size()-1), daughter_cell_two);\n printString(\"Index of daughter cell 2 --->\" + (cell_population.size()-1));\n \n //printString(Integer.toString(current_element));\n printString(\"Daughter cell 1 --->\" + cell_population.get(current_element).toString());\n printLabelDistribOfCell(cell_population.get(current_element));\n printString(\"Daughter cell 2 --->\" + cell_population.get(cell_population.size() - 1).toString());\n printLabelDistribOfCell(cell_population.get(cell_population.size() - 1));\n }// if(between_zeroANDone >= 0.5)\n \n else //Cell doesn't divided\n {\n printString(\"Didn't divide --->\" + current_cell.toString());\n printLabelDistribOfCell(cell_population.get(current_element));\n\n }\n\n \n } // if the cell can divide\n \n //printString(Integer.toString(cell_population.get(current_element).getGeneration()));\n \n } // for all cells in the main population\n population_size = cell_population.size(); // Update the population size after the round of division\n printString(current_time + \" \" + population_size);\n }// for\n printString(\"Latest generation = \" + (newest_generation));\n printLabelDistribOfPopulation(cell_population);\n\n return cell_population;\n\t}", "@Override\n public void run() {\n strategy.generateMutations(iContext.wildSequence, region, new MutationCallback() {\n @Override\n public void actOnSequence(String mutatedSequence, String regionId) {\n \t// Avoid duplicate mutations\n if (!mutationHistory.contains(mutatedSequence)) {\n \tconsecutiveDuplicates.set(0);\n mutationHistory.add(mutatedSequence);\n // le' successful mutation! :D\n MutationContext mContext = new MutationContext(iContext, mutatedSequence, regionId, mutIdCtr.incrementAndGet());\n supervisor.tell(new MutateSequenceResultMsg(mContext), self());\n }else{\n \t// If we hit the threshold for maximum, consecutive duplicate mutations, stop generating new mutations\n \t// because we've probably exhausted the problem space by now\n \tif(consecutiveDuplicates.incrementAndGet() >= maxConsecutiveDuplicateMutationsThreshold){\n \t\tlog.info(\"At least [\" + maxConsecutiveDuplicateMutationsThreshold + \"] consecutive, duplicate mutations have already been generated for region[ \" + regionId + \"]. Stopping further mutations...\");\n \t\tstrategy.stop();\n \t}\n }\n // Stop mutating if we reach our maximum unique mutation threshold\n if(mutationHistory.size() >= MAX_UNIQUE_MUTATIONS){\n \tlog.info(\"At least [\" + MAX_UNIQUE_MUTATIONS + \"] unique mutations have been generated for region[ \" + regionId + \"]. Stopping further mutations...\");\n \tstrategy.stop();\n }\n }\n @Override\n protected void onStop(long totalMutations) {\n \tfinished();\n }\n private void finished(){\n \t// le finished! :D\n supervisor.tell(new MutateSequenceRegionFinishedMsg(regionId, mutationHistory.size()), self());\n mutationHistory = new HashSet<>();\n getContext().become(ready);\n }\n });\n }", "public void runSimulation(WorldDescription world, boolean startPaused) {\r\n \t\tPhysicsLogger.setDefaultLoggingLevel();\r\n \t\t/* Create the simulation*/\r\n \t\tfinal PhysicsSimulation simulation = PhysicsFactory.createSimulator();\r\n \t\t\r\n \t\t/*Set ATRON robot to simulation and assign default controller to it*/\r\n \t\tATRON atron = new ATRON(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new ATRONControllerDefault() {\r\n \t\t\t\t\tpublic void activate() {\r\n \t\t\t\t\t\t//delay(10000);\r\n \t\t\t\t\t\tsuper.activate();\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \t\t\t}\r\n \t\t};\r\n \t\tatron.setGentle();// Currently builder supports only this type of ATRON\r\n \t\t//atron.setRubberRing();\r\n \t\tsimulation.setRobot(atron,\"ATRON\");\r\n \t\tsimulation.setRobot(atron,\"ATRON rubberRing gentle\");\r\n \t\tsimulation.setRobot(atron,\"default\");\r\n \t\t\r\n \t\t/*Set MTRAN robot to simulation and assign default controller to it*/\r\n \t\tsimulation.setRobot(new MTRAN(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new MTRANControllerDefault() {\r\n \t\t\t\t\tpublic void activate() {\r\n \t\t\t\t\t\t//delay(10000);\r\n \t\t\t\t\t\tsuper.activate();\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \t\t\t}},\"MTRAN\");\r\n \t\t\r\n \t\t/*Set different Odin modules to simulation and assign default controllers to them */\r\n \t\tsimulation.setRobot(new OdinMuscle(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault() {\r\n \t\t\t\t\tpublic void activate() {\r\n \t\t\t\t\t\t//delay(10000);\r\n \t\t\t\t\t\tsuper.activate();\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \t\t\t}},\"OdinMuscle\");\r\n \t\tsimulation.setRobot(new OdinWheel(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault();\r\n \t\t\t}},\"OdinWheel\");\r\n \t\tsimulation.setRobot(new OdinHinge(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault();\r\n \t\t\t}},\"OdinHinge\");\r\n \r\n \t\tsimulation.setRobot(new OdinBattery(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault();\r\n \t\t\t}},\"OdinBattery\");\r\n \r\n \t\tsimulation.setRobot(new OdinBall(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault();\r\n \t\t\t}},\"OdinBall\");\r\n \r\n \t\tsimulation.setRobot(new OdinSpring(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault();\r\n \t\t\t}},\"OdinSpring\");\r\n \r\n \t\tsimulation.setRobot(new OdinTube(){\r\n \t\t\tpublic Controller createController() {\r\n \t\t\t\treturn new OdinControllerDefault();\r\n \t\t\t}},\"OdinTube\");\t\r\n/*\t\t simulation.setRobot(new CKBotStandard(){\r\n \t \tpublic Controller createController() {\r\n \t \t\treturn new CKBotControllerDefault();\r\n\t \t}},\"CKBotStandard\");*/\r\n \t\t\r\n /*Create the world description of simulation and set it to simulation*/\r\n \t\tif(world==null) world = createWorld()\r\n \t\t;\r\n \t\tsimulation.setWorld(world);\r\n \t\t/*Simulation should be in paused state (static)in the beginning*/\r\n \t\tsimulation.setPause(startPaused);\r\n \t\t/* Start the simulation*/\r\n \t\tsimulation.start();\r\n \t}", "boolean generateAutomata()\n{\n empty_calls = new HashSet<JflowMethod>();\n event_calls = new HashSet<JflowMethod>();\n complete_calls = new LinkedHashMap<JflowMethod,ModelMethod>();\n methods_todo = new LinkedHashSet<JflowMethod>();\n return_set = new HashMap<JflowMethod,Boolean>();\n\n start_set = new HashSet<JflowMethod>();\n for (JflowMethod cm : model_master.getStartMethods()) {\n methods_todo.add(cm);\n start_set.add(cm);\n }\n\n while (!methods_todo.isEmpty()) {\n Iterator<JflowMethod> it = methods_todo.iterator();\n if (!it.hasNext()) break;\n JflowMethod cm = it.next();\n it.remove();\n if (!empty_calls.contains(cm) && !complete_calls.containsKey(cm)) {\n\t if (!model_master.checkUseMethod(cm) || !model_master.isMethodAccessible(cm.getMethod()) ||\n\t\tcm.getMethod().isAbstract()) {\n\t if (model_master.doDebug()) {\n\t System.err.println(\"Ignore method: \" + cm.getMethodName() + \" \" +\n\t\t\t\t cm.getMethodSignature() + \" \" +\n\t\t\t\t model_master.checkUseMethod(cm) + \" \" +\n\t\t\t\t model_master.isMethodAccessible(cm.getMethod()));\n\t }\n\t empty_calls.add(cm);\n\t }\n\t else {\n\t ModelBuilder bld = new ModelBuilder(model_master,this,cm);\n\t complete_calls.put(cm,null);\n\t ModelMethod cs = bld.createAutomata();\n\t if (cs == null) empty_calls.add(cm);\n\t else complete_calls.put(cm,cs);\n\t }\n }\n }\n\n Set<JflowMethod> workq = new LinkedHashSet<JflowMethod>();\n for (Map.Entry<JflowMethod,ModelMethod> ent : complete_calls.entrySet()) {\n JflowMethod bm = ent.getKey();\n ModelMethod cs = ent.getValue();\n if (cs == null) continue;\n Set<JflowModel.Node> states = simplify(cs.getStartState());\n int ctr = 0;\n boolean hasrtn = false;\n for (JflowModel.Node st1 : states) {\n\t if (st1.getEvent() != null) event_calls.add(bm);\n\t else if (st1.getFieldSet() != null) event_calls.add(bm);\n\t if (!hasrtn && st1.getReturnValue() != null) hasrtn = true;\n\t JflowMethod cm = st1.getCall();\n\t if (cm != null) {\n\t if (event_calls.contains(cm)) event_calls.add(bm);\n\t else {\n\t ++ctr;\n\t ModelMethod ncs = complete_calls.get(cm);\n\t if (ncs != null) ncs.addUser(bm);\n\t else System.err.println(\"Call to \" + cm.getMethodName() + \" not found\");\n\t }\n\t }\n }\n return_set.put(bm,Boolean.valueOf(hasrtn));\n\n if (model_master.doDebug()) {\n\t System.err.println(\"First pass method \" + bm.getMethodName() + \" \" +\n\t\t\t bm.getMethodSignature() + \" \" + ctr + \" \" +\n\t\t\t states.size() + \" \" + event_calls.contains(bm));\n }\n if (ctr == 0) {\n\t if (!event_calls.contains(bm)) empty_calls.add(bm);\n }\n else {\n\t workq.add(bm);\n }\n }\n if (model_master.doDebug()) System.err.println(\"Work queue size = \" + workq.size());\n if (event_calls.size() == 0) return false;\n\n Set<JflowMethod> returnused = null;\n boolean chng = true;\n while (chng) {\n chng = false;\n returnused = new HashSet<JflowMethod>();\n while (!workq.isEmpty()) {\n\t Iterator<JflowMethod> it = workq.iterator();\n\t if (!it.hasNext()) break;\n\t JflowMethod bm = it.next();\n\t it.remove();\n\t ModelMethod cs = complete_calls.get(bm);\n\t boolean chkit = !event_calls.contains(bm);\n\n\t if (cs == null || empty_calls.contains(bm)) continue;\n\n\t int ctr = 0;\n\t Set<JflowModel.Node> states = simplify(cs.getStartState());\n\t boolean mchng = false;\n\t boolean hasrtn = false;\n\t for (JflowModel.Node st1 : states) {\n\t if (!hasrtn && st1.getReturnValue() != null) hasrtn = true;\n\t JflowMethod cm = st1.getCall();\n\t if (cm != null) {\n\t if (st1.getUseReturn()) returnused.add(cm);\n\t if (!event_calls.contains(cm)) {\n\t\t ++ctr;\n\t\t}\n\t else if (chkit) {\n\t\t if (model_master.doDebug()) {\n\t\t System.err.println(\"Method required: \" + bm.getMethodName() + \" \" +\n\t\t\t\t\t bm.getMethodSignature() + \" :: \" + cm.getMethodName() +\n\t\t\t\t\t \" \" + cm.getMethodSignature());\n\t\t }\n\t\t event_calls.add(bm);\n\t\t chkit = false;\n\t\t mchng = true;\n\t\t}\n\t }\n\t }\n\n\t if (return_set.get(bm) != Boolean.FALSE) {\n\t return_set.put(bm,Boolean.valueOf(hasrtn));\n\t if (!hasrtn) mchng = true;\n\t }\n\n\t if (ctr == 0 && !event_calls.contains(bm)) {\n\t empty_calls.add(bm);\n\t mchng = true;\n\t }\n\n\t if (model_master.doDebug()) System.err.println(\"Consider method \" + bm.getMethodName() + \" \" + bm.getMethodSignature() + \" \" + ctr + \" \" + states.size() + \" \" + mchng);\n\n\t if (mchng) {\n\t for (Iterator<?> it1 = cs.getUsers(); it1.hasNext(); ) {\n\t JflowMethod cm = (JflowMethod) it1.next();\n\t if (model_master.doDebug()) System.err.println(\"\\tQueue \" + cm.getMethodName() + \" \" + cm.getMethodSignature());\n\t workq.add(cm);\n\t }\n\t }\n }\n\n for (Map.Entry<JflowMethod,ModelMethod> ent : complete_calls.entrySet()) {\n\t JflowMethod bm = ent.getKey();\n\t ModelMethod cs = ent.getValue();\n\t if (cs != null && !empty_calls.contains(bm) && !event_calls.contains(bm)) {\n\t empty_calls.add(bm);\n\t chng = true;\n\t for (Iterator<JflowMethod> it1 = cs.getUsers(); it1.hasNext(); ) {\n\t JflowMethod cm = it1.next();\n\t if (model_master.doDebug()) System.err.println(\"\\tQueue \" + cm.getMethodName() + \" \" + cm.getMethodSignature());\n\t workq.add(cm);\n\t }\n\t }\n }\n }\n\n for (JflowMethod cm : empty_calls) {\n complete_calls.remove(cm);\n }\n\n chng = true;\n boolean needsync = true;\n while (chng) {\n chng = false;\n boolean nextsync = false;\n for (ModelMethod em : complete_calls.values()) {\n\t Set<JflowModel.Node> sts = simplify(em.getStartState());\n\t if (!needsync) {\n\t for (JflowModel.Node nms : sts) {\n\t ModelState ms = (ModelState) nms;\n\t if (ms.getWaitType() != ModelWaitType.NONE) {\n\t\t ms.clearCall();\n\t\t chng = true;\n\t\t}\n\t }\n\t }\n\t else if (!nextsync) {\n\t for (JflowModel.Node ms : sts) {\n\t if (ms.getCall() != null && ms.isAsync()) nextsync = true;\n\t }\n\t }\n\t if (return_set.get(em.getMethod()) != Boolean.FALSE && returnused != null && \n\t\t!returnused.contains(em.getMethod())) {\n\t for (JflowModel.Node nms : sts) {\n\t ModelState ms = (ModelState) nms;\n\t if (ms.getReturnValue() != null) {\n\t\t ms.clearCall();\n\t\t chng = true;\n\t\t}\n\t }\n\t return_set.put(em.getMethod(),Boolean.FALSE);\n\t }\n }\n if (nextsync != needsync) chng = true;\n needsync = nextsync;\n }\n\n for (ModelMethod em : complete_calls.values()) {\n ModelMinimizer.minimize(model_master,em.getStartState());\n }\n\n ModelSynch msynch = new ModelSynch(complete_calls.values());\n msynch.establishPartitions();\n\n if (model_master.doDebug()) {\n IvyXmlWriter nxw = new IvyXmlWriter(new OutputStreamWriter(System.err));\n nxw.begin(\"DEBUG\");\n outputEvents(nxw);\n outputProgram(nxw);\n nxw.end();\n nxw.flush();\n }\n\n boolean retfg = true;\n\n Collection<JflowEvent> c = model_master.getRequiredEvents();\n if (c != null && !c.isEmpty()) {\n Set<JflowEvent> evts = new HashSet<JflowEvent>();\n for (ModelMethod cs : complete_calls.values()) {\n\t Set<JflowModel.Node> states = simplify(cs.getStartState());\n\t for (JflowModel.Node ms : states) {\n\t JflowEvent ev = ms.getEvent();\n\t if (ev != null) evts.add(ev);\n\t }\n }\n for (JflowEvent ev : c) {\n\t if (!evts.contains(ev)) {\n\t System.err.println(\"JFLOW: Required event \" + ev + \" not found\");\n\t retfg = false;\n\t break;\n\t }\n }\n }\n\n empty_calls = null;\n event_calls = null;\n methods_todo = null;\n return_set = null;\n\n return retfg;\n}", "@Override\r\n public void init() {\n \tHouse house = ((Room)getCharacterLocation()).getHouse();\r\n \tboolean freekitchen=false;\r\n \tboolean freestage=false;\r\n \tboolean freearena=false;\r\n \tboolean freebath=false;\r\n \tint chance=0;\r\n\r\n \tfor(Room room: house.getRooms()){\r\n \t\tif(room.getAmountPeople()==0){\r\n \t\t\tif(room.getRoomType()==RoomType.STAGE){freestage=true;}\r\n \t\t\tif(room.getRoomType()==RoomType.KITCHEN){freekitchen=true;}\r\n \t\t\tif(room.getRoomType()==RoomType.ARENA){freearena=true;}\r\n \t\t\tif(room.getRoomType()==RoomType.SPAAREA){freebath=true;}\r\n \t\t}\r\n \t}\r\n \t\r\n \t//List what the character can do\r\n\t\tfinal Map<Occupation, Integer> characterCanDo=new HashMap<Occupation, Integer>();\r\n\t\t\r\n\t\tCharakter character = getCharacters().get(0);\r\n\t\t\r\n\t\t\r\n\t\tfor (Occupation attendType: Occupation.values()) {\r\n\t\t\tcharacterCanDo.put(attendType, 0); \r\n\t\t}\r\n\t\t\r\n\t\tif(character.getFinalValue(EssentialAttributes.ENERGY)<=80){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.REST, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.REST, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(SpecializationAttribute.CLEANING)>=1 && house.getDirt()>30){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.CLEAN, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.CLEAN, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(SpecializationAttribute.SEDUCTION)>=1){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.WHORE, chance);\r\n\t\t\tappeal=character.getFinalValue(SpecializationAttribute.SEDUCTION)/10;\r\n\t\t\tmaxCust=1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.WHORE, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(SpecializationAttribute.STRIP)>=1 && freestage==true){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.DANCE, chance);\r\n\t\t\tappeal=character.getFinalValue(SpecializationAttribute.STRIP)/10;\r\n\t\t\tmaxCust=15;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.DANCE, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(SpecializationAttribute.COOKING)>=1 && freekitchen==true){\t\t\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.COOK, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.COOK, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(SpecializationAttribute.WELLNESS)>=1 && freebath==true){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.BATHATTENDANT, chance);\r\n\t\t\tappeal=character.getFinalValue(SpecializationAttribute.WELLNESS)/10;\r\n\t\t\tmaxCust=15;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.BATHATTENDANT, 0);\r\n\t\t}\r\n\t\tif(freebath==true){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.BATHE, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.BATHE, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(Sextype.FOREPLAY)>50 && character.getFinalValue(EssentialAttributes.ENERGY)>80){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.MASTURBATE, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.MASTURBATE, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(SpecializationAttribute.VETERAN)>=1 && freearena==true){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\t \r\n\t\t\tcharacterCanDo.put(Occupation.TRAIN, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.TRAIN, 0);\r\n\t\t}\r\n\t\tif(character.getFinalValue(EssentialAttributes.ENERGY)>80){\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\tcharacterCanDo.put(Occupation.ERRAND, chance);\r\n\t\t\tchance=Util.getInt(1,100);\r\n\t\t\tcharacterCanDo.put(Occupation.BEACH, chance);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcharacterCanDo.put(Occupation.ERRAND, 0);\r\n\t\t\tcharacterCanDo.put(Occupation.BEACH, 0);\r\n\t\t}\r\n\r\n\t\tint previous=0;\r\n\t\tint actual=0;\r\n\t\tfor (Occupation occupation: Occupation.values()) {\r\n\t\t\tactual=characterCanDo.get(occupation);\r\n\t\t\tif(actual>previous && actual!=0){\r\n\t\t\t\tprevious=actual;\r\n\t\t\t\tcharacterOccupationMap.put(character, occupation);\r\n\t\t\t}\r\n\r\n\t\t}\r\n }", "protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "protected abstract Simulate collectAgentData ();", "public void run() {\n\n long startTime = System.nanoTime();\n\n /*\"*********************************\n * Getting data from the algorithm *\n ***********************************/\n\n // Posterior values, get them from memory instead of propagating again. Since this method is called write,\n // it should only write.\n HashMap<Variable, TablePotential> results = algorithm.getLastPosteriorValues();\n\n // Samples\n double[][] sampleStorage;\n try {\n sampleStorage = algorithm.getSamples();\n if (sampleStorage.length == 0) { // Case of empty database\n throw new NullPointerException();\n }\n\n } catch (NullPointerException e) { // Case of empty database and no database\n logger.error(\"No samples found to write\");\n LocalizedException NoDatabaseException =\n new LocalizedException(new OpenMarkovException(\"Exception.NoDatabase\"), this.dialog);\n NoDatabaseException.showException();\n return;\n }\n\n // Variables\n List<Variable> sampledVariables = algorithm.getVariablesToSample();\n\n // The maximum number of states defines the number of columns of the second sheet in Excel.\n int maxNStates = 0;\n for (Variable variable : sampledVariables) {\n if (variable.getNumStates() > maxNStates) {\n maxNStates = variable.getNumStates();\n }\n }\n\n // Evidence variables\n EvidenceCase evidence = algorithm.getFusedEvidence();\n List<Variable> evidenceVariables = evidence.getVariables();\n\n // Time measuring for this phase\n long elapsedMS = (System.nanoTime() - startTime) / 1000000;\n logger.info(\"Data obtained from the algorithm: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Data obtained from the algorithm: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"***********************\n * Creating the workbook *\n *************************/\n\n SXSSFWorkbook workbook = new SXSSFWorkbook(1000);\n\n /* Styles */\n\n // Styles to convey graphically the weight\n\n // Weight = 0\n XSSFCellStyle incompatibleSample = (XSSFCellStyle) workbook.createCellStyle();\n incompatibleSample.setFillForegroundColor(new XSSFColor(INCOMPATIBLE_SAMPLE));\n incompatibleSample.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n // Weight = 1\n XSSFCellStyle compatibleSample = (XSSFCellStyle) workbook.createCellStyle();\n compatibleSample.setFillForegroundColor(new XSSFColor(COMPATIBLE_SAMPLE));\n compatibleSample.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\n /// Font with big emphasis for the next styles\n XSSFFont bigBoldArial = (XSSFFont) workbook.createFont();\n bigBoldArial.setFontName(\"Arial\");\n bigBoldArial.setFontHeightInPoints((short) 11);\n bigBoldArial.setBold(true);\n\n // Header of table\n XSSFCellStyle topTable = (XSSFCellStyle) workbook.createCellStyle();\n\n topTable.setFillForegroundColor(new XSSFColor(HEADER_COLOR));\n topTable.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n topTable.setAlignment(HorizontalAlignment.LEFT);\n topTable.setFont(bigBoldArial);\n\n // Header of table centered\n XSSFCellStyle centeredTopTable = (XSSFCellStyle) workbook.createCellStyle();\n\n centeredTopTable.setFillForegroundColor(new XSSFColor(HEADER_COLOR_2));\n centeredTopTable.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n centeredTopTable.setAlignment(HorizontalAlignment.CENTER);\n centeredTopTable.setFont(bigBoldArial);\n\n\n /// Font with some emphasis\n XSSFFont bigArial = (XSSFFont) workbook.createFont();\n bigArial.setFontName(\"Arial\");\n bigArial.setFontHeightInPoints((short) 10);\n bigArial.setBold(true);\n\n // Chance node\n XSSFCellStyle chanceNode = (XSSFCellStyle) workbook.createCellStyle();\n\n chanceNode.setFillForegroundColor(new XSSFColor(CHANCE_NODE_COLOR));\n chanceNode.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n chanceNode.setFont(bigArial);\n\n // Algorithm name\n XSSFCellStyle subTopTable = (XSSFCellStyle) workbook.createCellStyle();\n\n subTopTable.setFont(bigArial);\n\n\n /// Font with some emphasis and white for contrast\n XSSFFont bigWhiteArial = (XSSFFont) workbook.createFont();\n bigWhiteArial.setFontName(\"Arial\");\n bigWhiteArial.setFontHeightInPoints((short) 11);\n bigWhiteArial.setColor(new XSSFColor(new Color(255, 255, 255)));\n\n // Node with finding\n XSSFCellStyle findingNode = (XSSFCellStyle) workbook.createCellStyle();\n\n findingNode.setFillForegroundColor(new XSSFColor(FINDING_NODE_COLOR));\n findingNode.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n findingNode.setFont(bigWhiteArial);\n\n\n\n // No more than four decimal places\n XSSFCellStyle smartDecimals = (XSSFCellStyle) workbook.createCellStyle();\n smartDecimals.setDataFormat(workbook.createDataFormat().getFormat(\"0.0000\"));\n\n // No more than two decimal places\n XSSFCellStyle smartFewDecimals = (XSSFCellStyle) workbook.createCellStyle();\n smartFewDecimals.setDataFormat(workbook.createDataFormat().getFormat(\"0.##\"));\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Workbook styles created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Workbook styles created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"******************\n * Sheet of samples *\n ********************/\n SXSSFSheet samples = workbook.createSheet(dialog.stringDatabase.getString(\"SheetNames.Samples\"));\n\n /* Title row */\n Row titlesRow = samples.createRow(0);\n titlesRow.createCell(0).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.SampleN\"));\n for (int colNum = 1; colNum < sampledVariables.size() + 1; colNum++) { // Names of variables\n titlesRow.createCell(colNum).setCellValue(sampledVariables.get(colNum - 1).toString());\n }\n titlesRow.createCell(sampledVariables.size() + 1).setCellValue(dialog.stringDatabase.\n getString(\"ColumnTitles.Weight\"));\n\n // Apply header style\n for (int colNum = 0; colNum < sampledVariables.size() + 2; colNum++) {\n titlesRow.getCell(colNum).setCellStyle(topTable);\n }\n\n // Auto-size columns of first sheet\n for (int colNum = 0; colNum < sampledVariables.size() + 2; colNum++) {\n samples.trackAllColumnsForAutoSizing();\n samples.autoSizeColumn(colNum);\n }\n\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Header of samples sheet: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Header of samples sheet: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /* Sample's rows */\n int rowNum;\n\n // Sample's loop\n for (rowNum = 1; rowNum < algorithm.getSampleSize() + 1; rowNum++) {\n\n Row sampleRow = samples.createRow(rowNum);\n sampleRow.createCell(0).setCellValue(rowNum);\n double weight = sampleStorage[rowNum - 1][sampledVariables.size()];\n for (int colNum = 1; colNum < sampledVariables.size() + 2; colNum++) { // Sampled states\n sampleRow.createCell(colNum).setCellValue(sampleStorage[rowNum - 1][colNum - 1]);\n if (weight == 0) {\n sampleRow.getCell(colNum).setCellStyle(incompatibleSample);\n } else {\n sampleRow.getCell(colNum).setCellStyle(compatibleSample);\n }\n }\n }\n\n\n\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Sample rows created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Sample rows created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"************************\n * Sheet of general stats *\n **************************/\n\n SXSSFSheet generalStats = workbook.createSheet(dialog.stringDatabase.getString(\"SheetNames.GeneralStats\"));\n\n /* Rows of algorithm data */\n\n rowNum = 0;\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.Algorithm\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(dialog.algorithmName);\n generalStats.getRow(rowNum).getCell(1).setCellStyle(subTopTable);\n\n rowNum++; // Row 1\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.TotalSamples\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getSampleSize());\n\n rowNum++; // Row 2\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.RuntimePerSample\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).\n setCellValue(algorithm.getAlgorithmExecutionTime()/algorithm.getSampleSize());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartDecimals);\n\n rowNum++; // Row 3\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.Runtime\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).\n setCellValue(algorithm.getAlgorithmExecutionTime());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartFewDecimals);\n\n rowNum++; // Row 4\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.ValidSamples\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getNumPositiveSamples());\n\n rowNum++; // Row 5\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.AccumulatedWeight\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getAccumulatedWeight());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartFewDecimals);\n\n rowNum++; // Row 6\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.ExactAlgorithmName\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(dialog.stringDatabase.getString(\"Algorithms.Hugin\"));\n\n // Empty row\n\n rowNum +=2; // rows written until now\n\n /* Row of titles */\n titlesRow = generalStats.createRow(rowNum);\n titlesRow.createCell(0).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.Variable\"));\n\n // Big long cell for state names\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n titlesRow.createCell(1).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.States\"));\n\n // Set header style\n for (int colNum = 0; colNum < 2; colNum++) {\n titlesRow.getCell(colNum).setCellStyle(centeredTopTable);\n }\n\n // Empty row for clarity\n if (evidenceVariables.size() > 0) {\n rowNum++ ;\n }\n\n // Write about evidence variables that have not been sampled\n for (Variable evidenceVariable : evidenceVariables) {\n if (!sampledVariables.contains(evidenceVariable)) {\n\n /* Row of names */\n Row namesRow = generalStats.createRow(rowNum);\n // Write the name of the variable\n Cell variableName = namesRow.createCell(0);\n variableName.setCellValue(evidenceVariable.toString());\n variableName.setCellStyle(findingNode); // The color marks it as a finding\n\n // and then the names of their states\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n Cell stateName = namesRow.createCell(colNum);\n stateName.setCellValue(evidenceVariable.getStateName(colNum - 1));\n stateName.setCellStyle(findingNode);\n }\n\n /* Row of occurrences */\n // Write \"non-sampled\"\n Row occurrencesRow = generalStats.createRow(rowNum + 1);\n Cell nSamples = occurrencesRow.createCell(0);\n nSamples.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Ocurrences\"));\n\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n occurrencesRow.createCell(colNum)\n .setCellValue(dialog.stringDatabase.getString(\"NonSampled\"));\n }\n\n /* Row of finding */\n // Write the finding\n Row approxProbsRow = generalStats.createRow(rowNum + 2);\n Cell approximateProbs = approxProbsRow.createCell(0);\n approximateProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Finding\"));\n\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n int value = 0;\n if (evidence.getState(evidenceVariable) == colNum - 1) {\n value = 1;\n }\n approxProbsRow.createCell(colNum).setCellValue(value);\n }\n\n // Empty row\n Row emptyRow = generalStats.createRow(rowNum + 4);\n emptyRow.setHeight((short) 120);\n\n rowNum += 4; // Go to the next variable (each variable uses 4 rows)\n }\n }\n\n rowNum++; // Empty row for clarity.\n\n // Write sampled variables\n for (int variablePosition = 0; variablePosition < sampledVariables.size(); variablePosition++) {\n\n Variable variableToWrite = sampledVariables.get(variablePosition);\n\n /* Row of names */\n Row namesRow = generalStats.createRow(rowNum);\n // Write the name of the variable\n Cell variableName = namesRow.createCell(0);\n variableName.setCellValue(sampledVariables.get(variablePosition).toString());\n\n // and then the names of its states\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n Cell stateName = namesRow.createCell(colNum);\n stateName.setCellValue(variableToWrite.getStateName(colNum - 1));\n }\n\n // In logical sampling, evidence variables are samples. If so, mark them as findings.\n if (evidenceVariables.contains(variableToWrite)) {\n for (int colNum = 0; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n namesRow.getCell(colNum).setCellStyle(findingNode);\n }\n } else {\n for (int colNum = 0; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n namesRow.getCell(colNum).setCellStyle(chanceNode);\n }\n }\n\n /* Row of occurrences */\n Row occurrencesRows = generalStats.createRow(rowNum + 1);\n // Write the title of the row\n Cell nSamples = occurrencesRows.createCell(0);\n nSamples.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Ocurrences\"));\n // Write how many times each state has been sampled\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n occurrencesRows.createCell(colNum)\n .setCellValue(getStateOccurrences(sampleStorage, variablePosition,colNum - 1));\n }\n\n /* Row of approximate probabilities */\n Row approxProbsRow = generalStats.createRow(rowNum + 2);\n // Write the title of the row\n Cell approximateProbs = approxProbsRow.createCell(0);\n approximateProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.ApproximateProbability\"));\n // Write the sampled probability\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n if (evidenceVariables.contains(variableToWrite)) {\n // Logic Sampling: in case of a sampled evidence variable, probability = 1 for the finding.\n int value = 0;\n if (evidence.getState(variableToWrite) == colNum - 1) {\n value = 1;\n }\n approxProbsRow.createCell(colNum).setCellValue(value);\n\n } else {\n approxProbsRow.createCell(colNum)\n .setCellValue(results.get(variableToWrite).getValues()[colNum - 1]);\n }\n approxProbsRow.getCell(colNum).setCellStyle(smartDecimals);\n }\n\n\n /* Row of exact probabilities */\n Row exactProbsRow = generalStats.createRow(rowNum + 3);\n // Write the title of the row\n Cell exactProbs = exactProbsRow.createCell(0);\n exactProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.ExactProbability\"));\n // Write how many times each state has been sampled\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n exactProbsRow.createCell(colNum)\n .setCellValue(exactPosteriorValues.get(variableToWrite).getValues()[colNum - 1]);\n exactProbsRow.getCell(colNum).setCellStyle(smartDecimals);\n }\n\n // Empty row\n Row emptyRow = generalStats.createRow(rowNum + 4);\n emptyRow.setHeight((short) 120);\n\n rowNum += 5; // Go to the next variable (each variable uses 5 rows)\n\n }\n\n // Auto-size columns of second sheet (variable column + states columns)\n for (int colNum = 0; colNum <= 1 + maxNStates; colNum++) {\n generalStats.trackAllColumnsForAutoSizing();\n generalStats.autoSizeColumn(colNum);\n }\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"General stats added: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"General stats added: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"*****************\n * Output the file *\n *******************/\n try {\n FileOutputStream outputStream = new FileOutputStream(fileName);\n workbook.write(outputStream);\n // remember to close\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n LocalizedException OutputException =\n new LocalizedException(new OpenMarkovException(\"Exception.Output\"), this.dialog);\n OutputException.showException();\n }\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Writing done: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Writing done: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n String conclusion = dialog.stringDatabase.getString(\"Conclusion\") + \"\\n\" + fileName;\n logger.info(conclusion);\n System.out.println(conclusion);\n JOptionPane.showMessageDialog(dialog, conclusion,\n dialog.stringDatabase.getString(\"ConclusionTitle\"), JOptionPane.DEFAULT_OPTION);\n }", "private void combatPhase() {\n \t\n \tpause();\n \tDice.setFinalValMinusOne();\n\n \t// Go through each battle ground a resolve each conflict\n \tfor (Coord c : battleGrounds) {\n \t\t\n \tClickObserver.getInstance().setTerrainFlag(\"\");\n \t\n \tSystem.out.println(\"Entering battleGround\");\n \t\tfinal Terrain battleGround = Board.getTerrainWithCoord(c);\n \t\t\n \t\t// find the owner of terrain for post combat\n \tPlayer owner = battleGround.getOwner();\n \t\n \t\t// simulate a click on the first battleGround, cover all other terrains\n \t\tClickObserver.getInstance().setClickedTerrain(battleGround);\n \t\tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\tClickObserver.getInstance().whenTerrainClicked();\n \t\tBoard.applyCovers();\n \t\tClickObserver.getInstance().getClickedTerrain().uncover();\n \tClickObserver.getInstance().setTerrainFlag(\"Disabled\");\n }\n });\n \t\t\n \t\t// Get the fort\n \t Fort battleFort = battleGround.getFort(); \n \t\t\n \t\t// List of players to battle in the terrain\n \t\tArrayList<Player> combatants = new ArrayList<Player>();\n \t\t\n \t\t// List of pieces that can attack (including forts, city/village)\n \t\tHashMap<String, ArrayList<Piece>> attackingPieces = new HashMap<String, ArrayList<Piece>>();\n \t\t\n \t\tSystem.out.println(battleGround.getContents().keySet());\n \t\t\n \t\tIterator<String> keySetIterator = battleGround.getContents().keySet().iterator();\n\t \twhile(keySetIterator.hasNext()) {\n\t \t\tString key = keySetIterator.next();\n\t \t\t\n \t\t\tcombatants.add(battleGround.getContents().get(key).getOwner());\n \t\t\tattackingPieces.put(battleGround.getContents().get(key).getOwner().getName(), (ArrayList<Piece>) battleGround.getContents().get(key).getStack().clone()); \n \t\t\t\n\t \t}\n\t \t\n\t \t\n\t \t\n\t \t// if the owner of the terrain has no pieces, just a fort or city/village\n\t\t\tif (!combatants.contains(battleGround.getOwner()) && battleFort != null) {\n\t\t\t\tcombatants.add(battleGround.getOwner());\n\t\t\t\tattackingPieces.put(battleGround.getOwner().getName(), new ArrayList<Piece>());\n\t\t\t}\n\n \t\t// add forts and city/village to attackingPieces\n \t\tif (battleFort != null) {\n \t\t\tattackingPieces.get(battleGround.getOwner().getName()).add(battleFort);\n \t\t}\n \t\t\n \t\tkeySetIterator = attackingPieces.keySet().iterator();\n\t \twhile (keySetIterator.hasNext()) {\n\t \t\tString key = keySetIterator.next();\n\t \t\t\n\t \t\tfor (Piece p : attackingPieces.get(key)) {\n\t \t\t\tif (p.getName().equals(\"Baron Munchhausen\") || p.getName().equals(\"Grand Duke\")) {\n\t \t\t\t\tif (p.getOwner() != battleGround.getOwner())\n\t \t\t\t\t\t((Performable)p).specialAbility();\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t}\n\t \t}\n \t\t// TODO implement city/village\n// \t\tif (City and village stuff here)\n \t\tSystem.out.println(combatants);\n \t\t\n \t\tboolean exploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t// Fight until all attackers are dead, or until the attacker becomes the owner of the hex\n \t\twhile (combatants.size() > 1 || exploring) {\n \t\t\t\n /////////////Exploration\n \t// Check if this is an exploration battle:\n \t\t// Must fight other players first\n \t\t\tboolean fightingWildThings = false;\n \tif (exploring) {\n\n \t\t\t\t// Set the battleGround explored\n \t\t\t\tbattleGround.setExplored(true);\n \t\n \t\tString exploringPlayer = null;\n \t\tIterator<String> keySetIter = battleGround.getContents().keySet().iterator();\n \t \twhile(keySetIter.hasNext()) {\n \t \t\tString key = keySetIter.next();\n \t \t\texploringPlayer = key;\n \t \t}\n \t\tplayer = battleGround.getContents(exploringPlayer).getOwner();\n \t\tplayer.flipAllUp();\n \t \t\n \t\t// Get user to roll die to see if explored right away\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \tDiceGUI.getInstance().uncover();\n \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n \t \t\t\t+ \", roll the die. You need a 1 or a 6 to explore this terrain without a fight!\");\n \t }\n \t\t\t\t});\n \t\t\t\t\n \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\tint luckyExplore = -1;\n \t\t\t\twhile (luckyExplore == -1) {\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\tluckyExplore = Dice.getFinalVal();\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If success TODO FIX this \n \t\t\t\tif (luckyExplore == 1 || luckyExplore == 6) {\n \t\t\t\t\t\n \t\t\t\t\t// Cover die. Display msg\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \tDiceGUI.getInstance().cover();\n \t\t \tGUI.getHelpText().setText(\"Attack phase: Congrats!\" + player.getName() \n \t\t \t\t\t+ \"!, You get the terrain!\");\n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\texploring = false;\n \t\t\t\t\tbreak;\n \t\t\t\t\t\n \t\t\t\t} else { // Else failure. Must fight or bribe\n \t\t\t\t\t\n \t\t\t\t\tfightingWildThings = true;\n \t\t\t\t\t\n \t\t\t\t\t// Cover die. Display msg\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \tDiceGUI.getInstance().cover();\n \t\t \tbattleGround.coverPieces();\n \t\t \tGUI.getHelpText().setText(\"Attack phase: Boooo!\" + player.getName() \n \t\t \t\t\t+ \"!, You have to bribe, or fight for your right to explore!\");\n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t// add luckyExplore amount of pieces to terrain under wildThing player\n \t\t\t\t\tfinal ArrayList<Piece> wildPieces = TheCup.getInstance().draw(luckyExplore);\n \t\t\t\t\t\t\n \t\t\t\t\t// Update the infopanel with played pieces. Active done button\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \twildThings.playWildPieces(wildPieces, battleGround);\n \t\t GUI.getDoneButton().setDisable(false);\n \t\t battleGround.coverPieces();\n \t\t \tInfoPanel.showTileInfo(battleGround);\n \t\t \n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t//////Bribing here\n \t\t\t\t\tpause();\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectCreatureToBribe\");\n \t\t\t\t\t\n \t\t\t\t\t// Uncover the pieces that the player can afford to bribe\n \t\t\t\t\t// canPay is false if there are no Pieces that the user can afford to bribe\n \t\t\t\t\tboolean canPay = false;\n \t\t\t\t\tfor (final Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n \t\t\t\t\t\tif (((Combatable)p).getCombatValue() <= player.getGold()) {\n \t\t\t\t\t\t\tcanPay = true;\n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t\t\t @Override\n \t\t\t\t public void run() {\n \t\t\t\t \tp.uncover();\n \t\t\t\t }\n \t\t\t\t\t\t\t});\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\ttry { Thread.sleep(50); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t// Continue looping until there are no more pieces user can afford to bribe, or user hits done button\n \t\t\t\t\twhile (canPay && isPaused) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t\t @Override\n\t \t\t public void run() {\n\t \t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t \t\t \t\t\t+ \", Click on creatures you would like to bribe\");\n\t \t\t }\n \t\t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t\t// wait for user to hit done, or select a piece\n \t\t\t\t\t\tpieceClicked = null;\n \t\t\t\t\t\twhile(pieceClicked == null && isPaused) {\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (pieceClicked != null) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// spend gold for bribing. Remove clicked creature\n \t\t\t\t\t\t\tplayer.spendGold(((Combatable)pieceClicked).getCombatValue());\n \t\t\t\t\t\t\t((Combatable)pieceClicked).inflict();\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// cover pieces that are too expensive\n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t\t\t @Override\n \t\t\t\t public void run() {\n \t\t\t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n \t\t\t \t\t\t+ \" bribed \" + pieceClicked.getName());\n \t\t\t\t \tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t \tif (battleGround.getContents(wildThings.getName()) != null) {\n\t \t\t\t\t for (Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n\t \t\t\t\t \tif (((Combatable)p).getCombatValue() > player.getGold())\n\t \t\t\t\t \t\tp.cover();\n\t \t\t\t\t }\n \t\t\t\t \t}\n \t\t\t\t }\n \t\t\t\t\t\t\t});\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Check if there are any pieces user can afford to bribe and set canPay to true if so\n \t\t\t\t\t\t\tcanPay = false;\n \t\t\t\t\t\t\tif (battleGround.getContents(wildThings.getName()) == null || battleGround.getContents(wildThings.getName()).getStack().size() == 1)\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\telse {\n\t \t\t\t\t\t\t\tfor (final Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n\t \t\t\t\t\t\t\t\tif (((Combatable)p).getCombatValue() <= player.getGold()) {\n\t \t\t\t\t\t\t\t\t\tcanPay = true;\n\t \t\t\t\t\t\t\t\t\tbreak;\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t @Override\n\t\t\t public void run() {\n\t\t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t\t \t\t\t+ \" done bribing\");\n\t\t\t }\n \t\t\t\t\t});\n \t\t\t\t\tSystem.out.println(\"Made it past bribing\");\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\t\n \t\t\t\t\t// Done bribing, on to fighting\n \t\t\t\t\t\n \t\t\t\t\t// find another player to control wildThings and move on to regular combat\n \t\t\t\t\t// to be used later \n \t\t\t\t\tPlayer explorer = player;\n \t\t\t\t\tPlayer wildThingsController = null;\n \t\t\t\t\tfor (Player p : playerList) {\n \t\t\t\t\t\tif (!p.getName().equals(player.getName()))\n \t\t\t\t\t\t\twildThingsController = p;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// If wild things still has pieces left:\n \t\t\t\t\tif (battleGround.getContents().containsKey(wildThings.getName())) {\n\t \t\t\t\t\tcombatants.add(battleGround.getContents().get(wildThings.getName()).getOwner());\n\t \t \t\t\tattackingPieces.put(wildThings.getName(), (ArrayList<Piece>) battleGround.getContents().get(wildThings.getName()).getStack().clone()); \n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// cover pieces again\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \tbattleGround.coverPieces();\n \t }\n \t\t\t\t});\n \t\t\t\t\n \t\t\t\tplayer.flipAllDown();\n \t} // end if (exploring)\n \t\t\t\n \t\t\tSystem.out.println(\"combatants.size() > 1 : \" + combatants.size());\n \t\t\tSystem.out.println(combatants);\n \t\t\t\n \t\t\t// This hashMap keeps track of the player to attack for each player\n \t\t\tHashMap<String, Player> toAttacks = new HashMap<String, Player>();\n\n\t\t\t\t// each player selects which other player to attack in case of more than two combatants\n \t\t\tif (combatants.size() > 2) {\n \t\t\t\t\n \t\t\t\tfor (final Player p : combatants) {\n \t\t\t\t\tif (!p.isWildThing()) {\n\t \t \t\tpause();\n\t \t \t\tClickObserver.getInstance().setPlayerFlag(\"Attacking: SelectPlayerToAttack\");\n\t \t \t\tplayer = p;\n\t\t \tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t \tPlayerBoard.getInstance().applyCovers();\n\t\t \t \tbattleGround.coverPieces();\n\t\t \t \t GUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t\t \t + \", select which player to attack\");\n\t\t\t \t \t}\n\t\t \t });\n\t\t \tfor (final Player pl : combatants) {\n\t\t \t\tif (!pl.getName().equals(player.getName())) {\n\t\t \t\t\tPlatform.runLater(new Runnable() {\n\t\t \t \t @Override\n\t\t \t \t public void run() {\n\t\t \t \t \tPlayerBoard.getInstance().uncover(pl);\n\t\t \t \t }\n\t\t \t\t\t});\n\t\t \t\t}\n\t\t \t}\n\t\t \twhile (isPaused) {\n\t\t \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t\t \t }\n\t\t \t\n\t\t \t// ClickObserver sets playerClicked, then unpauses. This stores what player is attacking what player\n\t\t \ttoAttacks.put(p.getName(), playerClicked);\n\t \t \t\tClickObserver.getInstance().setPlayerFlag(\"\");\n\t\t \t\n\t \t \t} \n \t\t\t\t}\n \t\t\t\tcombatants.remove(wildThings);\n \t\t\t\tPlayerBoard.getInstance().removeCovers();\n \t\t\t\t\n \t } else { // Only two players fighting\n \t \t\n \t \tfor (Player p1 : combatants) {\n \t \t\tfor (Player p2 : combatants) {\n \t \t\t\tif (!p1.getName().equals(p2.getName())) {\n \t \t \ttoAttacks.put(p1.getName(), p2);\n \t \t\t\t}\n \t \t\t}\n \t \t}\n \t }\n \t\t\t\n ///////////////////Call out bluffs here:\n \t\t\tbattleGround.flipPiecesUp();\n \t\t\tfor (final Player p : combatants) {\n \t\t\t\t\n \t\t\t\t// Make sure not wildThings\n \t\t\t\tif (!p.isWildThing()) {\n \t\t\t\t\t\n \t\t\t\t\tArrayList <Piece> callOuts = new ArrayList<Piece>();\n \t\t\t\t\t\n \t\t\t\t\tfor (final Piece ap : attackingPieces.get(p.getName())) {\n \t\t\t\t\t\t\n \t\t\t\t\t\t// If not supported the gtfo\n \t\t\t\t\t\tif (!ap.isSupported()) {\n\n \t\t\t\t\t\t\tcallOuts.add(ap);\n \t\t\t\t\t\t\t((Combatable)ap).inflict();\n \t\t\t\t\t\t\ttry { Thread.sleep(250); } catch( Exception e ){ return; } \n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t \t @Override\n\t \t \t public void run() {\n\t \t \t \tInfoPanel.showTileInfo(battleGround);\n\t \t \t \tGUI.getHelpText().setText(\"Attack phase: \" + p.getName()\n\t\t\t \t + \" lost their \" + ap.getName() + \" in a called bluff!\");\n\t \t \t }\n\t \t\t\t});\n \t\t\t\t\t\t\ttry { Thread.sleep(250); } catch( Exception e ){ return; } \n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tfor (Piece co : callOuts) {\n \t\t\t\t\t\tattackingPieces.get(p.getName()).remove(co);\n \t\t\t\t\t}\n\t\t\t\t\t\tif (attackingPieces.get(p.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(p.getName());\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tPlayer baby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\t// Set up this HashMap that will store successful attacking pieces\n \t\t\tHashMap<String, ArrayList<Piece>> successAttacks = new HashMap<String, ArrayList<Piece>>();\n \t\t\t// Set up this HashMap that will store piece marked to get damage inflicted\n\t\t\t\tHashMap<String, ArrayList<Piece>> toInflict = new HashMap<String, ArrayList<Piece>>();\n \t\t\tfor (Player p : combatants) {\n \t\t\t\t\n \t\t\t\tsuccessAttacks.put(p.getName(), new ArrayList<Piece>());\n \t\t\t\ttoInflict.put(p.getName(), new ArrayList<Piece>());\n \t\t\t}\n \t\t\t\n \t\t\t// Array List of pieces that need to be used during a particular phase\n\t\t\t\tfinal ArrayList<Piece> phaseThings = new ArrayList<Piece>();\n\t\t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Magic!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n/////////////////////// Magic phase\n \t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its magic. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && ((Combatable)p).isMagic() && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover magic pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece mag : phaseThings) \n\t \t\t\t\t\tmag.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n\n\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\t\t\tSystem.out.println(\"attackingPieces.size(): \" + attackingPieces.size());\n\t\t\t\t\tSystem.out.println(\"attackingPieces.keySet(): \" + attackingPieces.keySet());\n\t\t\t\t\tIterator<String> keySetIte = battleGround.getContents().keySet().iterator();\n \t \twhile(keySetIte.hasNext()) {\n \t \t\tString key = keySetIte.next();\n\n \t\t\t\t\tSystem.out.println(\"key: \" + key);\n \t\t\t\t\tSystem.out.println(\"attackingPieces.get(key).size():\\n\" + attackingPieces.get(key).size());\n \t\t\t\t\tSystem.out.println(\"attackingPieces.get(key):\\n\" + attackingPieces.get(key));\n \t \t}\n\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more magic pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a magic piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a magic piece to attack with\");\n\t \t }\n\t \t });\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tpieceClicked.highLight();\n\t \t \tDiceGUI.getInstance().uncover();\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t \t \t\t\t+ \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\n\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\t\tint attackStrength = -1;\n \t\t\t\t\twhile (attackStrength == -1) {\n \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n \t\t\t\t\t}\n\t\t\t\t\t\t\n \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t \t @Override\n \t \t public void run() {\n \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n \t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n \t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t \t }\n\t \t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName()); // 'defender'\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ti++;\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\t\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Ranged!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n//////////////////// Ranged phase\n\t\t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its ranged. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && ((Combatable)p).isRanged() && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover ranged pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece ran : phaseThings) \n\t \t\t\t\t\tran.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more ranged pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a ranged piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a ranged piece to attack with\");\n\t \t }\n\t \t });\n\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tpieceClicked.highLight();\n\t \t \tDiceGUI.getInstance().uncover();\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t \t + \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\n\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\t\tint attackStrength = -1;\n \t\t\t\t\twhile (attackStrength == -1) {\n \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n \t\t\t\t\t}\n\t\t\t\t\t\t\n \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t \t @Override\n \t \t public void run() {\n \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n \t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n \t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t \t }\n\t \t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName());\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n\t\t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Melee!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n\n///////////////////////////// Melee phase\n\t\t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its melee. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && !(((Combatable)p).isRanged() || ((Combatable)p).isMagic()) && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover melee pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece mel : phaseThings) \n\t \t\t\t\t\tmel.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n \t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more melee pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a melee piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a melee piece to attack with\");\n\t \t }\n\t \t });\n\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// Is it a charging piece?\n\t \t\t\t\tint charger;\n\t \t\t\t\tif (((Combatable)pieceClicked).isCharging()) {\n\t \t\t\t\t\tcharger = 2;\n\t \t\t\t\t} else\n\t \t\t\t\t\tcharger = 1;\n\t \t\t\t\t\n\t \t\t\t\t// do twice if piece is a charger\n\t \t\t\t\tfor (int i = 0; i < charger; i++) {\n\t \t\t\t\t\t\n\t\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t \tpieceClicked.highLight();\n\t\t \t \tDiceGUI.getInstance().uncover();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t\t \t + \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t\t \t }\n\t \t\t\t\t\t});\n\t \t\t\t\t\t\n\t\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n\t \t\t\t\t\tint attackStrength = -1;\n\t \t\t\t\t\twhile (attackStrength == -1) {\n\t \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n\t \t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n\t \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t \t @Override\n\t \t \t public void run() {\n\t \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n\t \t \t\t\t\t\t\tpieceClicked.cover();\n\t \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n\t \t \t }\n\t \t\t\t\t\t});\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t\t \t\t\t\t\t\tpieceClicked.cover();\n\t \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t\t \t }\n\t\t \t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \t\t\t\t\t// If piece is charging, and it is its first attack, remove the cover again\n\t \t\t\t\t\tif (((Combatable)pieceClicked).isCharging() && i == 0) {\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t \t \tpieceClicked.uncover();\n\t\t\t \t }\n\t \t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t\t\n\t \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n\t \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n\t \t\t\t\t}\n\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName());\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n \t\t\t\t\t\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n \t\t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n\t\t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Retreat!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n \t\t\t\n \t\t\t\n//////////////////////// Retreat phase\n\t\t\t\t// Can only retreat to a Terrain that has been explored and has no ememies on it\n\t\t\t\t\n\t\t\t\t// Display message, activate done button\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tGUI.getHelpText().setText(\"Attack phase: Retreat some of your armies?\");\n\t\t GUI.getDoneButton().setDisable(false);\n\t }\n\t }); \t\t\t\t\n\t\t\t\t\n\t\t\t\t// For each combatant, ask if they would like to retreat\n\t\t for (Player pl : combatants) {\n\t\t \t\n\t\t \t// Make sure wildThings aren't trying to get away\n\t\t \tif (!pl.isWildThing()) {\n\t\t\t \tplayer = pl;\n\t \t InfoPanel.uncover(player.getName());\n\t\t\t\t ClickObserver.getInstance().setActivePlayer(player);\n\t\t\t\t ClickObserver.getInstance().setCreatureFlag(\"Combat: SelectRetreaters\");\n\t\t\t\t \n\t\t\t\t // Pause and wait for player to hit done button\n\t\t\t\t pause();\n\t\t\t Platform.runLater(new Runnable() {\n\t\t\t @Override\n\t\t\t public void run() {\n\t\t\t \tbattleGround.coverPieces();\n\t\t\t \tbattleGround.uncoverPieces(player.getName());\n\t\t\t \tbattleGround.coverFort();\n\t\t\t \t GUI.getHelpText().setText(\"Attack Phase: \" + player.getName() + \", You can retreat your armies\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t while (isPaused && battleGround.getContents(player.getName()) != null) {\n\t\t\t \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t\t\t\t }\t \n\t\t\t\t ClickObserver.getInstance().setTerrainFlag(\"Disabled\");\n\t\t\t\t \n\t\t\t\t // TODO, maybe an if block here asking user if they would like to attack \n\t\t\t\t System.out.println(attackingPieces + \"---BEFORE CLEARING\");\n\t\t\t\t // Re-populate attackingPieces to check for changes\n\t\t\t\t attackingPieces.clear();\n\t\t\t\t Iterator<String> keySetIterator2 = battleGround.getContents().keySet().iterator();\n\t\t\t\t \twhile(keySetIterator2.hasNext()) {\n\t\t\t\t \t\tString key = keySetIterator2.next();\n System.out.println(key + \"=====key\");\n\t\t\t \t\t\tattackingPieces.put(battleGround.getContents().get(key).getOwner().getName(), (ArrayList<Piece>) battleGround.getContents().get(key).getStack().clone()); \n\t\t\t\t \t}\n // System.out.println(attackingPieces);\n\t\t\t\t \t// if the owner of the terrain has no pieces, just a fort or city/village\n System.out.println(\"===battleground\"+battleGround);\n System.out.println(\"===attackingPieces\"+attackingPieces);\n System.out.println(combatants.contains(battleGround.getOwner()) ? \"TRUE\" : \"FALSE\");\n\t\t\t\t\t\tif (combatants.contains(battleGround.getOwner()) && battleFort != null) {\n System.out.println(battleGround + \"===battleground\");\n\t\t\t\t\t\t\tattackingPieces.put(battleGround.getOwner().getName(), new ArrayList<Piece>());\n System.out.println(attackingPieces + \"===attacking pieces\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (battleFort != null) {\n System.out.println(battleFort.getName() + \"===battlefort\");\n System.out.println(battleFort.getOwner().getName() + \"===battlefort's owner\");\n \n\t\t\t\t\t\t\tattackingPieces.get(battleFort.getOwner().getName()).add(battleFort);\n System.out.println(attackingPieces.get(battleFort.getOwner().getName()));\n\t\t\t\t\t\t}\n\t//\t\t\t\t\tif (battleGround city/village)\n\t\t\t\t\t\t// TODO city/village\n\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t // Check if all the players pieces are now gone\n\t\t\t\t if (!attackingPieces.containsKey(player.getName())) {\n\t\t\t\t \t\n\t\t\t\t \t// Display message, and remove player from combatants\n\t\t\t\t \tPlatform.runLater(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run() {\n\t\t\t\t \t GUI.getHelpText().setText(\"Attack Phase: \" + player.getName() + \" has retreated all of their pieces!\");\n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t \t\n\t\t\t\t \t// If there is only 1 player fighting for the hex, \n\t\t\t\t \tif (attackingPieces.size() == 1) \n\t\t\t\t \t\tbreak;\n\t\t\t\t \t\n\t\t\t\t \t// Pause because somebody just retreated\n\t\t\t\t \ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t }\n\t\t\t\t \n\n\t \t InfoPanel.cover(player.getName());\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t // Done button no longer needed\n\t\t Platform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t GUI.getDoneButton().setDisable(true);\n\t\t }\n\t\t });\n\t\t ClickObserver.getInstance().setCreatureFlag(\"\");\n\t\t ClickObserver.getInstance().setFortFlag(\"\");\n\t\t \n\t\t // Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\n\t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n\t\t\t\t\n\t\t\t\t// Add wildthings back to combatants if they were removed\n\t\t\t\tif (battleGround.getContents().containsKey(wildThings.getName()) && !combatants.contains(wildThings))\n\t\t\t\t\tcombatants.add(wildThings);\n\t\t\t\t\n \t\t} // end while (combatants.size() > 1 || exploring)\n \t\tbattleGround.coverFort();\n \t\t\n////////////////// Post Combat\n \t\t\n \t\t// sets player as the winner of the combat\n \t\t// Can be null if battle takes place on a hex owned by nobody, and each player lost all pieces\n \t\tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \tbattleGround.removeBattleHex();\n }\n \t\t});\n \t\t\n \t\tif (combatants.size() == 0)\n \t\t\tplayer = battleGround.getOwner();\n \t\telse if (combatants.size() == 1 && combatants.get(0).getName().equals(wildThings.getName()))\n \t\t\tplayer = null;\n \t\telse\n \t\t\tplayer = combatants.get(0);\n \t\t\n \t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n \t\tSystem.out.println(\"combatants: \" + combatants);\n \t\tfor (Player p : combatants) {\n \t\tSystem.out.println(\"p.getName(): \"+ p.getName());\n \t\t\t\n \t\t}\n \t\tSystem.out.println(\"owner: \" + owner);\n \t\tSystem.out.println(\"combatants.get(0): \" + combatants.get(0));\n \t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n \t\t\n \t\t\n \t\t// Change ownership of hex to winner\n \t\tboolean ownerChanged = false;\n \t\tif (owner != null && combatants.size() > 0 && !battleGround.getOwner().equals(combatants.get(0))) {\n \t\t\tbattleGround.getOwner().removeHex(battleGround);\n \t\t\tcombatants.get(0).addHexOwned(battleGround);\n \t\t\townerChanged = true;\n \t\t}\n\t\t\t\n \t\t// See if fort is kept or downgraded.\n \t\tif (battleFort != null) {\n if (battleFort.getName().equals(\"Citadel\")) {\n owner.setCitadel(false);\n player.setCitadel(true);\n battleFort.healFort();\n player.addHexOwned(battleGround);\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", you get to keep the fort!\");\n }\n });\n checkWinners();\n return;\n }\n \t\t\n\t\t\t\t// Get player to click dice to see if fort is kept\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", roll the die to see if the fort is kept or downgraded\");\n\t \tDiceGUI.getInstance().uncover();\n\t \tInfoPanel.showTileInfo(battleGround);\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n\t\t\t\tint oneOrSixGood = -1;\n\t\t\t\twhile (oneOrSixGood == -1) {\n\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t\t\t\t\toneOrSixGood = Dice.getFinalVal();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if a 1 or 6, keep fort (Keep it.... not turn it into a keep)\n\t\t\t\tif (oneOrSixGood == 1 || oneOrSixGood == 6) {\n\t\t\t\t\tbattleFort.healFort();\n\t\t\t\t\tplayer.addHexOwned(battleGround);\n\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", you get to keep the fort!\");\n\t\t }\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tbattleFort.downgrade();Platform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", the fort was destroyed!\");\n\t\t }\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tInfoPanel.showTileInfo(battleGround);\n\t }\n\t });\n\t\t\t\t\n\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n\t\t\t\t\n\t\t\t\t\n \t\t}\n\n \t\tbattleGround.flipPiecesDown();\n\t\t\t// TODO city/village and special incomes if they are kept or lost/damaged \n \t\t\n \t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t}/// end Post combat\n\n \tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n//\t\t\t\tInfoPanel.showBattleStats();\n \tBoard.removeCovers();\n }\n\t\t});\n \t\n\t\tClickObserver.getInstance().setTerrainFlag(\"\");\n\t\tClickObserver.getInstance().setPlayerFlag(\"\");\n\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\tbattleGrounds.clear();\n }", "boolean step()\n {\n int width, height, x, y;\n\n // Check if food found.\n if (agar.foodCells[headSegment.x][headSegment.y] <= Agar.FOOD_CONSUMPTION_RANGE)\n {\n foundFood = true;\n }\n if (foundFood)\n {\n return(true);\n }\n\n // Step simulation?\n if (driver == DRIVER_TYPE.WORMSIM.getValue())\n {\n double dorsal = 1.0;\n double ventral = 1.0;\n switch (agar.currentFood)\n {\n case Agar.RED_FOOD:\n dorsal = 1.5;\n break;\n\n case Agar.GREEN_FOOD:\n dorsal = 1.08;\n break;\n\n case Agar.BLUE_FOOD:\n ventral = 1.06;\n break;\n }\n if (DORSAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE != -1.0)\n {\n dorsal = DORSAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE;\n }\n if (VENTRAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE != -1.0)\n {\n ventral = VENTRAL_SMB_MUSCLE_AMPLIFIER_OVERRIDE;\n }\n Wormsim.overrideSMBmuscleAmplifiers(dorsal, ventral);\n synchronized (wormsimLock)\n {\n Wormsim.step(0.0);\n }\n getSegmentSimPositions();\n }\n\n // Cycle segments.\n width = Agar.GRID_SIZE.width;\n height = Agar.GRID_SIZE.height;\n for (int i = 0; i <= NUM_BODY_SEGMENTS; i++)\n {\n Segment segment;\n if (i == 0)\n {\n segment = headSegment;\n }\n else\n {\n segment = bodySegments[i - 1];\n }\n\n int nx, ny, sx, sy, wx, wy, ex, ey;\n x = segment.x;\n y = segment.y;\n nx = x;\n ny = ((y + 1) % height);\n wx = x - 1;\n if (wx < 0) { wx += width; }\n wy = y;\n ex = ((x + 1) % width);\n ey = y;\n sx = x;\n sy = y - 1;\n if (sy < 0) { sy += height; }\n\n // Head segment?\n if (i == 0)\n {\n // Initialize sensors.\n int[] sensors = new int[headSegment.NUM_SENSORS];\n float dist = agar.foodCells[headSegment.x][headSegment.y];\n float d = 0.0f;\n int dir = CENTER;\n for (int j = 0; j < NUM_DIRECTIONS; j++)\n {\n switch (j)\n {\n case NORTHWEST:\n d = agar.foodCells[wx][ny];\n break;\n\n case NORTH:\n d = agar.foodCells[nx][ny];\n break;\n\n case NORTHEAST:\n d = agar.foodCells[ex][ny];\n break;\n\n case WEST:\n d = agar.foodCells[wx][wy];\n break;\n\n case CENTER:\n d = agar.foodCells[headSegment.x][headSegment.y];\n break;\n\n case EAST:\n d = agar.foodCells[ex][ey];\n break;\n\n case SOUTHWEST:\n d = agar.foodCells[wx][sy];\n break;\n\n case SOUTH:\n d = agar.foodCells[sx][sy];\n break;\n\n case SOUTHEAST:\n d = agar.foodCells[ex][sy];\n break;\n }\n if (d < dist)\n {\n dist = d;\n dir = j;\n }\n }\n sensors[0] = dir;\n sensors[1] = headSegment.response;\n\n // Cycle segment.\n headSegment.cycle(sensors);\n }\n else\n {\n // Cycle body segment.\n BodySegment bodySegment = bodySegments[i - 1];\n int[] sensors = new int[bodySegment.NUM_SENSORS];\n Segment priorSegment;\n if (i == 1)\n {\n priorSegment = headSegment;\n }\n else\n {\n priorSegment = bodySegments[i - 2];\n }\n x = priorSegment.x;\n y = priorSegment.y;\n int dir = -1;\n for (int j = 0; j < NUM_DIRECTIONS && dir == -1; j++)\n {\n switch (j)\n {\n case NORTHWEST:\n if ((x == wx) && (y == ny)) { dir = NORTHWEST; }\n break;\n\n case NORTH:\n if ((x == nx) && (y == ny)) { dir = NORTH; }\n break;\n\n case NORTHEAST:\n if ((x == ex) && (y == ny)) { dir = NORTHEAST; }\n break;\n\n case WEST:\n if ((x == wx) && (y == wy)) { dir = WEST; }\n break;\n\n case EAST:\n if ((x == ex) && (y == ey)) { dir = EAST; }\n break;\n\n case SOUTHWEST:\n if ((x == wx) && (y == sy)) { dir = SOUTHWEST; }\n break;\n\n case SOUTH:\n if ((x == sx) && (y == sy)) { dir = SOUTH; }\n break;\n\n case SOUTHEAST:\n if ((x == ex) && (y == sy)) { dir = SOUTHEAST; }\n break;\n }\n }\n if (dir == -1) { dir = CENTER; }\n sensors[0] = dir;\n sensors[1] = priorSegment.response;\n sensors[2] = bodySegment.response;\n bodySegment.cycle(sensors);\n\n // Mirror prior segment to avoid worm disintegration.\n if ((Math.abs(priorSegment.x2 - bodySegment.x2) > 1) ||\n (Math.abs(priorSegment.y2 - bodySegment.y2) > 1))\n {\n bodySegment.response = priorSegment.response;\n bodySegment.projectResponsePosition();\n }\n }\n }\n eventTime++;\n\n // Execute responses.\n for (int i = 0; i <= NUM_BODY_SEGMENTS; i++)\n {\n Segment segment;\n if (i == 0)\n {\n segment = headSegment;\n }\n else\n {\n segment = bodySegments[i - 1];\n }\n segment.setProjectedPosition();\n }\n placeWormOnAgar();\n return(false);\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "@Override\n\tpublic void doTimeStep() {\n\t\tint activity = Critter.getRandomInt(3);\n\t\tif(activity == 0) {\n\t\t\twalk(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(activity == 1) {\t\t\t\t\n\t\t\trun(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(this.getEnergy() >= Params.min_reproduce_energy) {\n\t\t\tCritter4 egg = new Critter4();\n\t\t\tthis.reproduce(egg,Critter.getRandomInt(8));\n\t\t}\n\t\telse {\n\t\t}\n\t}", "public MyPacMan optimise(List<double[]> dimensionList){\n for(int i = 0; i < POPULATION_SIZE; i++){\r\n MyPacMan individual = new MyPacMan(dimensionList);\r\n population.add(individual);\r\n \r\n } \r\n \r\n // try more than one iteration \r\n for(int iterationCount = 0; iterationCount < ITERATION_NO; iterationCount++){\r\n \r\n System.out.println(\"Iterazione n°: \" + Integer.toString(iterationCount));\r\n \r\n if(iterationCount%10 == 0 || iterationCount == ITERATION_NO-1){\r\n try {\r\n pw = new PrintWriter(new File(\"data/popoluation_\" + Integer.toString(iterationCount) +\".csv\"));\r\n } catch (FileNotFoundException ex) {\r\n \r\n } \r\n \r\n \r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n pw.write(\"v\" + Integer.toString(n));\r\n pw.write(\",\");\r\n }\r\n \r\n pw.write(\"fValue\");\r\n\r\n pw.write(\"\\n\");\r\n \r\n for (MyPacMan individual : population) {\r\n pw.write(individual.toString());\r\n pw.write(\",\");\r\n pw.write(Double.toString(fitFunction(individual)));\r\n pw.write(\"\\n\");\r\n }\r\n \r\n pw.flush();\r\n }\r\n \r\n int loop = 0;\r\n \r\n // main loop for evolution\r\n while(loop < population.size()){ \r\n\r\n MyPacMan original = null;\r\n MyPacMan candidate = null;\r\n boolean boundsHappy;\r\n\r\n do{\r\n boundsHappy = true;\r\n // pick an agent from the the population\r\n int x = loop;\r\n int a,b,c = -1;\r\n\r\n // pick three random agents from the population\r\n // make sure that they are not identical to selected agent from\r\n // the population \r\n\r\n do{\r\n a = random.nextInt(population.size());\r\n }while(x == a);\r\n do{\r\n b = random.nextInt(population.size());\r\n }while(b==x || b==a);\r\n do{\r\n c = random.nextInt(population.size());\r\n }while(c == x || c == a || c == b);\r\n\r\n // create three agent individuals\r\n MyPacMan individual1 = population.get(a);\r\n MyPacMan individual2 = population.get(b);\r\n MyPacMan individual3 = population.get(c);\r\n\r\n // create a noisy random candidate\r\n MyPacMan noisyRandomCandicate = new MyPacMan(dimensionList);\r\n\r\n // mutation process\r\n // if an element of the trial parameter vector is\r\n // found to violate the bounds after mutation and crossover, it is reset in such a way that the bounds\r\n // are respected (with the specific protocol depending on the implementation)\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n noisyRandomCandicate.dataValue[n] = (individual1.dataValue[n] + DIFFERENTIAL_WEIGHT * (individual2.dataValue[n] - individual3.dataValue[n])); \r\n } \r\n\r\n // Create a trial candicate \r\n original = population.get(x);\r\n candidate = new MyPacMan(dimensionList);\r\n\r\n // copy values from original agent to the candidate agent\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n candidate.dataValue[n] = original.dataValue[n];\r\n } \r\n\r\n // crossver process with the selected individual\r\n // pick a random dimension, which defintely takes the value from the noisy random candidate\r\n int R = random.nextInt(dimensionList.size());\r\n\r\n for(int n = 0; n < dimensionList.size(); n++){\r\n\r\n double crossoverProbability = random.nextDouble();\r\n\r\n if(crossoverProbability < CROSSOVER_PROBABILITY || n == R){\r\n candidate.dataValue[n] = noisyRandomCandicate.dataValue[n];\r\n }\r\n\r\n }\r\n\r\n // check here if the trial candiate satisfies bounds for each value\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n if(candidate.dataValue[n] < dimensionList.get(n)[0] || candidate.dataValue[n] > dimensionList.get(n)[1]){\r\n boundsHappy = false;\r\n }\r\n }\r\n\r\n }while(boundsHappy == false);\r\n\r\n //see if the candidate is better than original, if so replace it\r\n if(fitFunction(original) < fitFunction(candidate)){\r\n population.remove(original);\r\n population.add(candidate); \r\n }\r\n loop++;\r\n } \r\n }\r\n \r\n MyPacMan bestFitness = new MyPacMan(dimensionList);\r\n \r\n // selecting the final best agent from the the population\r\n for(int i = 0; i < population.size(); i++){\r\n MyPacMan individual = population.get(i);\r\n \r\n if(fitFunction(bestFitness) < fitFunction(individual)){\r\n \r\n try {\r\n bestFitness = (MyPacMan) individual.clone();\r\n } catch (CloneNotSupportedException ex) {\r\n \r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Fitness migliore: \" + fitFunction(bestFitness));\r\n return bestFitness;\r\n }", "public void think_blocking()\r\n/* 37: */ {\r\n/* 38: 33 */ Scanner in = new Scanner(System.in);\r\n/* 39: */ Object localObject;\r\n/* 40:143 */ for (;; ((Iterator)localObject).hasNext())\r\n/* 41: */ {\r\n/* 42: 38 */ System.out.print(\"Next action ([move|land|attk] id; list; exit): \");\r\n/* 43: */ \r\n/* 44: 40 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 45: */ \r\n/* 46: 42 */ System.out.print(\"Processing command... \");\r\n/* 47: 43 */ System.out.flush();\r\n/* 48: */ \r\n/* 49: 45 */ this.game.updateSimFrame();\r\n/* 50: */ \r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: 52 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 57: 53 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 58: 54 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 59: */ \r\n/* 60: 56 */ List<Command> coms = new ArrayList();\r\n/* 61: */ try\r\n/* 62: */ {\r\n/* 63: 59 */ boolean recognized = true;\r\n/* 64: 60 */ switch ((localObject = cmd[0]).hashCode())\r\n/* 65: */ {\r\n/* 66: */ case 3004906: \r\n/* 67: 60 */ if (((String)localObject).equals(\"attk\")) {}\r\n/* 68: */ break;\r\n/* 69: */ case 3127582: \r\n/* 70: 60 */ if (((String)localObject).equals(\"exit\")) {\r\n/* 71: */ break label914;\r\n/* 72: */ }\r\n/* 73: */ break;\r\n/* 74: */ case 3314155: \r\n/* 75: 60 */ if (((String)localObject).equals(\"land\")) {\r\n/* 76: */ break;\r\n/* 77: */ }\r\n/* 78: */ break;\r\n/* 79: */ case 3322014: \r\n/* 80: 60 */ if (((String)localObject).equals(\"list\")) {}\r\n/* 81: */ case 3357649: \r\n/* 82: 60 */ if ((goto 793) && (((String)localObject).equals(\"move\")))\r\n/* 83: */ {\r\n/* 84: 64 */ if (cmd.length != 2) {\r\n/* 85: */ break label804;\r\n/* 86: */ }\r\n/* 87: 66 */ int id = Integer.parseInt(cmd[1]);\r\n/* 88: 67 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 89: 68 */ Coord.View c = null;\r\n/* 90: 70 */ if (b == null)\r\n/* 91: */ {\r\n/* 92: 71 */ if (this.game.getCountry().id() != id)\r\n/* 93: */ {\r\n/* 94: 73 */ System.err.println(\"This id isn't corresponding neither to a base nor your country\");\r\n/* 95: */ break label804;\r\n/* 96: */ }\r\n/* 97: 77 */ c = this.game.getCountry().position();\r\n/* 98: */ }\r\n/* 99: */ else\r\n/* 100: */ {\r\n/* 101: 79 */ c = b.position();\r\n/* 102: */ }\r\n/* 103: 81 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 104: 82 */ coms.add(new MoveCommand(p, c));\r\n/* 105: */ }\r\n/* 106: */ break label804;\r\n/* 107: 87 */ int id = Integer.parseInt(cmd[1]);\r\n/* 108: 88 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(id));\r\n/* 109: 89 */ AbstractBase.View c = null;\r\n/* 110: 91 */ if (b == null)\r\n/* 111: */ {\r\n/* 112: 92 */ if (this.game.getCountry().id() != id)\r\n/* 113: */ {\r\n/* 114: 94 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 115: */ break label804;\r\n/* 116: */ }\r\n/* 117: 98 */ c = this.game.getCountry();\r\n/* 118: */ }\r\n/* 119: */ else\r\n/* 120: */ {\r\n/* 121:100 */ c = b;\r\n/* 122: */ }\r\n/* 123:102 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 124:103 */ coms.add(new LandCommand(p, c));\r\n/* 125: */ }\r\n/* 126: */ break label804;\r\n/* 127:108 */ Plane.BasicView ep = (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 128:109 */ if (ep == null)\r\n/* 129: */ {\r\n/* 130:111 */ System.err.println(\"Bad id, this plane does not exists\");\r\n/* 131: */ }\r\n/* 132: */ else\r\n/* 133: */ {\r\n/* 134:114 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 135:115 */ coms.add(new AttackCommand(p, ep));\r\n/* 136: */ }\r\n/* 137: */ break label804;\r\n/* 138:118 */ System.out.println();\r\n/* 139:119 */ System.out.println(\">> My planes:\");\r\n/* 140:120 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 141:121 */ System.out.println(p);\r\n/* 142: */ }\r\n/* 143:122 */ System.out.println(\">> Ennemy planes:\");\r\n/* 144:123 */ for (Plane.BasicView p : ennemy_planes.valuesView()) {\r\n/* 145:124 */ System.out.println(p);\r\n/* 146: */ }\r\n/* 147:125 */ System.out.println(\">> Visible bases :\");\r\n/* 148:126 */ for (Base.FullView b : this.game.getVisibleBase().valuesView()) {\r\n/* 149:127 */ System.out.println(b);\r\n/* 150: */ }\r\n/* 151:128 */ System.out.println(\">> Your Country\");\r\n/* 152:129 */ System.out.println(this.game.getCountry());\r\n/* 153: */ }\r\n/* 154: */ }\r\n/* 155:130 */ break;\r\n/* 156: */ }\r\n/* 157:132 */ recognized = false;\r\n/* 158:133 */ System.err.println(\"Unrecognized command!\");\r\n/* 159: */ label804:\r\n/* 160:135 */ if (recognized) {\r\n/* 161:136 */ System.out.println(\"Processed\");\r\n/* 162: */ }\r\n/* 163: */ }\r\n/* 164: */ catch (IllegalArgumentException e)\r\n/* 165: */ {\r\n/* 166:139 */ System.out.println(\"Command failed: \" + e);\r\n/* 167:140 */ System.err.println(\"Command failed: \" + e);\r\n/* 168: */ }\r\n/* 169:143 */ localObject = coms.iterator(); continue;Command c = (Command)((Iterator)localObject).next();\r\n/* 170:144 */ this.game.sendCommand(c);\r\n/* 171: */ }\r\n/* 172: */ label914:\r\n/* 173:148 */ in.close();\r\n/* 174:149 */ this.game.quit(0);\r\n/* 175: */ }", "public void simulation(){\n GameInformation gi = this.engine.getGameInformation();\n Point ball = gi.getBallPosition();\n Player playerSelected;\n int xTemp;\n team = gi.getTeam(ball.x , ball.y);\n\n //Attack\n if(team == gi.activeActor){\n selectAttackerPlayer(gi.getPlayerTeam(gi.activeActor));\n doAttackMoove(playerOne.getPosition(), gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectProtectPlayer(gi.getPlayerTeam(gi.activeActor));\n doProtectMoove(playerTwo.getPosition(), playerOne.getPosition() ,gi.cells[(int) playerTwo.getPosition().getX()][(int) playerTwo.getPosition().getY()].playerMoves);\n playerOne = null;\n playerTwo = null;\n this.engine.next();\n }\n else{//Defense\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n selectCloserPlayer(gi.getPlayerTeam(gi.activeActor));\n doDefenseMoove(playerOne.getPosition(), this.engine.getGameInformation().getBallPosition() ,gi.cells[(int) playerOne.getPosition().getX()][(int) playerOne.getPosition().getY()].playerMoves);\n TacklAction tackl = new TacklAction();\n tackl.setSource(playerOne.getPosition());\n VisualArea[] area;\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n\n tackl.setSource(playerTwo.getPosition());\n\n if ( area = tackl.getVisualArea(this.engine.getGameInformation() ) != null ){\n tackl.setDestination(area[0]);\n this.engine.performAction( tackl );\n }\n playerOne = null;\n playerTwo = null;\n }\n }", "@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}", "private boolean getBuildAction(Run<?, ?> run, FilePath workspace) throws IOException, InterruptedException{\n GatlingReportArchiver archiver = new GatlingReportArchiver();\n List<BuildSimulation> simulations = archiver.saveFullReports(run, this.logger, workspace);\n if (simulations.size() == 0){\n return false;\n }\n\n\n List<SimulationReport> simulationReportList = new ArrayList<SimulationReport>();\n Map<String, NodeSimulationData> simulationData;\n\n for (BuildSimulation sim : simulations){\n\n List<SimulationConfig> simConfig = getGatlingSimData(workspace, sim.getSimulationName());\n for (SimulationConfig sc : simConfig){\n this.logger.println(\"[PuppetGatling] - Here are the Gatling Simulation Results for \" + sim.getSimulationName() + \": \" + sc.getSimulationName() + \", \"\n + sc.getNumberInstances() + \", \" + sc.getNumberRepetitions());\n }\n\n FilePath statsJs = new FilePath(sim.getSimulationDirectory(), \"js/stats.js\");\n\n this.logger.println(\"[PuppetGatling] - The stats javascript file is: \" + statsJs);\n\n // new hash with data ready to be calculated\n // This could be where I pass in the appropriate SimulationConfig data structure\n // so it can be added the Map simulationData\n simulationData = getGroupCalculations(statsJs);\n\n SimulationMetrics metrics = new SimulationMetrics(run, logger, workspace, sim.getSimulationName());\n\n SimulationReport simulationReport = generateSimulationReport(new SimulationReport(),\n simulationData, workspace, sim.getSimulationName(), simConfig,\n metrics);\n simulationReportList.add(simulationReport);\n }\n\n PuppetGatlingBuildAction customAction =\n new PuppetGatlingBuildAction(run, simulations, simulationReportList);\n run.addAction(customAction);\n return true;\n }", "@Override\n protected void postSequenceProcessing() {\n htmlReport.addTestVerdict(getVerdict(latestState));\n }", "public void doSimulation(){\n\n File randomNumFile = new File(\"../src/random_nums.txt\");\n\n try (Scanner inFile = new Scanner(randomNumFile)) {\n\n //\n while(!allProcessesDone()){\n\n //each process\n for(int i=0; i< processes.size(); i++){\n\n //processes are numbered starting at 1, although they're indexed starting at 0 within the process array\n process currentProcess = processes.get(i);\n int processNum = currentProcess.getProcessNum();\n\n\n for(int q=0; q<QUANTUM; q++){\n\n if(currentProcess.isFinished()){\n break;\n }\n\n int frameTableIndex = frameTable.checkForHit(processNum, currentProcess.getCurrentPage(pageSize));\n\n if(frameTableIndex != -1){ //hit!\n\n frameTableElement hitFrame = frameTable.getElement(frameTableIndex);\n hitFrame.setLoaded(true);\n hitFrame.setLastTimeReferenced(currentTime);\n\n\n }else{ //miss\n\n currentProcess.setNumPageFaults(currentProcess.getNumPageFaults() + 1);\n\n if(frameTable.isFull()){ //need to evict an element\n totalEvictions++;\n frameTableElement evictedElement = null;\n\n if(replacementType.equalsIgnoreCase(\"random\")){\n evictedElement = findVictimRandom(inFile.nextInt());\n }else{\n evictedElement = evictPage();\n }\n if(evictedElement == null){\n System.out.println(\"ERROR FINDING VICTIM!\");\n }\n\n\n int correspondingProcessNum = evictedElement.getProcessNum();\n int correspondingFrameIndex = evictedElement.getIndexInFrameTable();\n int correspondingProcessIndex = correspondingProcessNum - 1;\n\n //average residency time is said to be the time that the page was evicted minus the time it was loaded\n processes.get(correspondingProcessIndex).setTotalResidencyTime(processes.get(correspondingProcessIndex).getTotalResidencyTime()\n + (currentTime - evictedElement.getTimeLoaded()));\n\n //increment number of evictions\n processes.get(correspondingProcessIndex).setNumEvictions(processes.get(correspondingProcessIndex).getNumEvictions() + 1);\n\n //set new element\n frameTableElement newElement = new frameTableElement(processNum, currentProcess.getCurrentPage(pageSize), currentTime, correspondingFrameIndex, true);\n frameTable.setElement(correspondingFrameIndex, newElement);\n\n }else{\n //place the page in the highest numbered free frame based on lab instructions\n frameTableElement highestFreeFrame = null;\n int freeFrameIndex = -1;\n for(int frame = frameTable.getSize()- 1; frame>=0; frame--){\n if(!frameTable.getElement(frame).isActive()){\n highestFreeFrame = frameTable.getElement(frame);\n freeFrameIndex = frame;\n break;\n }\n }\n if(highestFreeFrame == null || freeFrameIndex == -1){\n System.out.println(\"error finding free frame\");\n }\n frameTableElement newElement = new frameTableElement(processNum, currentProcess.getCurrentPage(pageSize), currentTime, freeFrameIndex, true );\n frameTable.setElement(freeFrameIndex, newElement);\n }\n\n }\n\n //calculate next current reference word for next quantum turn\n processes.get(i).setNextCurrentReferenceWord(inFile, processSize, numReferencesPerProcess);\n\n currentTime++;\n }\n\n\n }\n\n }//end of simulation\n printFinishInfo();\n\n }\n catch (Exception e){\n System.out.println(e);\n }\n\n }", "@Override\r\n public void runSimulation(){\r\n initialize();\r\n initialRun();\r\n initialize(\"square\");\r\n initialRun();\r\n initialize(\"circle\");\r\n initialRun();\r\n initialize(\"crack\");\r\n initialRun(); \r\n initialize(\"cross\");\r\n initialRun();\r\n }", "public void think() {\n\t\t\n\t}", "public void setupSimulation() {\n final Timer timerStatus = new Timer();\n\n TimerTask taskUpdateFood = new TimerTask() {\n @Override\n public void run() {\n terrain.toggleFood();\n }\n };\n timerStatus.schedule(taskUpdateFood, 0, 1000);\n\n startTime = System.currentTimeMillis();\n }", "@Override\n public void run() {\n \n initExplorationBounds();\n \n long timer = System.currentTimeMillis();\n \n // ITERATE THROUGH ALL THE POSSIBLE OBJECT SCOPES\n while (configuration.isIncrementalLoopUnroll() ||\n configuration.getObjectScope() <= configuration.getMaximumObjectScope())\n {\n \n // FOR EACH OBJECT SCOPE ITERATE THROUGH ALL THE LOOP UNROLLS\n // UNTIL NO LOOP EXHAUSTION IS ENCOUNTERED\n {\n FajitaRunner.printStep(\"FAJITA: Decorating Java code for \" +\n configuration.getObjectScope() + \" scope and \" +\n configuration.getLoopUnroll() + \" unroll\");\n runFajitaCodeDecorator();\n \n FajitaRunner.printStep(\"FAJITA: Translating Java -> Alloy\");\n runTaco();\n \n if (configuration.isIncrementalLoopUnroll())\n configuration.setInfiniteScope(true);\n \n if (configuration.isOnlyTranslateToAlloy()) {\n System.out.println(\"Translation to Alloy completed.\"); \n return;\n }\n \n if (configuration.getDiscoveredGoals() == 0) {\n System.out.println(\"No goals found for the chosen test selection criterion.\");\n return;\n }\n \n FajitaRunner.printStep(\"FAJITA: Enumerating Solutions using AlloyCLI\");\n runAlloyCli();\n \n FajitaRunner.printStep(\"Reporting Coverage\");\n FajitaOutputProcessor.newProcessor(configuration).getCoverage();\n \n/// boolean loopExhaustionEncountered = configuration.getCoveredGoals().removeAll(\n/// configuration.getLoopExhaustionIncarnations());\n\n System.out.println((System.currentTimeMillis() - timer) / 1000 + \" s\");\n \n // CHECK STOP CONDITIONS\n if (configuration.getCoveredGoals().size() == configuration.getDiscoveredGoals() ||\n configuration.getCoverageCriteria() == CoverageCriteria.CLASS_COVERAGE ||\n (configuration.getCoverageCriteria() == CoverageCriteria.DUAL_CLASS_BRANCH_COVERAGE &&\n (configuration.getDualClassBranchIteration() == 0 ||\n configuration.getCoveredGoals().size() == configuration.getDualDiscoveredBranches())))\n {\n return;\n }\n \n/// if (!loopExhaustionEncountered) break;\n }\n \n if (!configuration.isInfiniteScope()) {\n System.out.println(\"Finite scope exhausted.\");\n break;\n }\n \n configuration.setObjectScope(configuration.getObjectScope() + 1);\n configuration.setLoopUnroll(configuration.getObjectScope() / 2); \n }\n }", "@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }", "@Override\r\n public void doEdit ()\r\n throws DoEditException\r\n {\n List<StringWithProperties> criteria = probNet.getDecisionCriteria ();\r\n StringWithProperties criterion = null;\r\n switch (stateAction)\r\n {\r\n case ADD :\r\n if (criteria == null)\r\n {\r\n // agents = new StringsWithProperties();\r\n criteria = new ArrayList<StringWithProperties> ();\r\n }\r\n criterion = new StringWithProperties (criterionName);\r\n // agents.put(agentName);\r\n criteria.add (criterion);\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case REMOVE :\r\n for (StringWithProperties criterio : criteria)\r\n {\r\n if (criterio.getString ().equals (criterionName))\r\n {\r\n criterion = criterio;\r\n }\r\n }\r\n criteria.remove (criterion);\r\n // TODO assign criteria to node\r\n // it is also necessary to delete this criteria from the node it\r\n // was assigned to\r\n /*\r\n * if (criteria != null) { for (ProbNode node :\r\n * probNet.getProbNodes()) { if\r\n * (node.getVariable().getDecisionCriteria\r\n * ().getString().equals(criteriaName)) {\r\n * node.getVariable().setDecisionCriteria(null); } } }\r\n */\r\n if (criteria.size () == 0)\r\n {\r\n criteria = null;\r\n }\r\n probNet.setDecisionCriteria2 (criteria);\r\n break;\r\n case DOWN :\r\n // StringsWithProperties newAgentsDown = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasDown = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsDown.put((String)dataTable[i][0]);\r\n newCriteriasDown.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasDown);\r\n break;\r\n case UP :\r\n // StringsWithProperties newAgentsUp = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasUp = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsUp.put((String)dataTable[i][0]);\r\n newCriteriasUp.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasUp);\r\n break;\r\n case RENAME :\r\n // agents.rename(agentName, newName);\r\n // StringsWithProperties newAgentsRename = new\r\n // StringsWithProperties();\r\n ArrayList<StringWithProperties> newCriteriasRename = new ArrayList<StringWithProperties> ();\r\n for (int i = 0; i < dataTable.length; i++)\r\n {\r\n // newAgentsRename.put((String)dataTable[i][0]);\r\n newCriteriasRename.add (new StringWithProperties ((String) dataTable[i][0]));\r\n }\r\n probNet.setDecisionCriteria2 (newCriteriasRename);\r\n break;\r\n }\r\n }", "@Override\r\n\tpublic void onThink() {\n\t\tint random = (shotsFired + 1) % 3 - 1;\r\n\t\tVacuumProjectile projectile = new VacuumProjectile(DAMAGE * this.owner.finalDamageOutputModifier, SPEED, this.owner.direction, Point.add(this.owner.gridLoc, new Point(0, random)), this.owner.teamID);\r\n\t\tthis.getMap().addGameElement(projectile);\r\n\t\tthis.shotsFired++;\r\n\t\tif(this.shotsFired >= NUM_SHOTS) {\r\n\t\t\tthis.finishSpell();\r\n\t\t}\r\n\t}", "protected void setup() {\r\n \t//inizializza gli attributi dell'iniziatore in base ai valori dei parametri\r\n Object[] args = this.getArguments();\r\n \t\tif (args != null)\r\n \t\t{\r\n \t\t\tthis.goodName = (String) args[0];\r\n \t\t\tthis.price = (int) args[1];\r\n \t\t\tthis.reservePrice = (int) args[2];\r\n \t\t\tthis.dif = (int) args[3];\r\n \t\t\tthis.quantity = (int) args[4];\r\n \t\t\tthis.msWait = (int) args[5];\r\n \t\t} \t\t\r\n\r\n manager.registerLanguage(codec);\r\n manager.registerOntology(ontology);\r\n \r\n //inizializza il bene oggetto dell'asta\r\n good = new Good(goodName, price, reservePrice, quantity);\r\n \r\n //cerca ed inserisce nell'ArrayList gli eventuali partecipanti\r\n findBidders(); \r\n \r\n //viene aggiunto l'apposito behaviour\r\n addBehaviour(new BehaviourInitiator(this));\r\n\r\n System.out.println(\"Initiator \" + this.getLocalName() + \" avviato\");\r\n }", "public void run() {\n\t\tAlgorithm[] algorithm; // jMetal algorithms to be executed\n\n\t\tString experimentName = (String) map_.get(\"name\");\n\t\texperimentBaseDirectory_ = (String) map_.get(\"experimentDirectory\");\n\t\talgorithmNameList_ = (String[]) map_.get(\"algorithmNameList\");\n\t\tproblemList_ = (String[]) map_.get(\"problemList\");\n\t\tindicatorList_ = (String[]) map_.get(\"indicatorList\");\n\t\tparetoFrontDirectory_ = (String) map_.get(\"paretoFrontDirectory\");\n\t\tparetoFrontFile_ = (String[]) map_.get(\"paretoFrontFile\");\n\t\tindependentRuns_ = (Integer) map_.get(\"independentRuns\");\n\t\t// algorithm_ = (Algorithm[]) map_.get(\"algorithm\");\n\t\toutputParetoFrontFile_ = (String) map_.get(\"outputParetoFrontFile\");\n\t\toutputParetoSetFile_ = (String) map_.get(\"outputParetoSetFile\");\n\n\t\tinstances_ = (Integer) map_.get(\"instances\"); // number of different\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// instances of the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// problem to run\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Added to allow\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// executing several\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// instances per problem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// class\n\n\t\trunID_ = (Integer) map_.get(\"runID\"); // Identifier to add to the\n\t\t\t\t\t\t\t\t\t\t\t\t// filename with the results\n\t\ttime_ = (TimeEstimation) map_.get(\"timeEstimation\"); // For computing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the run time\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and the run\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// time left\n\n\t\tString timmingFileName_ = (String) map_.get(\"timmingFileName\");\n\n\t\tint instanceCounter = 0; // To keep track of the instance to solve\n\n\t\tint numberOfAlgorithms = algorithmNameList_.length;\n\t\tSystem.out.println(\"Experiment: Number of algorithms: \"\n\t\t\t\t+ numberOfAlgorithms);\n\t\tSystem.out.println(\"Experiment: runs: \" + independentRuns_);\n\t\talgorithm = new Algorithm[numberOfAlgorithms];\n\n\t\tSystem.out.println(\"Name: \" + experimentName);\n\t\tSystem.out.println(\"experimentDirectory: \" + experimentBaseDirectory_);\n\t\tSystem.out.println(\"numberOfThreads_: \" + numberOfThreads_);\n\t\tSystem.out.println(\"numberOfProblems_: \" + numberOfProblems_);\n\t\tSystem.out.println(\"numberOfInstancesPerProblems_: \" + instances_);\n\t\tSystem.out.println(\"first: \" + first_);\n\t\tSystem.out.println(\"last: \" + last_);\n\n\t\tSolutionSet resultFront = null;\n\n\t\tdouble[][] timmings = new double[problemList_.length][numberOfAlgorithms];\n\n\t\tfor (int problemId = first_; problemId <= last_; problemId++) {\n\n\t\t\t// long[] accTime = new\n\t\t\t// long[algorithmNameList_.length*instances_.intValue()];\n\t\t\tfor (int i = 0; i < numberOfAlgorithms; i++)\n\t\t\t\ttimmings[problemId][i] = 0;\n\n\t\t\tfor (int inst = 0; inst < instances_.intValue(); inst++) {\n\t\t\t\tif (instances_ > 1) {\n\t\t\t\t\tObject ob = params_[0];\n\t\t\t\t\tparams_ = new Object[2];\n\t\t\t\t\tparams_[0] = ob;\n\t\t\t\t\tparams_[1] = new Integer(inst);\n\t\t\t\t}\n\n\t\t\t\tProblem problem; // The problem to solve\n\n\t\t\t\tproblem = null;\n\t\t\t\t// STEP 2: get the problem from the list\n\t\t\t\t// Object[] params = { \"Real\" }; // Parameters of the problem\n\t\t\t\ttry {\n\t\t\t\t\t// Parameters of the problem\n\t\t\t\t\tproblem = (new ProblemFactory()).getProblem(\n\t\t\t\t\t\t\tproblemList_[problemId], params_);\n\t\t\t\t} catch (JMException ex) {\n\t\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName()).log(\n\t\t\t\t\t\t\tLevel.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t\t// STEP 3: check the file containing the Pareto front of the\n\t\t\t\t// problem\n\t\t\t\tsynchronized (experiment_) {\n\t\t\t\t\tif (indicatorList_.length > 0) {\n\t\t\t\t\t\tFile pfFile = null;\n\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\tpfFile = new File(paretoFrontDirectory_ + \"/\"\n\t\t\t\t\t\t\t\t\t+ paretoFrontFile_[problemId] + \".\" + inst);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpfFile = new File(paretoFrontDirectory_ + \"/\"\n\t\t\t\t\t\t\t\t\t+ paretoFrontFile_[problemId]);\n\n\t\t\t\t\t\t// pfFile = new File(paretoFrontFile_[problemId]);\n\n\t\t\t\t\t\tif (!pfFile.exists()) {\n\t\t\t\t\t\t\t// if (instances_ > 1)\n\t\t\t\t\t\t\t// paretoFrontFile_[problemId] =\n\t\t\t\t\t\t\t// paretoFrontDirectory_\n\t\t\t\t\t\t\t// + \"/\" + paretoFrontFile_[problemId] + \".\" + inst;\n\t\t\t\t\t\t\t// else\n\t\t\t\t\t\t\t// paretoFrontFile_[problemId] =\n\t\t\t\t\t\t\t// paretoFrontDirectory_\n\t\t\t\t\t\t\t// + \"/\" + paretoFrontFile_[problemId];\n\t\t\t\t\t\t\t// } else {\n\t\t\t\t\t\t\t// CREATE IT!\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpfFile.createNewFile();\n\t\t\t\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\t\t\t\t// Logger.getLogger(ExperimentNoPareto.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t\t\tLogger.getLogger(\n\t\t\t\t\t\t\t\t\t\tExperimentNoPareto.class.getName())\n\t\t\t\t\t\t\t\t\t\t.log(Level.SEVERE,\n\t\t\t\t\t\t\t\t\t\t\t\t\"Error creating file: \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ paretoFrontFile_[problemId],\n\t\t\t\t\t\t\t\t\t\t\t\tex);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// paretoFrontFile_[problemId] = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} // if\n\t\t\t\t}\n\t\t\t\texperiment_.algorithmSettings(problem, problemId, algorithm);\n\n\t\t\t\tfor (int runs = 0; runs < independentRuns_; runs++) {\n\t\t\t\t\tSystem.out.println(\"Iruns: \" + runs);\n\t\t\t\t\t// STEP 4: configure the algorithms\n\n\t\t\t\t\t// STEP 5: run the algorithms\n\t\t\t\t\tfor (int i = 0; i < numberOfAlgorithms; i++) {\n\t\t\t\t\t\tSystem.out.println(algorithm[i].getClass());\n\t\t\t\t\t\t// STEP 6: create output directories\n\t\t\t\t\t\tFile experimentDirectory;\n\t\t\t\t\t\tString directory;\n\n\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\tdirectory = experimentBaseDirectory_ + \"/data/\"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \"/\"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId] + \".\" + inst;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdirectory = experimentBaseDirectory_ + \"/data/\"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \"/\"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId];\n\n\t\t\t\t\t\texperimentDirectory = new File(directory);\n\t\t\t\t\t\tif (!experimentDirectory.exists()) {\n\t\t\t\t\t\t\tboolean result = new File(directory).mkdirs();\n\t\t\t\t\t\t\tSystem.out.println(\"Creating \" + directory);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// STEP 7: run the algorithm\n\t\t\t\t\t\tlong startTime = 0, endTime = 0;\n\n\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\tSystem.out.println(\"Running algorithm: \"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \", problem: \"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId] + \", run: \"\n\t\t\t\t\t\t\t\t\t+ runs + \", instance: \" + inst);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.println(\"Running algorithm: \"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \", problem: \"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId] + \", run: \"\n\t\t\t\t\t\t\t\t\t+ runs);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\t\t\t\tresultFront = algorithm[i].execute();\n\t\t\t\t\t\t\tendTime = System.currentTimeMillis();\n\t\t\t\t\t\t} catch (JMException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t\t\t\t.log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttime_.iteration();\n\t\t\t\t\t\tSystem.out.print(resultFront.size() + \" sols found, \"\n\t\t\t\t\t\t\t\t+ (endTime - startTime) + \" ms. (\"\n\t\t\t\t\t\t\t\t+ time_.getPercentageDone() + \"% done, \");\n\t\t\t\t\t\tSystem.out.println(time_.getRemainingHumanReadable()\n\t\t\t\t\t\t\t\t+ \" remaining)\");\n\t\t\t\t\t\t// accTime_[i] += (endTime-startTime);\n\t\t\t\t\t\ttimmings[problemId][i] += (endTime - startTime);\n\n\t\t\t\t\t\t// STEP 8: put the results in the output directory\n\n\t\t\t\t\t\tif (runID_ == null) {\n\t\t\t\t\t\t\tresultFront.printObjectivesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoFrontFile_ + \".\" + runs);\n\t\t\t\t\t\t\tresultFront.printVariablesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoSetFile_ + \".\" + runs);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresultFront.printObjectivesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoFrontFile_ + \".\"\n\t\t\t\t\t\t\t\t\t+ runID_.intValue());\n\t\t\t\t\t\t\tresultFront.printVariablesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoSetFile_ + \".\"\n\t\t\t\t\t\t\t\t\t+ runID_.intValue());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Print the run time after every execution\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileWriter os = null;\n\t\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\t\tos = new FileWriter(experimentBaseDirectory_\n\t\t\t\t\t\t\t\t\t\t+ \"/data/\" + algorithmNameList_[i]\n\t\t\t\t\t\t\t\t\t\t+ \"/\" + problemList_[problemId] + \".\"\n\t\t\t\t\t\t\t\t\t\t+ inst + \"/\" + timmingFileName_\n\t\t\t\t\t\t\t\t\t\t+ \".AVG\", true);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tos = new FileWriter(experimentBaseDirectory_\n\t\t\t\t\t\t\t\t\t\t+ \"/data/\" + algorithmNameList_[i]\n\t\t\t\t\t\t\t\t\t\t+ \"/\" + problemList_[problemId] + \"/\"\n\t\t\t\t\t\t\t\t\t\t+ timmingFileName_ + \".AVG\", true);\n\n\t\t\t\t\t\t\tos.write(\"\" + (endTime - startTime) + \"\\n\");\n\t\t\t\t\t\t\tos.close();\n\t\t\t\t\t\t\t// timmings[problemId][i]=(accTime[i]/independentRuns_);\n\t\t\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t\t\t\t.log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// // STEP 9: calculate quality indicators\n\t\t\t\t\t\t// if (indicatorList_.length > 0) {\n\t\t\t\t\t\t// QualityIndicator indicators;\n\t\t\t\t\t\t// // System.out.println(\"PF file: \" +\n\t\t\t\t\t\t// // paretoFrontFile_[problemId]);\n\t\t\t\t\t\t// indicators = new QualityIndicator(problem,\n\t\t\t\t\t\t// paretoFrontFile_[problemId]);\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// for (int j = 0; j < indicatorList_.length; j++) {\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"HV\")) {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getHypervolume(resultFront);\n\t\t\t\t\t\t// FileWriter os;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/HV\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"SPREAD\")) {\n\t\t\t\t\t\t// FileWriter os = null;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getSpread(resultFront);\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/SPREAD\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// } finally {\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger.getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"IGD\")) {\n\t\t\t\t\t\t// FileWriter os = null;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getIGD(resultFront);\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/IGD\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// } finally {\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger.getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"EPSILON\")) {\n\t\t\t\t\t\t// FileWriter os = null;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getEpsilon(resultFront);\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/EPSILON\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// } finally {\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger.getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// } // for\n\t\t\t\t\t\t// } // if\n\t\t\t\t\t} // for\n\t\t\t\t} // for\n\t\t\t} // for\n\n\t\t\t// Print the computational time\n\t\t\t// STEP 11: Write The run times in a latex file\n\t\t\ttry {\n\t\t\t\tfor (int i = 0; i < numberOfAlgorithms; ++i) {\n\t\t\t\t\tFileWriter os = new FileWriter(experimentBaseDirectory_\n\t\t\t\t\t\t\t+ \"/data/\" + algorithmNameList_[i] + \"/\"\n\t\t\t\t\t\t\t+ problemList_[problemId] + \".AvgTime\");\n\n\t\t\t\t\t// os.write( \"\" + (accTime[i]/independentRuns_) + \"\\n\" );\n\t\t\t\t\tos.write(\"\"\n\t\t\t\t\t\t\t+ (timmings[problemId][i] / (independentRuns_ * instances_))\n\t\t\t\t\t\t\t+ \"\\n\");\n\t\t\t\t\tos.close();\n\t\t\t\t\t// timmings[problemId][i]=(accTime[i]/independentRuns_);\n\t\t\t\t\ttimmings[problemId][i] = (timmings[problemId][i] / (independentRuns_ * instances_));\n\t\t\t\t} // for\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName()).log(\n\t\t\t\t\t\tLevel.SEVERE, null, ex);\n\t\t\t}\n\n\t\t} // for\n\t}", "public void endSimulation() {\n System.out.println(\"[SIMULATOR] simulazione completata\");\n\n /*\n * Salvo gli stati dei batteri ancora in vita\n */\n Vector<Status> result = new Vector<>();\n for (String nome : nomiBatteri) {\n if (stati.get(nome) == null) {\n Status stato = new Status(nome, false, numeroBatteri.get(nome));\n result.add(stato);\n }\n }\n\n /*\n * Salvo gli stati dei batteri estinti\n */\n Iterator it = stati.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry) it.next();\n result.add((Status) pair.getValue());\n it.remove();\n }\n\n /*\n * Li ordino secondo il criterio stabilito in {@link StatusComparator}\n */\n Collections.sort(result, new StatusComparator());\n try {\n // Cerco di inviare il risultato al server\n ResultSender sender = new ResultSender(pushUrl + \"/utils/saveMatch.php\");\n String serverMessage = sender.send(result);\n\n System.out.println(String.format(\"Server replied with: %s\", serverMessage));\n } catch (IOException e) {\n System.err.println(\"Non e' stato possibile comunicare il risultato\");\n System.err.println(\"Error: \" + e.getMessage());\n }\n }", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "@Test\n public void bestowEnchantmentBecomesCreature() {\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 4);\n addCard(Zone.BATTLEFIELD, playerA, \"Silvercoat Lion\");\n addCard(Zone.HAND, playerA, \"Hopeful Eidolon\");\n\n addCard(Zone.BATTLEFIELD, playerB, \"Mountain\", 1);\n addCard(Zone.HAND, playerB, \"Lightning Bolt\");\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Hopeful Eidolon using bestow\", \"Silvercoat Lion\");\n castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerB, \"Lightning Bolt\", \"Silvercoat Lion\");\n\n setStrictChooseMode(true);\n setStopAt(1, PhaseStep.END_TURN);\n execute();\n\n // because Boon Satyr is no creature on the battlefield, evolve may not trigger\n assertLife(playerA, 20);\n assertLife(playerB, 20);\n\n assertPermanentCount(playerA, \"Silvercoat Lion\", 0);\n assertPermanentCount(playerA, \"Hopeful Eidolon\", 1);\n assertPowerToughness(playerA, \"Hopeful Eidolon\", 1, 1);\n\n Permanent hopefulEidolon = getPermanent(\"Hopeful Eidolon\", playerA);\n Assert.assertTrue(\"Hopeful Eidolon has to be a creature but is not\", hopefulEidolon.isCreature(currentGame));\n Assert.assertTrue(\"Hopeful Eidolon has to be an enchantment but is not\", hopefulEidolon.isEnchantment(currentGame));\n\n }", "public void mine() {\n\t\t\n\t\t/** generate candidate elements **/\n\t\tgce.generateCE();\n\t\t\n\t\t/** generate patterns **/\n\t\tgcp.setCEList(gce.getCEList());\n\t\tgcp.generateCP();\n\t\t\n\t}", "public void startSimulation();", "void EvolutionWithElitism(){\n\t\t \tint i, j, l, k;\n\t\t\t//individual[] temp;\n\t\t\tbyte _flippc=0,_flippm=0;\n//\t\t\tString _temp1=\"\", _temp2=\"\";\n\t\t\tint[] _cp;\n\t\t\tnode[] _nd,_nm;\n\t\t\t// Khoi tao quan the dau tien \n\t\t\tRampedInit(6, 0.5);\n\t\t\t//RampedInitOffLine(6, 0.5,15);\n\t\t\t\n//\t\t\tconstructiveRate = new double[NUMGEN];\n//\t\t\tsemanticDistance = new double[NUMGEN];\n\t\t\t\n\t\t\tgen = 0;\n\t\t\twhile(gen < generation) {\n\t\t\t\t\n\t\t\t\tComputeFitness();\n\t\t\t\t\n//\t\t\t\tint g_ncross = 0;\n//\t\t\t\tdouble g_sd = 0;\n//\t\t\t\tPrintToFile();\n\t//----------------------\n//\t\t\t\tFileInputStream instream = null;\n//\t\t\t\tPrintStream outstream = null;\n//\t\t\t\tPrintStream console = System.out;\n//\t\t\t\ttry {\n//\t\t\t\t\toutstream = new PrintStream(new FileOutputStream(\"c:/result/\" + \"detail_\"+ gen + \".txt\"));\n//\t\t\t\t\tSystem.setOut(outstream);\n//\t\t\t\t} catch(Exception e) {\n//\t\t\t\t\tSystem.err.println(\"Error Occurred.\");\n//\t\t\t\t}\n//\t\t\t\tfor(i = 0; i < poplen; i++) {\n//\t\t\t\t\tSystem.out.printf(\"%3.5f \",oldpop[i].fitness);\n//\t\t\t\t\tif((i+1) % 10 == 0) {\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(oldpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// copy anh tot nhat sang the he sau\t \t\n\t\t\t\tnewpop[0].CopyIndividual(bestcurrent[gen], TRUE);\n\t\t\t\t// dot bien anh thu 2\n\t\t\t \n\t\t\t\tl=1;\t\n\t\t\t\ti = TourSelect(TOURSIZE);\n//\t\t\t\t\n\t\t\t\t\n\t\t\t newpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\tindividual[] m_individual0=new individual[1];\n\t\t\t\tint[] _mt0=new int[1];\n\t\t\t\t_nm=new node[1];\n\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual0, 15, TRUE,_mt0,_nm);\n\t\t\t\tnewpop[l]=new individual();\n\t\t\t\tnewpop[l].CopyIndividual(m_individual0[0], TRUE);\t\t\t\n\t\t\t\tnewpop[l].evaluated=FALSE;\t\t\n//\t\t\t\t\n//\t\t\t\tm_individual0=null;\n\t\t\t\t\n\t//------------------------\t\t\n\t\t\t\tl = 2;\t\t\t\n\t\t\t\twhile(l < poplen) {\n\t\t\t\t//\tSystem.out.println(\"Generation \"+ String.valueOf(gen)+\":\");\n\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\n\t\t\t\t\ti = TourSelect(TOURSIZE);\n\t\t\t\t\tj = TourSelect(TOURSIZE);\n\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t _flippc=Flip(pcross);\n//\t\t\t\t System.out.printf(\"pcross:%d\", _flippc);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippc == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] i_temp=new individual[2];\n\t\t\t\t\t\t_cp=new int[2];\n\t\t\t\t\t\t_nd=new node[2];\n\t\t\t\t//\t\n\t\t\t\t//\t\tif(SubTreeSwapWithTTest(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(SubTreeSwap(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(i_temp[0],TRUE);\n\t\t\t\t\t\t\tnewpop[l+1].CopyIndividual(i_temp[1],TRUE);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tncross++;\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// semantic distance\n//\t\t\t\t\t\t\tg_sd += newpop[l].getSemanticDistance(oldpop[i]);\n//\t\t\t\t\t\t\tg_sd += newpop[l+1].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tg_sd += oldpop[i].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t} \n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// mutation test\n\t\t\t\t\t_flippm=Flip(pmutate);\n//\t\t\t\t\tSystem.out.printf(\"pmutation:%d\", _flippm);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippm == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l]=new individual();\n\t\t\t\t\t\tnewpop[l].CopyIndividual(m_individual[0], TRUE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+l+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Flip(pmutate) == 1) {\n\t\t\t\t\t\tindividual[] m_individual1=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l + 1], m_individual1, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l+1]=new individual();\n\t\t\t\t\t\tnewpop[l+1].CopyIndividual(m_individual1[0], TRUE);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+(l+1)+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual1=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\tl += 2;\n\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(newpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n//\t\t\t\toutstream.close();\n//\t\t\t\tSystem.setOut(console);\n\t\t\t\t// Thống kê tỷ lệ tTest\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t//\t\t\tsemanticDistance[gen] = g_sd / (2.0 * g_ncross);\n//\t\t\t\tsemanticDistance[gen] = g_sd /g_ncross;\n\t\t\t\t\n\t\t\t\tgen++;\n\t\t\t\tfor(k = 0; k < poplen; k++)\n\t\t\t\t{\n\t\t\t\t\toldpop[k]=null;\n\t\t\t\t\toldpop[k]=new individual();\n\t\t\t\t\toldpop[k].CopyIndividual(newpop[k], TRUE);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static void main(String[] args){\n IFlyBehaviour simpleFlyBehaviour = new SimpleFlyBehaviour(); // Horizontal sharing of code which is not possible with inheritance\n IQuackBehaviour simpleQuackBehaviour = new SimpleQuackBehaviour();\n IQuackBehaviour complexQuackBehaviour = new ComplexQuackBehaviour();\n\n // Create instances of the classes with different behaviours\n DuckBehaviourModule simpleDuckBehaviour = new DuckBehaviourModule(simpleFlyBehaviour, simpleQuackBehaviour);\n DuckBehaviourModule complexDuckBehaviour = new DuckBehaviourModule(simpleFlyBehaviour, complexQuackBehaviour);\n\n // Print them to check if they are working fine\n System.out.println(simpleDuckBehaviour.toString());\n System.out.println(\"Prediction :: \\n\");\n simpleDuckBehaviour.duckPrediction();\n\n System.out.println(\"-------------------------------- \\n\");\n\n System.out.println(complexDuckBehaviour.toString());\n System.out.println(\"Prediction :: \\n\");\n complexDuckBehaviour.duckPrediction();\n\n\n }", "protected void runAfterIteration() {}", "@Override\r\n\tprotected void afterStep() {\r\n\t\tif (pr_disappearing_potential > 0) {\r\n\t\t\tfor (V v : graph.getVertices()) {\r\n\t\t\t\tif (v instanceof TopicVertex) {\r\n\t\t\t\t\tsetOutputValue(v, getOutputValue(v) + (1 - alpha)\r\n\t\t\t\t\t\t\t* (pr_disappearing_potential * getVertexPrior(v)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpr_disappearing_potential = 0;\r\n\t\t}\r\n\t\t// not necessary for hits-hub\r\n\t\t// if (disappearing_potential.hub > 0) {\r\n\t\t// for (V v : graph.getVertices()) {\r\n\t\t// if (v instanceof TopicVertex) {\r\n\t\t// double new_hub = getOutputValue(v)\r\n\t\t// + (1 - alpha)\r\n\t\t// * (hitsCoeff * disappearing_potential.hub * getVertexPrior(v));\r\n\t\t// setOutputValue(v, new_hub);\r\n\t\t// } else if (v instanceof TopicCategoryVertex) {\r\n\t\t// // auth and hub of topic category\r\n\t\t// }\r\n\t\t// }\r\n\t\t// disappearing_potential.hub = 0;\r\n\t\t// }\r\n\t\t// if (disappearing_potential.authority > 0) {\r\n\t\t// for (V v : graph.getVertices()) {\r\n\t\t// if (v instanceof TopicCategoryVertex) {\r\n\t\t// double new_auth = getOutputValue(v)\r\n\t\t// + (1 - alpha)\r\n\t\t// * (hitsCoeff * disappearing_potential.authority * getVertexPrior(v));\r\n\t\t// setOutputValue(v, new_auth);\r\n\t\t// }\r\n\t\t// }\r\n\t\t// disappearing_potential.authority = 0;\r\n\t\t// }\r\n\r\n\t\tsuper.afterStep();\r\n\t}", "private void runTest(){\t\t\n\t\t// begin by urueda\n\t\tLogSerialiser.finish(); LogSerialiser.exit();\n\t\tsequenceCount = 1;\n\t\tlastStamp = System.currentTimeMillis();\n\t\tescAttempts = 0; nopAttempts = 0;\n\t\t// end by urueda\t\t\n\t\tboolean problems;\n\t\twhile(mode() != Modes.Quit && moreSequences()){\n\n\t\t\tString generatedSequence = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \"sequence\").getName(); // by urueda\n\t\t\tgeneratedSequenceNumber = new Integer(generatedSequence.replace(\"sequence\", \"\")).intValue();\n\t\t\t// begin by urueda\n\n\t\t\tsutRAMbase = Double.MAX_VALUE; sutRAMpeak = 0.0; sutCPUpeak = 0.0; testRAMpeak = 0.0; testCPUpeak = 0.0;\n\n\t\t\ttry {\n\t\t\t\tLogSerialiser.start(new PrintStream(new BufferedOutputStream(new FileOutputStream(new File(\n\t\t\t\t\tsettings.get(OutputDir) + File.separator + \"logs\" + File.separator + generatedSequence + \".log\")))),\n\t\t\t\t\tsettings.get(LogLevel));\n\t\t\t} catch (NoSuchTagException e3) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te3.printStackTrace();\n\t\t\t} catch (FileNotFoundException e3) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te3.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif (mode() == Modes.GenerateManual)\n\t\t\t\tsetMode(Modes.Spy);\n\t\t\tjipWrapper = new JIPrologWrapper();\n\t\t\t\n\t\t\tGrapher.grapher(generatedSequence,\n\t\t\t\t\t\t\tsettings.get(ConfigTags.SequenceLength).intValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.AlgorithmFormsFilling).booleanValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.TypingTextsForExecutedAction).intValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.TestGenerator),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.MaxReward),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.Discount),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.ExplorationSampleInterval),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.GraphsActivated),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.PrologActivated),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.ForceToSequenceLength) && this.forceToSequenceLengthAfterFail ?\n\t\t\t\t\t\t\t\t\ttrue :\n\t\t\t\t\t\t\t\t\tsettings.get(ConfigTags.GraphResuming),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.OfflineGraphConversion),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.Strategy),\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tjipWrapper);\n\t\t\tGrapher.waitEnvironment();\n\t\t\tScreenshotSerialiser.start(generatedSequence);\n\t\t\t// end by urueda\n\t\t\t\n\t\t\tproblems = false;\n\t\t\tif (!forceToSequenceLengthAfterFail) passSeverity = Verdict.SEVERITY_OK; // by urueda\n\t\t\t//actionCount = 0;\n\t\t\t// begin by urueda\n\t\t\tif (this.forceToSequenceLengthAfterFail){\n\t\t\t\tthis.forceToSequenceLengthAfterFail = false;\n\t\t\t\tthis.testFailTimes++;\n\t\t\t} else{\n\t\t\t\tactionCount = 1;\n\t\t\t\tthis.testFailTimes = 0;\n\t\t\t}\n\t\t\t// end by urueda\n\n\t\t\tLogSerialiser.log(\"Creating new sequence file...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\tfinal File currentSeq = new File(settings.get(ConfigTags.TempDir) + File.separator + \"tmpsequence\");\n\t\t\ttry {\n\t\t\t\tUtil.delete(currentSeq);\n\t\t\t} catch (IOException e2) {\n\t\t\t\tLogSerialiser.log(\"I/O exception deleting <\" + currentSeq + \">\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t}\n\t\t\t//oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(currentSeq), 50000000));\n\t\t\t//raf = new RandomAccessFile(currentSeq, \"rw\");\n\t\t\t//oos = new ObjectOutputStream(new FileOutputStream(raf.getFD()));\n\t\t\t// begin by urueda\n\t\t\ttry {\n\t\t\t\t//TestSerialiser.start(new RandomAccessFile(currentSeq, \"rw\"));\n\t\t\t\tTestSerialiser.start(new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(currentSeq))));\n\t\t\t\tLogSerialiser.log(\"Created new sequence file!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogSerialiser.log(\"I/O exception creating new sequence file\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t}\n\t\t\t//} catch (FileNotFoundException e1) {\n\t\t\t//\tLogSerialiser.log(\"File not found exception creating random test file\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t//}\n\t\t\t// end by urueda\n\n\t\t\tLogSerialiser.log(\"Building canvas...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t//Canvas cv = buildCanvas();\n\t\t\tthis.cv = buildCanvas(); // by urueda\n\t\t\t//logln(Util.dateString(\"dd.MMMMM.yyyy HH:mm:ss\") + \" Starting system...\", LogLevel.Info);\n\t\t\t// begin by urueda\n\t\t\tString startDateString = Util.dateString(DATE_FORMAT);\n\t\t\tLogSerialiser.log(startDateString + \" Starting SUT ...\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t// end by urueda\n\t\t\t\n\t\t\tSUT system = null;\n\t\t\t\n\t\t\ttry{ // by urueda\n\n\t\t\t\tsystem = startSystem();\n\n\t\t\t\tlastCPU = NativeLinker.getCPUsage(system); // by urueda\n\t\t\t\t\n\t\t\t\t//SUT system = WinProcess.fromProcName(\"firefox.exe\");\n\t\t\t\t//logln(\"System is running!\", LogLevel.Debug);\n\t\t\t\tLogSerialiser.log(\"SUT is running!\\n\", LogSerialiser.LogLevel.Debug); // by urueda\n\t\t\t\t//logln(\"Starting sequence \" + sequenceCount, LogLevel.Info);\n\t\t\t\tLogSerialiser.log(\"Starting sequence \" + sequenceCount + \" (output as: \" + generatedSequence + \")\\n\\n\", LogSerialiser.LogLevel.Info); // by urueda\n\t\t\t\tbeginSequence();\n\t\t\t\tLogSerialiser.log(\"Obtaining system state...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tState state = getState(system);\n\t\t\t\tLogSerialiser.log(\"Successfully obtained system state!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tsaveStateSnapshot(state);\n\t\n\t\t\t\tTaggable fragment = new TaggableBase();\n\t\t\t\tfragment.set(SystemState, state);\n\t\t\t\t\t\t\t\n\t\t\t\tVerdict verdict = state.get(OracleVerdict, Verdict.OK);\n\t\t\t\tif (faultySequence) problems = true;\n\t\t\t\tfragment.set(OracleVerdict, verdict); // by urueda\t\t\t\t\t\n\t\t\t\tint waitCycleIdx = 0;\n\t\t\t\tlong[] waitCycles = new long[]{1, 10, 25, 50}; // ms\n\t\t\t\tlong spyCycle = -1;\n\t\t\t\tString stateID, lastStateID = state.get(Tags.ConcreteID);\n\t\t\t\t// end by urueda\n\t\t\t\twhile(mode() != Modes.Quit && moreActions(state)){\n\t\t\t\t\tif (problems)\n\t\t\t\t\t\tfaultySequence = true; // by urueda\n\t\t\t\t\telse{\n\t\t\t\t\t\tproblems = runAction(cv,system,state,fragment);\n\t\t\t\t\t\t// begin by urueda\n\t\t\t\t\t\tif (mode() == Modes.Spy){\n\t\t\t\t\t\t\tstateID = state.get(Tags.ConcreteID);\n\t\t\t\t\t\t\tif (stateID.equals(lastStateID)){\n\t\t\t\t\t\t\t\tif (System.currentTimeMillis() - spyCycle > waitCycles[waitCycleIdx]){\n\t\t\t\t\t\t\t\t\tspyCycle = System.currentTimeMillis();\n\t\t\t\t\t\t\t\t\tif (waitCycleIdx < waitCycles.length - 1)\n\t\t\t\t\t\t\t\t\t\twaitCycleIdx++;\n\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\tlastStateID = stateID;\n\t\t\t\t\t\t\t\twaitCycleIdx = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// end by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Obtaining system state...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\t\tstate = getState(system);\n\t\t\t\t\t\tif (faultySequence) problems = true; // by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Successfully obtained system state!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\t\tif (mode() != Modes.Spy){ // by urueda\n\t\t\t\t\t\t\tsaveStateSnapshot(state);\n\t\t\t\t\t\t\tverdict = state.get(OracleVerdict, Verdict.OK);\n\t\t\t\t\t\t\tfragment.set(OracleVerdict, verdict); // by urueda\t\t\t\t\t\t\n\t\t\t\t\t\t\tfragment = new TaggableBase();\n\t\t\t\t\t\t\tfragment.set(SystemState, state);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t//logln(\"Shutting down system...\", LogLevel.Info);\n\t\t\t\tLogSerialiser.log(\"Shutting down the SUT...\\n\", LogSerialiser.LogLevel.Info); // by urueda\n\t\t\t\tstopSystem(system); // by urueda\n\t\t\t\tif (system != null && system.isRunning()) // by urueda\n\t\t\t\t\tsystem.stop();\n\t\t\t\t//logln(\"System has been shut down!\", LogLevel.Debug);\n\t\t\t\t// begin by urueda\n\t\t\t\tLogSerialiser.log(\"... SUT has been shut down!\\n\", LogSerialiser.LogLevel.Debug);\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tScreenshotSerialiser.finish();\n\t\t\t\tLogSerialiser.log(\"Writing fragment to sequence file...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t//oos.writeObject(fragment);\n\t\t\t\tTestSerialiser.write(fragment);\n\t\t\t\tTestSerialiser.finish();\n\t\t\t\tLogSerialiser.log(\"Wrote fragment to sequence file!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\n\t\t\t\tGrapher.walkFinished(!problems,\n\t\t\t\t\t\t \t\t\t mode() == Modes.Spy ? null : state,\n\t\t\t\t\t\t \t\t\t protocolUtil.getStateshot(state));\n\t\t\t\t\n\t\t\t\tLogSerialiser.log(\"Sequence \" + sequenceCount + \" finished.\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t\tif(problems)\n\t\t\t\t\tLogSerialiser.log(\"Sequence contained problems!\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t\t\t\t\n\t\t\t\tfinishSequence(currentSeq);\n\t\n\t\t\t\tSystem.out.println(\"currentseq: \" + currentSeq);\n\t\t\t\t\n\t\t\t\tVerdict finalVerdict = verdict.join(new Verdict(passSeverity,\"\",Util.NullVisualizer));\n\t\t\t\t\n\t\t\t\tif (!settings().get(ConfigTags.OnlySaveFaultySequences) ||\n\t\t\t\t\tfinalVerdict.severity() >= settings().get(ConfigTags.FaultThreshold)){ // by urueda{\n\t\t\t\t\t//String generatedSequence = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \"sequence\").getName();\n\t\t\t\t\tLogSerialiser.log(\"Copying generated sequence (\\\"\" + generatedSequence + \"\\\") to output directory...\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUtil.copyToDirectory(currentSeq.getAbsolutePath(),\n\t\t\t\t\t\t\t\tsettings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \n\t\t\t\t\t\t\t\tgeneratedSequence,\n\t\t\t\t\t\t\t\ttrue); // by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Copied generated sequence to output directory!\\n\", LogSerialiser.LogLevel.Debug);\t\t\t\t\t\n\t\t\t\t\t} catch (NoSuchTagException e) {\n\t\t\t\t\t\tLogSerialiser.log(\"No such tag exception copying test sequence\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tLogSerialiser.log(\"I/O exception copying test sequence\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t}\n\t\t\t\t\tcopyClassifiedSequence(generatedSequence, currentSeq, finalVerdict);\n\t\t\t\t}\n\t\t\t\tif(!problems)\n\t\t\t\t\tthis.forceToSequenceLengthAfterFail = false;\n\t\n\t\t\t\tLogSerialiser.log(\"Releasing canvas...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tcv.release();\n\t\t\t\t\n\t\t\t\tsaveSequenceMetrics(generatedSequence,problems);\n\t\t\t\t\n\t\t\t\tif (ConfigTags.Strategy != null && !ConfigTags.Strategy.equals(\"\")){\n\t\t\t\t\tSystem.out.println(\"It's a strategy test generator\");\n\t\t\t\t\tsaveStrategyMetrics(generatedSequence,problems);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tScreenshotSerialiser.exit(); final String[] report = Grapher.getReport(); // screenshots must be serialised\n\t\t\t\tTestSerialiser.exit();\n\t\t\t\tString stopDateString = Util.dateString(DATE_FORMAT),\n\t\t\t\t\t durationDateString = Util.diffDateString(DATE_FORMAT, startDateString, stopDateString);\n\t\t\t\tLogSerialiser.log(\"TESTAR stopped execution at \" + stopDateString + \"\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\tLogSerialiser.log(\"Test duration was \" + durationDateString + \"\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\tLogSerialiser.flush(); LogSerialiser.finish(); LogSerialiser.exit();\n\n\t\t\t\t// save report\n\t\t\t\tthis.saveReportPage(generatedSequence, \"clusters\", report[0]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"testable\", report[1]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"curve\", report[2]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"stats\", report[3]);\n\t\t\t\t// end by urueda\n\t\t\t\t\n\t\t\t\tsequenceCount++;\n\t\t\t\t\n\t\t\t// begin by urueda\n\t\t\t} catch(Exception e){\n\t\t\t\tthis.killTestLaunchedProcesses();\n\t\t\t\tScreenshotSerialiser.finish();\n\t\t\t\tTestSerialiser.finish();\t\t\t\t\n\t\t\t\tGrapher.walkFinished(false, null, null);\n\t\t\t\tScreenshotSerialiser.exit(); LogSerialiser.log(Grapher.getReport() + \"\\n\", LogSerialiser.LogLevel.Info); // screenshots must be serialised\n\t\t\t\tLogSerialiser.log(\"Exception <\" + e.getMessage() + \"> has been caught\\n\", LogSerialiser.LogLevel.Critical); // screenshots must be serialised\n\t\t\t\tint i=1; StringBuffer trace = new StringBuffer();\n\t\t\t\tfor(StackTraceElement t : e.getStackTrace())\n\t\t\t\t trace.append(\"\\n\\t[\" + i++ + \"] \" + t.toString());\n\t\t\t\tSystem.out.println(\"Exception <\" + e.getMessage() + \"> has been caught; Stack trace:\" + trace.toString());\n\t\t\t\tif (system != null)\n\t\t\t\t\tsystem.stop();\n\t\t\t\tTestSerialiser.exit();\n\t\t\t\tLogSerialiser.flush(); LogSerialiser.finish(); LogSerialiser.exit();\n\t\t\t\tthis.mode = Modes.Quit; // System.exit(1);\n\t\t\t}\n\t\t}\n\t\tif (settings().get(ConfigTags.ForceToSequenceLength).booleanValue() && // force a test sequence length in presence of FAIL\n\t\t\t\tthis.actionCount <= settings().get(ConfigTags.SequenceLength) && mode() != Modes.Quit){\n\t\t\tthis.forceToSequenceLengthAfterFail = true;\n\t\t\tSystem.out.println(\"Resuming test after FAIL at action number <\" + this.actionCount + \">\");\n \t\t\trunTest(); // continue testing\n\t\t} else\n\t\t\tthis.forceToSequenceLengthAfterFail = false;\t\t\t\n\t\t// end by urueda\n\t}", "public boolean randomCreate() {\n\t\t// Generates a random genetic code\n\t\t_geneticCode = new GeneticCode();\n\t\t// it has no parent\n\t\t_parentID = -1;\n\t\t_generation = 1;\n\t\t_growthRatio = 16;\n\t\t// initial energy\n\t\t_energy = Math.min(Utils.INITIAL_ENERGY,_world.getCO2());\n\t\t_world.decreaseCO2(_energy);\n\t\t_world.addO2(_energy);\n\t\t// initialize\n\t\tcreate();\n\t\tsymmetric();\n\t\t// put it in the world\n\t\treturn placeRandom();\n\t}", "public void secrete() {\n\t\t/* Instantiate a new virus particle */\n\t\tSim.lps.add(new Lambda_phage(prob_surface, prob_enzymes));\n\t}", "public void setupGame() {\n\t\t// Re-spawn the appropriate number of sheep\n\t\tint numSheep = 31;\n\t\t\n\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\tnumSheep = 1;\n\t\t}\n\t\t\n\t\t// It takes half the sheep to win.\n\t\t_scoreToWin = numSheep / 2;\n\t\tp(\"It takes \" + _scoreToWin + \" sheep to win.\");\n\t\t\n\t\t_hasBeenWon = false;\n\t\t\n\t\t// Non-infrastructural entities.\n\t\t//////////////////////////\n\t\t\n\t\t// Don't create this stuff if I'm replaying.\n\t\tint mod = 1;\n\t\tfor (int i = 0; i < numSheep; i++) {\n\t\t\t//int x = _generator.nextInt(40) - 20;\n\t\t\t//int z = _generator.nextInt(80) - 40;\n\t\t\tmod *= -1;\n\t\t\tint x = i/2 * mod;\n\t\t\tint z = 0;\n\n\t\t\tSheep s = new Sheep(\"sheep-\" + i + \"[\" + _sheepID + \"]\", x, 2, z);\n\t\t\t\n\t\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\t\ts.setBehaviorActive(false);\n\t\t\t}\n\t\t\t\n\t\t\t_sheepID++;\n\t\t}\n\t\t\n\t\t// Add a wubble for testing.\n\t\tif (!_isJimboSpawned && !SheepPhysicsState.PRODUCTION) {\n\t\t\tSystem.out.println(\"Adding Jimbo.\");\n\t\t\t_isJimboSpawned = true;\n\t\t\taddWubble(\"Jimbo\", (short)100, (Integer)1);\n\t\t\taddSidekick(\"Jimbo\");\n\t\t\t//addWubble(\"Bimbo\", (short)101, (Integer)0);\n\t\t}\n\t\t\n\t\t//////////////////////////\n\n\t\t// Add some wrenches in the appropriate spots.\n\t\tnew Wrench(\"blueWrench1\", -8, 5, -20);\n\t\tnew Wrench(\"blueWrench2\", 8, 5, -20);\n\t\tnew Wrench(\"redWrench1\", -8, 5, 20);\n\t\tnew Wrench(\"redWrench2\", 8, 5, 20);\n\t\t\n\t\t// Save the start of the me.\n\t\t_gameStart = System.currentTimeMillis();\n\t\tSystem.out.println(\"Started game at \" + _gameStart);\n\t\t\n\t\t// Make some predicates.\n\t\t//Predicate p = new Predicate(\"baseClassPred\");\n\t\t//GoPred g = new GoPred(\"derivedGoClass\", 1);\n\t\t\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.SPEEDY, new Vector3f(0, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpE\", -1, PowerUpInfo.PowerUpType.EATER, new Vector3f(2, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.STICKY, new Vector3f(2, 0.4f, 2));\n\t}", "@SuppressWarnings(\"ResultOfObjectAllocationIgnored\")\n public void checkSpawnTemp() {\n\n int xStart = playingField.getXyhome() - 1;\n int yStart = playingField.getXyhome() - 1;\n int home = playingField.getXyhome();\n boolean changed = false;\n\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n\n if (xStart + i != home || yStart + j != home) {\n try {\n String tmp;\n if (playingField.getPlayingField()[xStart + i][yStart + j].getAgent() != null) {\n tmp = playingField.getPlayingField()[xStart + i][yStart + j].getAgent().getName();\n } else {\n tmp = \"SoWirdSichKeinSpielerNennen123\";\n }\n\n if (!agentsOnSpawn[i][j].equals(tmp)) {\n changed = true;\n }\n agentsOnSpawn[i][j] = tmp;\n\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }\n\n }\n }\n\n if (!changed) {\n playingField.setSpawnTemperature(playingField.getSpawnTemperature() + 1);\n //System.out.println(\"Temperature raised to \" + spawnTemp);\n } else {\n playingField.setSpawnTemperature(0);\n //System.out.println(\"Temperature normal, set to 0\");\n }\n\n if (playingField.getSpawnTemperature() >= 10) {\n if (dialog.getSoundBox().isSelected()) {\n new SoundClip(\"BallReset\", -1);\n }\n System.out.println(\"Temperature too hot, explosion\");\n playingField.setSpawnTemperature(0);\n\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (xStart + i != home || yStart + j != home) {\n IAgent agent = playingField.getPlayingField()[xStart + i][yStart + j].getAgent();\n if (agent != null) {\n playingField.spreadAgent(agent);\n }\n }\n\n }\n }\n\n }\n\n }", "public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}", "public static void runGeneration(){\r\n adjust = generationSize*generation;\r\n //Send out the ants to their start points\r\n for (int i = generationSize -1; i>0; i--) {\r\n colony.get(i + adjust).startPositions(sets);\r\n }\r\n //initialises the latch with a counter for each ant in a generation\r\n latch = new CountDownLatch(generationSize);\r\n //move the ants out until they have found a valid solution or seen all nodes\r\n //create a new thread for each ant in the generation\r\n for (int i = 0; i<generationSize;i++) {\r\n Generation temp = new Generation(i);\r\n //starts the new thread\r\n temp.start();\r\n }\r\n try {\r\n //wait until all the ants in a generation have completed their paths\r\n latch.await();\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"error in latch.await\");\r\n }\r\n\r\n //Create the pheremone trail\r\n for (int i = 0; i<generationSize;i++) {\r\n Ant a = colony.get(i + adjust);\r\n for (Integer k: a.Path) {\r\n pheremones.set(k, pheremones.get(k) + 1);\r\n visited.set(k, visited.get(k) + 1);\r\n }\r\n }\r\n\r\n generation++;\r\n //degrade the pheremone trail\r\n if(generation > 1){\r\n for (int i = 0; i < pheremones.size(); i++){\r\n pheremones.set(i, pheremones.get(i) - degrade);\r\n if (pheremones.get(i) < 0) pheremones.set(i, 0);\r\n }\r\n }\r\n\r\n }", "@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }", "@Override\r\n\tpublic void runBehaviors() throws GameActionException {\r\n\t\tID = player.myIntel.getArchonID();\r\n\t\tarchonList = player.myIntel.getArchonList();\r\n\t\tmyLoc = player.myRC.getLocation();\r\n\t\tmyX = myLoc.getX();\r\n\t\tmyY = myLoc.getY();\r\n\t\tmyDir = player.myRC.getDirection();\r\n\t\tswitch(state) {\r\n\t\tcase 0:\r\n\t\t\tdir = spreadDirection();\r\n\t\t\tif (dir != Direction.NONE) state = 1;\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tif (myDir.equals(dir)) state = 2;\r\n\t\t\telse {\r\n\t\t\t\tplayer.myRC.setDirection(dir);\r\n\t\t\t\tstate = 2;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tif (player.myRC.getRoundsUntilMovementIdle()==0 && player.myRC.hasActionSet()==false) {\r\n\t\t\t\tif (player.myRC.canMove(myDir)) {\r\n\t\t\t\t\tplayer.myRC.moveForward();\r\n\t\t\t\t\tmoveCounter++;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tplayer.myRC.setDirection(myDir.rotateRight());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (moveCounter >= AMOUNT_TO_SPREAD) state = 3;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\t\r\n\t\t\tif (player.myRC.getRoundsUntilMovementIdle()==0 && player.myRC.hasActionSet()==false) {\r\n\t\t\t\tif (player.myRC.senseTerrainTile(myLoc.add(myDir)).getType() != TerrainType.LAND) {\r\n\t\t\t\t\tlandFinder();\r\n\t\t\t\t\tif (landSquares == 0) {\r\n\t\t\t\t\t\tplayer.myRC.setDirection(player.myUtils.randDir());\r\n\t\t\t\t\t\tstate = 2;\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tplayer.myRC.setDirection(turnDir);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//STRATEGY TRANSITION\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tplayer.myRC.setIndicatorString(2, dir.toString());\r\n\t}", "private Boolean simulationTerminee() {\n if (Evenements.size() != 0) \n return false;\n else\n return true;\n }", "protected void doPostAlgorithmActions() {\r\n\r\n if (displayLoc == NEW) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }", "public void testPeriodic() {\n \tterrainStates();\n \tdebug();\n }" ]
[ "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.5238164", "0.5230029", "0.52213216", "0.52210677", "0.521905", "0.518899", "0.51725495", "0.5167216", "0.51635516", "0.51621795", "0.5154859", "0.515013", "0.5145566", "0.5138678", "0.5138287", "0.5122756", "0.51215", "0.5110631", "0.5103738", "0.50949466", "0.50943696", "0.5089035", "0.50789034", "0.50738376", "0.50724256", "0.50705177", "0.50697696", "0.50610304", "0.50594187", "0.50541705", "0.50497735", "0.504761", "0.50467074", "0.5041604", "0.5038358", "0.50375026", "0.50354046", "0.5033198", "0.5032527", "0.5028778", "0.50281954", "0.5028135", "0.5027751", "0.5027496", "0.5020351", "0.5017532", "0.5016872", "0.500837", "0.50056577", "0.500548", "0.50046265", "0.5002887", "0.50001955", "0.49981123", "0.4996327", "0.49925345", "0.49900967", "0.49839628", "0.49826974", "0.49756783", "0.4966709", "0.49607873", "0.49599233", "0.49584186", "0.49563435", "0.49512446", "0.49475482", "0.4936554", "0.4935113", "0.49336353", "0.49334893", "0.4922859", "0.492035", "0.49198425", "0.4917821", "0.49167162", "0.4914644", "0.49128178", "0.49067295", "0.4900055" ]
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 buildWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (world[i][j].equals(Tileset.NOTHING)\n && isAdjacentFloor(i, j)) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "public void updateWall(Wall wall) {\n/* 4128 */ if (this.structure != null) {\n/* */ \n/* 4130 */ if (this.watchers != null)\n/* */ {\n/* 4132 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 4136 */ vz.updateWall(this.structure.getWurmId(), wall);\n/* */ }\n/* 4138 */ catch (Exception e) {\n/* */ \n/* 4140 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* 4144 */ if (this.structure.isFinalized()) {\n/* */ \n/* */ try {\n/* */ \n/* 4148 */ wall.save();\n/* */ }\n/* 4150 */ catch (IOException iox) {\n/* */ \n/* 4152 */ logger.log(Level.WARNING, \"Failed to save structure wall: \" + wall.getId() + '.', iox);\n/* */ } \n/* */ }\n/* */ } \n/* */ }", "private void createWalls(){\n\t \tfloat wallWidth = GameRenderer.BOARD_WIDTH ;\n\t \tfloat wallHeight = GameRenderer.BOARD_HEIGHT ;\n\t \tint offset = -2;\n\t \tint actionBaOffset = 2;\n\t \t\n\t \t//Left Wall\n\t \tnew SpriteWall(0, actionBaOffset, 0, wallHeight+offset);\n\t \t\n\t \t//Right Wall\n\t \tnew SpriteWall(wallWidth+offset, actionBaOffset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t \t//Top Wall\n\t \tnew SpriteWall(0, actionBaOffset, wallWidth+offset, actionBaOffset);\n\t \t\n\t \t//Bottom Wall\n\t \tnew SpriteWall(0, wallHeight+offset, wallWidth+offset, wallHeight+offset);\n\t \t\n\t }", "private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}", "public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (i == 0 || i == worldWidth - 1\n || j == 0 || j == worldHeight - 1) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "public void setWalls (Array<Rectangle> walls) {\n\t\tthis.walls = walls;\n\t}", "private void addWalls() {\n wallList.add(new RectF(0, 0, wallSize, screenHeight / 2 - doorSize));\n wallList.add(new RectF(0, screenHeight / 2 + doorSize, wallSize, screenHeight));\n wallList.add(new RectF(0, 0, screenWidth / 2 - doorSize, wallSize));\n wallList.add(new RectF(screenWidth / 2 + doorSize, 0, screenWidth, wallSize));\n wallList.add(new RectF(screenWidth - wallSize, 0, screenWidth, screenHeight / 2 - doorSize));\n wallList.add(new RectF(screenWidth - wallSize, screenHeight / 2 + doorSize, screenWidth, screenHeight));\n wallList.add(new RectF(0, screenHeight - wallSize, screenWidth / 2 - doorSize, screenHeight));\n wallList.add(new RectF(screenWidth / 2 + doorSize, screenHeight - wallSize, screenWidth, screenHeight));\n }", "public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }", "public void getWalls() {\n\t\tRandomMapGenerator rmg = new RandomMapGenerator();\n\n\t\tboolean[][] cm = rmg.cellmap;\n\n\t\tfor (int x = 0; x < rmg.width; x++) {\n\t\t\tfor (int y = 0; y < rmg.height; y++) {\n\t\t\t\tif (cm[x][y]) {\n\t\t\t\t\twallArray.add(new Wall(x * 12, y * 12, mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void addBoundingWalls() {\n\t\taddWall(new Line(new Vector2(0,0),new Vector2(getWidth(),0)));\n\t\taddWall(new Line(new Vector2(getWidth(),0), new Vector2(getWidth(),getHeight())));\n\t\taddWall(new Line(new Vector2(getWidth(),getHeight()),new Vector2(0,getHeight())));\n\t\taddWall(new Line(new Vector2(0,getHeight()),new Vector2(0,0)));\n\t}", "private void buildWalls() {\n for (Position floor : floors) {\n addWall(floor.xCoordinate, floor.yCoordinate);\n }\n }", "public static void addFullWall(Block fullWall) {\r\n\t\t_fullWalls.add(fullWall);\r\n\t}", "public void addNewStatusToWall(String status, String userUuid);", "public boolean isWall();", "private void addWall(int positionX, int positionY) {\n for (int i = Math.max(0, positionX - 1);\n i < Math.min(size.width, positionX + 2); i++) {\n for (int j = Math.max(0, positionY - 1);\n j < Math.min(size.height, positionY + 2); j++) {\n if (world[i][j] == Tileset.NOTHING) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }", "private void generateAddWalls(int x, int y) {\n\n\t\t// make center walkable\n\t\tmaze[x][y] = Block.EMPTY;\n\n\t\t// all around add to list\n\t\tfor (Point point : allDirections) {\n\t\t\tif (x > 1 && y > 1 && x < width - 2 && y < height - 2\n\t\t\t\t\t&& maze[x + point.x][y + point.y] == Block.WALL)\n\t\t\t\twallList.add(new Point(x + point.x, y + point.y));\n\t\t}\n\t}", "public Wall() {\n super(false, \"wall\");\n }", "public Wall() {\n\t\tcanHold = false;\n\t\tisPassable = false;\n\t\ttype = TileTypes.WALL;\n\t}", "public Set<Wall> getWallSet() {\n return walls;\n }", "public void changeHasHighWall()\r\n\t{\r\n\t\thasHighWall = !hasHighWall;\r\n\t}", "public HitWall() {\n\t\ttouch_r = Settings.TOUCH_R;\n\t\ttouch_l = Settings.TOUCH_L;\n\t\tpilot = Settings.PILOT;\n\t}", "public WallObject() {\n super(\"walls/\");\n setEnterable(false);\n }", "private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}", "@Override\n\tpublic Wall MakeWall() {\n\t\treturn new RedWall();\n\t}", "public void setupWorld()\r\n\t{\r\n\t\t//build walls\r\n\t\twall1.add(new PointD(-500, 500));\r\n\t\twall1.add(new PointD(-490, 500));\r\n\t\twall1.add(new PointD(-490, -500));\r\n\t\twall1.add(new PointD(-500, -500));\r\n\r\n\t\twall2.add(new PointD(-500, 500));\r\n\t\twall2.add(new PointD(2000, 500));\r\n\t\twall2.add(new PointD(2000, 490));\r\n\t\twall2.add(new PointD(-500, 490));\r\n\t\t\r\n\t\twall3.add(new PointD(2000, 500));\r\n\t\twall3.add(new PointD(1990, 500));\r\n\t\twall3.add(new PointD(1990, -500));\r\n\t\twall3.add(new PointD(2000, -500));\r\n\r\n\t\twall4.add(new PointD(-500, -500));\r\n\t\twall4.add(new PointD(2000, -500));\r\n\t\twall4.add(new PointD(2000, -490));\r\n\t\twall4.add(new PointD(-500, -490));\r\n\r\n\t\tobjects.add(wall1);\r\n\t\tobjects.add(wall2);\r\n\t\tobjects.add(wall3);\r\n\t\tobjects.add(wall4);\r\n\t\t\r\n\t\t\r\n\t\t//add people\r\n\t\tGameVars.people = people;\r\n\t\tGameVars.aSquare = aSquare;\r\n\t\t\r\n\t\tobjects.add(grandson.boundary);\r\n\t\tpeople.add(grandson);\r\n\t\t\r\n\t\tobjects.add(son.boundary);\r\n\t\tpeople.add(son);\r\n\t\t\r\n\t\tobjects.add(triangle.boundary);\r\n\t\tpeople.add(triangle);\r\n\r\n\t\tobjects.add(wife.boundary);\r\n\t\tpeople.add(wife);\r\n\r\n\t\tobjects.add(runaway.boundary);\r\n\t\tpeople.add(runaway);\r\n\t\t\r\n\t\t\r\n\t\t//set aSquare's position\r\n\t\taSquare.rotate(220);\r\n\t\t\r\n\t}", "public void initializeGameComponents(){\n\t\tcreateWalls();\n\t}", "private void renderPlayerWalls() {\n\t\tfor(List<Tile> list : game.tiles()) {\n\t\t\tfor(Tile tile : list) {\n\t\t\t\t//Why does this not work?!\n\t\t\t\tif(tile.hasWall()) {\n\t\t\t\t\tthis.output[tile.position().y][tile.position().x] = WALL_SIGN;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void nearingTheWallBefore(){\n robot.absgyroRotation(0, \"absolute\");\n\n //alligning with the wall before going for the toy\n while(robot.leftDistanceSensor.getDistance(DistanceUnit.CM) > 15 && !isStopRequested()){\n if(robot.leftDistanceSensor.getDistance(DistanceUnit.CM) < 30)\n robot.mecanumMovement(0, .3, 0);\n else\n robot.mecanumMovement(0, .7, 0);\n\n telemetry.addLine(\"Distance from sensor: \" + robot.leftDistanceSensor.getDistance(DistanceUnit.CM));\n telemetry.update();\n }\n robot.mecanumMovement(0, 0, 0);\n\n robot.absgyroRotation(45, \"absolute\");\n }", "private void climbWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.goUpWall();\n\t\tthis.goAcrossWall();\n\t\tthis.goDownWall();\n\t}", "public static MotionlessElement createWall() {\r\n\treturn wall;\r\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "public void updateValues() {\n\t\tlightResistances = new float[width][height];\n\t\twalls = new boolean[width][height];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tlightResistances[x][y] = map[x][y].getLighting();\n\t\t\t\twalls[x][y] = map[x][y].isWall();\n\t\t\t}\n\t\t}\n\t}", "public boolean isWall() {\r\n return getObjectGroup() == ObjectGroup.WALL;\r\n }", "public void addWall(StructureTypeEnum type, int x1, int y1, int x2, int y2, float qualityLevel, long structureId, boolean isIndoor) {\n/* 3891 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 3893 */ logger.finest(\"StructureID: \" + structureId + \" adding wall at \" + x1 + \"-\" + y1 + \",\" + x2 + \"-\" + y2 + \", QL: \" + qualityLevel);\n/* */ }\n/* */ \n/* */ \n/* 3897 */ DbWall dbWall = new DbWall(type, this.tilex, this.tiley, x1, y1, x2, y2, qualityLevel, structureId, StructureMaterialEnum.WOOD, isIndoor, 0, getLayer());\n/* 3898 */ addWall((Wall)dbWall);\n/* 3899 */ updateWall((Wall)dbWall);\n/* */ }", "public void checkWallCollision(Wall wall) {\n\t\t// check to see if enemy is colliding with wall.\n\t\t// Log.d(TAG,\"Front of character: \" + (x+xSpeed+width) +\n\t\t// \", edge of wall: \" + wall.getX());\n\t\t// check if at wall only when checking isDestroyed (for true value). if\n\t\t// moving and wall is destroyed won't pass first if check and won't ever\n\t\t// get set to atWall\n\t\tif (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed), x\n\t\t\t\t+ width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.moving && !wall.isDestroyed()) {\n\t\t\tLog.d(TAG, \"Enemy x: \" + x);\n\t\t\tint diff = (x + xSpeed) - (wall.getX() + wall.getWidth());\n\t\t\tLog.d(TAG, \"Difference: \" + diff);\n\t\t\tx += xSpeed - diff;\n\t\t\tLog.d(TAG, \"Enemy new x: \" + x);\n\t\t\tLog.d(TAG, \"Edge of wall: \" + (wall.getX() + wall.getWidth()));\n\t\t\tthis.setEnemyState(EnemyState.atWall);\n\t\t} else if (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed),\n\t\t\t\tx + width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.atWall && wall.isDestroyed()) {\n\t\t\tthis.setEnemyState(EnemyState.moving);\n\t\t}\n\t}", "public void buildWorld() {\n buildBoundaryWall();\n buildDiscreteWorld();\n removeBoundaryWall();\n reorganizeNote();\n connectWorld();\n buildWall();\n }", "protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }", "public boolean isWall()\n\t{\n\t\treturn block == Block.HORIZONTAL_WALL || block == Block.VERTICAL_WALL\n\t\t\t\t|| block == Block.BOT_LEFT_TOP_RIGHT_WALL\n\t\t\t\t|| block == Block.BOT_RIGHT_TOP_LEFT_WALL || isGhostGate();\n\t}", "private void updateFrontWall() {\n isFrontWall = (primaryFrame == WALL_FRONT);\n for(int i = 0; i < WALL_FRONT_ALT.length; i++) {\n if (primaryFrame == WALL_FRONT_ALT[i]) isFrontWall = true;\n }\n }", "void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}", "WallType createWallType();", "protected void writeWallTime(Writer wr) throws IOException {\n\t\tObject walltime = getSpec().getAttribute(\"maxwalltime\");\n\t\tif (walltime != null) {\n\t\t\twr.write(\"#SBATCH --time=\"\n\t\t\t\t\t+ WallTime.normalize(walltime.toString(), \"pbs-native\")\n\t\t\t\t\t+ '\\n');\n\t\t}\n\t}", "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }", "public float getWallsAlpha() {\n return this.wallsAlpha;\n }", "private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }", "void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }", "private void drawWalls(){\n for(int i = 0 ; i < wallsArrayList.size(); i++){\n wallsArrayList.get(i).drawImage(buffer);\n }\n\n }", "public Wall(){\n\t\tstarttext = \"\";\n\t\tname = \"\";\n\t\texamine = \"\";\n\t\tverb = \"\";\n\t\t//object = null;\n\t\t//exitobj = null;\n\t}", "public Wall(int x1, int y1,int x2,int y2) {\r\n\tthis.x1 = x1 + TRANSLATION;\r\n\tthis.x2 = x2 + TRANSLATION;\r\n\tthis.y1 = y1 + TRANSLATION;\r\n\tthis.y2 = y2 + TRANSLATION;\r\n\tbustedWall = false; \r\n}", "public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }", "public void mine() {\n mined = true;\n }", "@Override\r\n\tpublic Wall createWall() throws UnsupportedOperationException\r\n\t{\r\n\t\treturn new Wall();\r\n\t}", "public void generalUpdate() {\n\n\t\tif (player.isDead()) {\n\t\t\trespawnTimer++;\n\t\t\tif (respawnTimer > 90) {\n\t\t\t\treset();\n\t\t\t}\n\t\t}\n\t\tif (started) {\n\t\t\tplayer.generalUpdate();\n\n\t\t\tspawnCount++;\n\t\t\tif (spawnCount > 100) {\n\t\t\t\tcreateWall();\n\t\t\t\tspawnCount = 0;\n\t\t\t}\n\t\t}\n\n\t\tsky.generalUpdate();\n\t\tmountains.generalUpdate();\n\t\ttrees.generalUpdate();\n\n\t\t//Cycle through walls ArrayList and update each one\n\t\t\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tw.generalUpdate();\n\t\t}\n\t\t//Same thing with Ground objects\n\t\t\n\t\tfor (int i = 0; i < ground.size(); i++) {\n\t\t\tGround g = ground.get(i);\n\t\t\tg.generalUpdate();\n\n\t\t\t//Also check each for collision with player\n\t\t\t\n\t\t\tif (player.getBounds().overlaps(g.getBounds())\n\t\t\t\t\t&& player.isDead() == false) {\n\t\t\t\tplayer.die();\n\t\t\t\tAssets.playSound(\"hit\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//When walls go off screen, delete\n\t\t\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tif (w.getBounds().x < -64) {\n\t\t\t\twalls.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < checkPoints.size(); i++) {\n\t\t\tWall c = checkPoints.get(i);\n\t\t\tc.generalUpdate();\n\t\t}\n\n\t\tfor (int i = 0; i < checkPoints.size(); i++) {\n\t\t\tWall c = checkPoints.get(i);\n\t\t\tif (c.getBounds().x <= player.getBounds().x) {\n\t\t\t\tscore++;\n\t\t\t\tcheckPoints.remove(i);\n\t\t\t\ti--;\n\t\t\t\tAssets.playSound(\"score\");\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < walls.size(); i++) {\n\t\t\tWall w = walls.get(i);\n\t\t\tif (player.getBounds().overlaps(w.getBounds())\n\t\t\t\t\t&& player.isDead() == false) {\n\t\t\t\tplayer.die();\n\t\t\t\tAssets.playSound(\"hit\");\n\t\t\t}\n\t\t}\n\n\t\tif (score > highScore) {\n\t\t\thighScore = score;\n\t\t}\n\n\t}", "public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void executeWallGameStrategy(int row, int col) {\n gameStrategy.wall(row, col);\n }", "private void prepare()\n {\n /**build the outer wall actor\n * width of wall: 50\n */\n //top wall\n for(int top = 0; top < 59; top++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + top * 50, 25);\n }\n //down wall\n for(int down = 0; down < 59; down++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + down * 50, 675);\n }\n //left wall\n for(int left = 1; left < 13; left++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25, 25 + left * 50);\n }\n //right wall\n for(int right = 1; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2925, 25 + right * 50);\n }\n \n /**starting point of the cat */\n P1 p1 = new P1();\n addObject(p1, 133, 321);\n p1.setLocation(575, 125);\n \n //attach obsever to the cat\n HealthPointObserver hpObserver = new HealthPointObserver(p1);\n addObject(hpObserver, 800, 100);\n \n \n \n \n \n /**first page\n * x: 25 - 1025\n */\n //starting location\n for(int start = 0; start < 17; start++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(175 + start * 50, 175);\n }\n //page seperator\n for(int right = 1; right < 10; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1025, 25 + right * 50);\n }\n //jumpers\n Wall wall1 = new Wall();\n addObject(wall1, 32, 382);\n wall1.setLocation(175, 625);\n for(int jump = 0; jump < 2; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(275, 575 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(375, 475 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(525, 475 + jump * 50);\n }\n //set thorn\n Thorn thorn1 = new Thorn();\n addObject(thorn1, 32, 382);\n thorn1.setLocation(625, 625);\n Thorn thorn2 = new Thorn();\n addObject(thorn2, 32, 382);\n thorn2.setLocation(775, 625);\n Thorn thorn3 = new Thorn();\n addObject(thorn3, 32, 382);\n thorn3.setLocation(825, 625);\n \n /**second page \n * x: 1025 - 1975\n */\n //steps for left-top area\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 575);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 375);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 275);\n }\n Wall step1 = new Wall();\n addObject(step1, 32, 382);\n step1.setLocation(1225, 175);\n Wall step2 = new Wall();\n addObject(step2, 32, 382);\n step2.setLocation(1775, 125);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1875 + step * 50, 125);\n }\n //area seperator\n for(int right = 3; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1325, 25 + right * 50);\n }\n for(int right = 0; right < 8; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + right * 50, 175);\n }\n //steps for right-down area\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 575);\n }\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1825, step * 50 + 275);\n }\n for(int step = 0; step < 7; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 375);\n }\n for(int step = 0; step < 5; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1775, step * 50 + 425);\n }\n //page seperator\n for(int right = 1; right < 11; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1975, 25 + right * 50);\n }\n //set thorn\n Thorn thorn4 = new Thorn();\n addObject(thorn4, 32, 382);\n thorn4.setLocation(1125, 225);\n Thorn thorn5 = new Thorn();\n addObject(thorn5, 32, 382);\n thorn5.setLocation(1275, 325);\n Thorn thorn6 = new Thorn();\n addObject(thorn6, 32, 382);\n thorn6.setLocation(1875, 325);\n Thorn thorn7 = new Thorn();\n addObject(thorn7, 32, 382);\n thorn7.setLocation(1825, 625);\n Thorn thorn8 = new Thorn();\n addObject(thorn8, 32, 382);\n thorn8.setLocation(1825, 225);\n \n /**third page \n * x: 1975 - 2925\n */\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125 + step * 150, 625);\n }\n //jumper\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2025, step * 150 + 225);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125, step * 150 + 175);\n }\n // Wall jump1 = new Wall();\n //addObject(jump1, 32, 382);\n //jump1.setLocation(2125, 525);\n for(int step = 0; step < 8; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2175, step * 50 + 175);\n }\n //hidden thorn\n Thorn thorn9 = new Thorn();\n addObject(thorn9, 32, 382);\n thorn9.setLocation(2225, 165);\n Wall jump2 = new Wall();\n addObject(jump2, 32, 382);\n jump2.setLocation(2275, 175);\n Wall jump3 = new Wall();\n addObject(jump3, 32, 382);\n jump3.setLocation(2225, 175);\n Wall jump4 = new Wall();\n addObject(jump4, 32, 382);\n jump4.setLocation(2325, 275);\n Wall jump5 = new Wall();\n addObject(jump5, 32, 382);\n jump5.setLocation(2525, 275);\n Wall jump6 = new Wall();\n addObject(jump6, 32, 382);\n jump6.setLocation(2225, 375);\n Wall jump7 = new Wall();\n addObject(jump7, 32, 382);\n jump7.setLocation(2275, 425);\n for(int step = 0; step < 6; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2425 + step * 50, 425);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2625 + step * 50, 375);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2725 + step * 50, 325);\n }\n Wall jump8 = new Wall();\n addObject(jump8, 32, 382);\n jump8.setLocation(2825, 275);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2825 + step * 50, 125);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2675, step * 50 + 475);\n }\n //set thorn\n Thorn thorn10 = new Thorn();\n addObject(thorn10, 32, 382);\n thorn10.setLocation(2825, 175);\n Thorn thorn11 = new Thorn();\n addObject(thorn11, 32, 382);\n thorn11.setLocation(2825, 625);\n Thorn thorn12 = new Thorn();\n addObject(thorn12, 32, 382);\n thorn12.setLocation(2775, 275);\n Thorn thorn13 = new Thorn();\n addObject(thorn13, 32, 382);\n thorn13.setLocation(2675, 325);\n Thorn thorn14 = new Thorn();\n addObject(thorn14, 32, 382);\n thorn14.setLocation(2875, 425);\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2025, sharp * 150 + 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2125, sharp * 150 + 225);\n }\n //wheel-thorn\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 225);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2375 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 325);\n }\n //three-limit\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 475);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 575);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2225 + sharp * 150, 525);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 150, 525);\n }\n }", "@Deprecated\npublic interface ProfileWallLogic {\n\t\n\t/**\n\t * Notifies a user's connections of an event added to the user's wall.\n\t * \n\t * Note: the wall logic is currently responsible for timestamping the event,\n\t * but we might want to pass the date in this API call instead.\n\t * \n\t * @param event the event to add.\n\t * @param userUuid the ID of the user that created the event.\n\t */\n\tpublic void addNewEventToWall(String event, String userUuid);\n\t\n\t/**\n\t * Notifies a user's connections of a status update added to the user's wall.\n\t * \n\t * Note: the wall logic is currently responsible for timestamping the status\n\t * update, but we might want to pass the date in this API call instead.\n\t * \n\t * @param status the status to add.\n\t * @param userUuid the ID of the user whose status we're posting.\n\t */\n\tpublic void addNewStatusToWall(String status, String userUuid);\n\t\n\t/**\n\t * Adds a new wall item comment.\n\t * \n\t * @param wallItemComment the wall item comment to add.\n\t * @return <code>true</code> if the add is successful and\n\t * <code>false</code> if the add fails.\n\t */\n\tpublic boolean addNewCommentToWallItem(WallItemComment wallItemComment);\n\t\n\t/**\n\t * Posts the specified wall item to the specified user's wall and the\n\t * walls of their connections.\n\t * \n\t * @param userUuid the id of the user whose wall we're posting to.\n\t * @param wallItem the wall item to post.\n\t */\n\tpublic boolean postWallItemToWall(String userUuid, WallItem wallItem);\n\t\n\t/**\n\t * Removes the specified wall item.\n\t *\n\t * @param wallItem the wall item to remove.\n\t */\n\tpublic boolean removeWallItemFromWall(WallItem wallItem);\n\n\t/**\n\t * Returns the specified wall item.\n\t *\n\t * @param wallItemId the wall item to return.\n\t * @return the wall item for the specified id.\n\t */\n\tpublic WallItem getWallItem(long wallItemId);\n\n\t/**\n\t * Returns the specified wall item comment.\n\t *\n\t * @param wallItemCommentId the wall item comment to return.\n\t * @return the wall item comment for the specified id.\n\t */\n\tpublic WallItemComment getWallItemComment(long wallItemCommentId);\n\t\n\t/**\n\t * Returns the wall for the specified user. The privacy record will\n\t * be looked up.\n\t *\n\t * @param userUuid the user to query by.\n\t * @return the wall for the specified user.\n\t */\n\tpublic List<WallItem> getWallItemsForUser(String userUuid);\n\t\n\t/**\n\t * Returns the wall for the specified user. Privacy settings are used\n\t * to determine if the user is allowed to access the requested wall.\n\t *\n\t * @param userUuid the user to query by.\n\t * @param privacy the privacy record for the user.\n\t * @return the wall for the specified user.\n\t */\n\tpublic List<WallItem> getWallItemsForUser(String userUuid, ProfilePrivacy privacy);\n\t\n\t/**\n\t * Returns the number of available wall items for the specified user. The\n\t * privacy record will be looked up.\n\t *\n\t * @param userUuid the user to query by.\n\t * @return the number of available wall items for the specified user.\n\t */\n\tpublic int getWallItemsCount(String userUuid);\n\t\n\t/**\n\t * Returns the number of available wall items for the specified user.\n\t * Privacy settings are used to determine if the user is allowed to access\n\t * the requested wall items.\n\t *\n\t * @param userUuid the user to query by.\n\t * @param privacy the privacy record for the user.\n\t * @return the number of available wall items for the specified user.\n\t */\n\tpublic int getWallItemsCount(String userUuid, ProfilePrivacy privacy);\n\n}", "public void addedToWorld(World w) {\r\n\t\tupdate();\r\n\t}", "public int generateWall() {\n Entity e = new Wall(rand.nextInt(10) + 1);\n e.setRelativeVelocity(mGame.getPlayer().getVelocity());\n e.setPosition(1000, mMap.getBottomBound() - e.getHeight());\n mGame.addEntity(e);\n\n return e.getWidth();\n }", "public void onHitWall(HitWallEvent e) {\n\t\t// Replace the next line with any behavior you would like\n\t\t\n\t}", "public void removeWall(Wall wall, boolean silent) {\n/* 2671 */ if (wall != null) {\n/* */ \n/* 2673 */ if (this.walls != null) {\n/* */ \n/* 2675 */ this.walls.remove(wall);\n/* 2676 */ if (this.walls.size() == 0)\n/* 2677 */ this.walls = null; \n/* */ } \n/* 2679 */ if (this.watchers != null && !silent)\n/* */ {\n/* 2681 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2685 */ vz.removeWall(this.structure.getWurmId(), wall);\n/* */ }\n/* 2687 */ catch (Exception e) {\n/* */ \n/* 2689 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ }", "public void setWallStrength(int wallStrength) {\n\t\tthis.wallStrength = wallStrength;\n\t}", "private static void makeWalls(City city) \n {\n Wall[] walls = new Wall[6];\n \n for(int i=0; i<6; i++)\n {\n walls[i] = new Wall(city, i+1, 5, Direction.EAST);\n walls[i] = new Wall(city, i+1, 0, Direction.WEST);\n walls[i] = new Wall(city, 1, i, Direction.NORTH);\n walls[i] = new Wall(city, 6, i, Direction.SOUTH);\n }\n }", "public void gameInitialize() {\n this.world = new BufferedImage(GameConstants.GAME_SCREEN_WIDTH,\n GameConstants.GAME_SCREEN_HEIGHT,\n BufferedImage.TYPE_3BYTE_BGR);\n\n gameObjs = new ArrayList<>();\n try {\n background = (BufferedImage)Resource.getHashMap().get(\"wallpaper\");\n /*\n * note class loaders read files from the out folder (build folder in Netbeans) and not the\n * current working directory.\n */\n InputStreamReader isr = new InputStreamReader(Objects.requireNonNull(RainbowReef.class.getClassLoader().getResourceAsStream(\"map/map1\")));\n BufferedReader mapReader = new BufferedReader(isr);\n\n String row = mapReader.readLine();\n if (row == null) {\n throw new IOException(\"nothing here\");\n }\n String[] mapInfo = row.split(\"\\t\");\n int numCols = Integer.parseInt(mapInfo[0]);\n int numRows = Integer.parseInt(mapInfo[1]);\n for (int curRow = 0; curRow < numRows; curRow++){\n row = mapReader.readLine();\n mapInfo = row.split(\"\\t\");\n for(int curCol = 0; curCol< numCols; curCol++){\n switch (mapInfo[curCol]) {\n case \"2\" -> {\n UnbreakableWall sowall = new UnbreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"SolidBlock\"));\n gameObjs.add(sowall);\n }\n case \"3\" -> {\n BreakableWall pwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"PinkBlock\"));\n gameObjs.add(pwall);\n }\n case \"4\" -> {\n BreakableWall ywall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"YellowBlock\"));\n gameObjs.add(ywall);\n }\n case \"5\" -> {\n BreakableWall rwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"RedBlock\"));\n gameObjs.add(rwall);\n }\n case \"6\" -> {\n BreakableWall gwall = new BreakableWall(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"GreenBlock\"));\n gameObjs.add(gwall);\n }\n case \"7\" -> {\n Health health = new Health(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"HealthBlock\"));\n gameObjs.add(health);\n }\n case \"8\" -> {\n BulletBlock bigbullet = new BulletBlock(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"BulletBlock\"));\n gameObjs.add(bigbullet);\n }\n case \"9\" -> {\n Goblin bl = new Goblin(curCol * 20, curRow * 20, (BufferedImage) Resource.getHashMap().get(\"Goblin\"));\n gameObjs.add(bl);\n }\n }\n }\n }\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n }\n\n Katch t1 = new Katch(290, 440, 0, 0, 0, (BufferedImage) Resource.getHashMap().get(\"Katch\"));\n KatchControl tc1 = new KatchControl(t1, KeyEvent.VK_D, KeyEvent.VK_A, KeyEvent.VK_SPACE);\n this.setBackground(Color.BLACK);\n this.lf.getJf().addKeyListener(tc1);\n this.gameObjs.add(t1);\n\n }", "public Wall[] getWalls() {\n/* 3438 */ if (this.walls != null) {\n/* 3439 */ return this.walls.<Wall>toArray(new Wall[this.walls.size()]);\n/* */ }\n/* 3441 */ return emptyWalls;\n/* */ }", "public static int minimumNumberOfWhiteWallsOnBoard()\n {\n return 0;\n }", "public int getWallStrength() {\n\t\treturn wallStrength;\n\t}", "public void setNumOfWalls(Integer numOfWalls) {\n this.numOfWalls = numOfWalls;\n }", "public static boolean saveWallMessage(WallMessage wm) {\n \tRecordStore db;\r\n\t\ttry {\r\n\t\t\tdb = RecordStore.openRecordStore(wm.getNickname() + \"wall\", true);\r\n\t\t\tbyte[] b;\r\n\t\t\tb = UtilityData.toByteArray(wm);\r\n\r\n\t \tdb.addRecord(b, 0, b.length);\r\n\t \tdb.closeRecordStore();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} \r\n \t\r\n \treturn true;\r\n \r\n }", "public static void addToWatchList(PhysicsBody body)\n {\n watchList.add(body);\n }", "void drawWall(Graphics g, Wall wall) {\n int x = wall.x;\n int y = wall.y;\n if(wall.horz) {\n g.drawLine(BORDER + x*SIZE, BORDER + y*SIZE, BORDER + (x+1)*SIZE, BORDER + y*SIZE);\n } else {\n g.drawLine(BORDER + x*SIZE, BORDER + y*SIZE, BORDER + x*SIZE, BORDER + (y+1)*SIZE);\n }\n }", "public void resetWorld(){\r\n\t\tSystem.out.println(\"Resetting world\");\r\n\t\tengine.removeAllEntities();\r\n\t\tlvlFactory.resetWorld();\r\n\t\t\r\n\t\tplayer = lvlFactory.createPlayer(cam);\r\n\t\tlvlFactory.createFloor();\r\n lvlFactory.createWaterFloor();\r\n \r\n int wallWidth = (int) (1*RenderingSystem.PPM);\r\n int wallHeight = (int) (60*RenderingSystem.PPM);\r\n TextureRegion wallRegion = DFUtils.makeTextureRegion(wallWidth, wallHeight, \"222222FF\");\r\n lvlFactory.createWalls(wallRegion); //TODO make some damn images for this stuff \r\n \r\n // reset controller controls (fixes bug where controller stuck on directrion if died in that position)\r\n controller.left = false;\r\n controller.right = false;\r\n controller.up = false;\r\n controller.down = false;\r\n controller.isMouse1Down = false;\r\n controller.isMouse2Down = false;\r\n controller.isMouse3Down = false;\r\n\t\t\r\n\t}", "public Integer getNumOfWalls() {\n return numOfWalls;\n }", "void update(Env world) throws Exception;", "private boolean wall(int cell) {\n\t\treturn cell >= 0 && (cell >= size || DungeonTileSheet.wallStitcheable(Dungeon.level.map[cell]));\n\t}", "public boolean isWall() {\n return type == CellType.WALL;\n }", "public ArrayList<Block> getWalls() {\n\t\tArrayList<Block> b = new ArrayList<Block>();\n\t\tfor (int i = 0; i <maze.size(); i++) {\n\t\t\tif (maze.get(i).t == 'w') {\n\t\t\t\tb.add(maze.get(i));\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "@Override\r\n\tpublic void putWall(Board board, long x, long y, Wall wall) throws UnsupportedOperationException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\twall.setPosition(new Position(x,y));\r\n\t\t\twall.setBoard(board);\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Either this wall or this board is terminated; the wall cannot be placed on the board.\");\r\n\t\t}\r\n\t}", "public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }", "public void printWalls(){\n\t\tSystem.out.printf(\"Cell [%d][%d] -- (%d, %d, %d, %d)\\n\",position[0],\n\t\t\t\t\t\tposition[1],eastWall, northWall, westWall, southWall);\n\t}", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "private void renderWalls(Graphics g, ArrayList<GridLocation> walls, Location gridPosition){\n g.setColor(Color.BLACK);\n for(GridLocation wall : walls){\n g.fillRect(gridPosition.getX() + wall.getX()*CELL_SIZE, gridPosition.getY() + wall.getY()*CELL_SIZE,CELL_SIZE, CELL_SIZE);\n }\n }", "public static void addHalfWall(Block halfWall) {\r\n\t\t_halfWalls.add(halfWall);\r\n\t}", "public void activateWings() {\n\t\tSystem.out.println(\"Wings are activated\");\n\t}", "public WpWallSurface(int x, int y,Position position,SurfaceType type,boolean passing) {\n super(x, y,position);\n this.type = type;\n this.passing = passing;\n }", "public void generate() {\n\t\t// all cardinal direction for up,down,left and right\n\t\tthis.allDirections = Arrays.asList(new Point(-1, 0), new Point(1, 0), new Point(0, 1),\n\t\t\t\tnew Point(0, -1));\n\n\t\twallList = new ArrayList<>();\n\t\tgenerateAddWalls(width / 2, height / 2);\n\t\t// generateAddWalls( 3, 3);\n\n\t\tRandom rand = new Random();\n\n\t\twhile (wallList.size() > 0) {\n\t\t\tPoint wall = wallList.get(rand.nextInt(wallList.size()));\n\n\t\t\tint emptyWallX = wall.x;\n\t\t\tint emptyWallY = wall.y;\n\n\t\t\tfor (Point point : allDirections) {\n\t\t\t\tif (maze[wall.x + point.x][wall.y + point.y] == Block.EMPTY) {\n\t\t\t\t\temptyWallX = wall.x + point.x;\n\t\t\t\t\temptyWallY = wall.y + point.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// find if oposite direction is empty by inverting the delta\n\t\t\tint deltaX = wall.x - emptyWallX;\n\t\t\tint deltaY = wall.y - emptyWallY;\n\n\t\t\tif (maze[wall.x + deltaX][wall.y + deltaY] == Block.WALL) {\n\t\t\t\tmaze[wall.x][wall.y] = Block.EMPTY;\n\t\t\t\tgenerateAddWalls(wall.x + deltaX, wall.y + deltaY);\n\t\t\t}\n\n\t\t\twallList.remove(wall);\n\t\t}\n\t}", "@Test\n\tpublic void testMonsterAndWallCollision() {\n\t\tEngine engine = new Engine(20);\n\t\tint x = engine.getMoveableObject(3).getX();\n\t\tint y = engine.getMoveableObject(3).getY() - 1;\n\t\tfor (int i = 0; i < 3; i ++) {\n\t\t\tengine.update();\n\t\t}\n\t\tassertEquals(\"failure - monster did not invert from wall correctly (x coord incorrect)\", x, engine.getMoveableObject(3).getX(), 0.0);\n\t\tassertEquals(\"failure - monster did not invert from wall correctly (y coord incorrect)\", y, engine.getMoveableObject(3).getY(), 0.0);\n\t}", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public void addToMazeGeneration(int[] wallToBreak) {\n mazeGeneration.add(wallToBreak);\n }", "public void createWall() { // make case statement?\n\t\tRandom ran = new Random();\n\t\tint range = 6 - 1 + 1; // max - min + min\n\t\tint random = ran.nextInt(range) + 1; // add min\n\n\t\t//each wall is a 64 by 32 chunk \n\t\t//which stack to create different structures.\n\t\t\n\t\tWall w; \n\t\tPoint[] points = new Point[11];\n\t\tpoints[0] = new Point(640, -32);\n\t\tpoints[1] = new Point(640, 0);\n\t\tpoints[2] = new Point(640, 32); // top\n\t\tpoints[3] = new Point(640, 384);\n\t\tpoints[4] = new Point(640, 416);\n\n\t\tif (random == 1) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 2) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96); // top\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 3) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192); // top\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 4) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192);\n\t\t\tpoints[10] = new Point(640, 224); // top\n\t\t} else if (random == 5) {\n\t\t\tpoints[5] = new Point(640, 64); // top\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 6) {\n\t\t\tpoints[5] = new Point(640, 192);\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256); // bottom\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t}\n\n\t\tfor (int i = 0; i < points.length; i++) { // adds walls\n\t\t\tw = new Wall();\n\t\t\tw.setBounds(new Rectangle(points[i].x, points[i].y, 64, 32));\n\t\t\twalls.add(w);\n\t\t}\n\t\tWall c; // adds a single checkpoint\n\t\tc = new Wall();\n\t\tcheckPoints.add(c);\n\t\tc.setBounds(new Rectangle(640, 320, 32, 32));\n\t}", "public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this ration th=o set the new meter value\r\n\t\tEnvironmentVariables.setMeter(EnvironmentVariables.getMeter() * ratio);\r\n\t\t\r\n\t\t//use the ratio to set all objects new location\r\n\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tif(EnvironmentVariables.getMainPlayer() != null) {\r\n\t\t\tEnvironmentVariables.getMainPlayer().setX(EnvironmentVariables.getMainPlayer().getX() * ratio);\r\n\t\t\tEnvironmentVariables.getMainPlayer().setY(EnvironmentVariables.getMainPlayer().getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }", "private void update_memories() {\n\t\tserver.MaliciousPatterns mpat = null;\n\t\ttry {\n\t\t\tmpat = MainClass.get_server().maliciousPatternRequest(Register.get_nodeID());\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (mpat == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (mpat.isIsDeleted() == true) {\t/* node is deleted by admin, exit program */\n\t\t\tSystem.out.println(\"\\nATTENTION: This node was deleted from the administrator of the network!\");\n\t\t\tSystem.out.println(\"Forcing exit...\\n\");\n\t\t\tSystem.out.println(\"____________________________________________________________________________________________________\");\n\t\t\tSystem.exit(1);\t\t\t\t\t/* exit program */\n\t\t}\n\n\n\t\tString[] update_ips = mpat.getMal_ips();\n\t\tString[] update_patterns = mpat.getMal_patterns();\n\n\t\tif (update_ips != null) {\t\t\t\t\t/* there are updates in malicious IPs */\n\t\t\tSystem.out.println();\n\t\t\tfor (String ip : update_ips) {\n\t\t\t\tMPSM_IP.add_IP(ip);\n\t\t\t\tSystem.out.println(\"IP \" + ip + \" is malicious!\");\n\t\t\t}\n\t\t}\n\t\tif (update_patterns != null) {\t\t\t\t/* there are updates in malicious patterns */\n\t\t\tSystem.out.println();\n\t\t\tfor (String pattern : update_patterns) {\n\t\t\t\tMPSM_Pattern.add_Pattern(pattern);\n\t\t\t\tSystem.out.println(\"Pattern \" + pattern + \" is malicious!\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public boolean addWhiteWallsOnBoard(Wall aWhiteWallsOnBoard)\n {\n boolean wasAdded = false;\n if (whiteWallsOnBoard.contains(aWhiteWallsOnBoard)) { return false; }\n whiteWallsOnBoard.add(aWhiteWallsOnBoard);\n wasAdded = true;\n return wasAdded;\n }", "public void onHitWall(int whichWall) {\n\t\t\r\n\t}" ]
[ "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.56985766", "0.5698039", "0.56693333", "0.5577523", "0.55533886", "0.55509204", "0.55459553", "0.5533843", "0.5526915", "0.5503544", "0.5476907", "0.5423534", "0.5397754", "0.5373109", "0.53680027", "0.53671163", "0.5361044", "0.5351927", "0.5343535", "0.5338707", "0.5336952", "0.5336616", "0.5294456", "0.5292668", "0.5288605", "0.5287909", "0.5282148", "0.52784616", "0.5273724", "0.5270877", "0.52651066", "0.5265033", "0.5238327", "0.5228158", "0.52264154", "0.52257437", "0.52243793", "0.5216276", "0.52043545", "0.5203873", "0.51975894", "0.5197386", "0.519264", "0.5191732", "0.5185957", "0.51785225", "0.5173891", "0.5170081", "0.5160835", "0.5159563", "0.5150179", "0.5149339", "0.5148022", "0.51401347", "0.5132513", "0.5128035", "0.5123731", "0.5122917", "0.51219034", "0.5100417", "0.50987947", "0.50947255", "0.50824076", "0.50765723", "0.5069303", "0.50583357", "0.50489205", "0.50467676", "0.5027573", "0.50219846", "0.50219065", "0.50189847", "0.50102067", "0.5003552", "0.49931875", "0.49928096", "0.49868342", "0.49742824", "0.49734306", "0.49729672" ]
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 }", "public Environment getEnvironment() {\n \n \t\treturn this.environment;\n \t}", "@Override\n\tpublic Environment getEnvironment() {\n\t\tif (environment == null) {\n\t\t\tenvironment = new StandardEnvironment();\n\t\t}\n\t\treturn environment;\n\t}", "public FxEnvironment getEnvironment() {\n return CacheAdmin.getFilteredEnvironment();\n }", "public EnvironmentFrame getEnvironmentFrame() {\n\t\treturn myEnvFrame;\n\t}", "public String getEnvironment() {\n return environment;\n }", "public TreeMap<String,String> \n getEnvironment()\n {\n return pEnvironment;\n }", "public Environment getActorEnvironment() {\r\n\t\treturn actorEnv;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprotected final SituatedEnvironment<?,?,?,?,IT> getEnvironment() {\n\t\tEnvironment env = Kernel.getSingleton().getEnvironment();\n\t\tif (env instanceof SituatedEnvironment) {\n\t\t\treturn (SituatedEnvironment<?,?,?,?,IT>)env;\n\t\t}\n\t\treturn null;\n\t}", "public Env getEnv() {\n\t\treturn _env;\n\t}", "public static ApplicationEnvironment getEnvironment (){\n\t\treturn _applicationEnvironment;\n\t}", "@Override\n public Environment getEnvironment(XYCoord coord)\n {\n return master.getEnvironment(coord);\n }", "String getEnvironment();", "@Override\n public Environment getEnvironment(int w, int h)\n {\n return master.getEnvironment(w, h);\n }", "@Override\n\tpublic Environment<String, V> getEnvironment() {\n\t\treturn null;\n\t}", "public Map<String, String> getEnvironment();", "public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.getProperties(env);\n }", "Properties getEnvironment();", "Properties getEnvironment();", "public Map<String, String> getEnv()\n {\n return env;\n }", "Environment getEnvironment() {\n return recordingEnv;\n }", "public String getEnv() {\n\n return env;\n }", "private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }", "public String environmentId() {\n return environmentId;\n }", "public PythonInterpreter getEnvironment(String name) {return environments.get(name);}", "private static Map<String, Environment> getEnvironments() {\n Map<String, Environment> environmentMap = new HashMap<String, Environment>();\n Environment prodEnv = new Environment();\n prodEnv.setName(PROD_1);\n prodEnv.setPassword(PROD_1_PASSWORD);\n\n Environment sandBoxEnv = new Environment();\n sandBoxEnv.setName(SND_1);\n sandBoxEnv.setPassword(SND_1_PASSWORD);\n\n environmentMap.put(PROD_1, prodEnv);\n environmentMap.put(SND_1, sandBoxEnv);\n return environmentMap;\n }", "public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }", "public String getEnvironmentName() {\n return this.environmentName;\n }", "public String getEnvironmentId() {\n return this.EnvironmentId;\n }", "public ExecutionEnvironment getExecutionEnvironment() {\n return executionEnvironment;\n }", "public EnvironmentStateManager getEnvironmentStateManager() {\n\t\treturn environmentStateManager;\n\t}", "@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}", "public String getContainerEnv() {\n return containerEnv;\n }", "@Override\n public Environment getEnvironment(String organization, String uuid) throws APIManagementException {\n Environment env = APIUtil.getReadOnlyEnvironments().get(uuid);\n if (env == null) {\n env = apiMgtDAO.getEnvironment(organization, uuid);\n if (env == null) {\n String errorMessage =\n String.format(\"Failed to retrieve Environment with UUID %s. Environment not found\", uuid);\n throw new APIMgtResourceNotFoundException(errorMessage, ExceptionCodes\n .from(ExceptionCodes.GATEWAY_ENVIRONMENT_NOT_FOUND, String.format(\"UUID '%s'\", uuid)));\n }\n }\n return env;\n }", "public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;", "public DataStoreEnvironment getDataStoreEnvironment (){\n\t\treturn _dataStoreEnvironment;\n\t}", "public List<AppServiceEnvironmentInner> hostingEnvironments() {\n return this.hostingEnvironments;\n }", "public int getEnvironmentId() {\r\n\t\tif (environmentId != null) {\r\n\t\t\treturn environmentId;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject response = getJSonResponse(Unirest.get(url + NAMED_ENVIRONMENT_API_URL)\r\n\t\t\t\t\t.queryString(\"name\", SeleniumTestsContextManager.getThreadContext().getTestEnv()));\r\n\t\t\tenvironmentId = response.getInt(\"id\");\r\n\t\t\treturn environmentId;\r\n\t\t} catch (UnirestException e) {\r\n\t\t\tthrow new ConfigurationException(String.format(\"Environment %s does not exist in variable server, please create it or use an other one\", SeleniumTestsContextManager.getThreadContext().getTestEnv()));\r\n\t\t}\r\n\t}", "public PortletContainerEnvironment getPortletContainerEnvironment() {\n return this.portletContainerEnvironment; \n }", "Environment createEnvironment();", "Environment createEnvironment();", "public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}", "public static Environment getWorldInstance(int width, int height)\r\n\t{\r\n\t\t//check if an instance exists\r\n\t\tif(e == null)\r\n\t\t\t//if not, synchronize to prevent duplicate instantiation\r\n\t\t\tsynchronized(Environment.class) {\r\n\t\t\t\t//if an instance still doesn't exits, make a new one\r\n\t\t\t\tif(e == null)\r\n\t\t\t\t\te = new Environment(width, height);\r\n\t\t\t}\r\n\t\t//return the instance of Environment\r\n\t\treturn e;\r\n\t}", "EnvironmentmmFactory getEnvironmentmmFactory();", "public Map<String, String> environmentVariables() {\n return this.environmentVariables;\n }", "public Map<String, String> getEnv(IProject project) throws CoreException;", "public abstract Map<String, String> getEnvironment(NIOWorker nw);", "public NestedSet<Pair<String, String>> getCoverageEnvironment() {\n return coverageEnvironment;\n }", "public static TestEnvironment getEnvironment(String name) {\n return (TestEnvironment) envMap.get(name);\n }", "public static java.util.List<it.vmt.gh.sb.model.Environment>\n\t\tgetEnvironments(int start, int end) {\n\n\t\treturn getService().getEnvironments(start, end);\n\t}", "public interface Environment {\n public Iterable<EventGraphObject> getTriggers(Object function);\n public boolean hasChanged(Object trigger);\n public boolean isInitialised(EventGraphObject trigger);\n public void registerEventSource(EventSource source);\n public void setStickyInGraph(EventGraphObject source, boolean sticky);\n public <T> void addListener(Object source, EventGraphObject sink);\n public <T> void removeListener(Object source, EventGraphObject sink);\n public <T> void addWakeupOrdering(Object source, EventGraphObject wakeupTarget);\n public void wakeupThisCycle(Function target);\n public void fireAfterChangingListeners(Function target);\n public long getEventTime();\n public EventGraphObject getTerminationEvent();\n}", "public static List<EnvironmentVO> getAllEnvironments() throws SQLException {\n\t\tArrayList<EnvironmentVO> environmentVOs = new ArrayList<EnvironmentVO>();\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria envCriteria = session.createCriteria(EnvironmentEntity.class);\n\t\tenvCriteria.add(Restrictions.eq(\"envLock\", 0));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<EnvironmentEntity> environmentEntities = envCriteria.list();\n\t\tfor(EnvironmentEntity entity : environmentEntities) {\n\t\t\tEnvironmentVO enVo = new EnvironmentVO();\n\t\t\tenVo.setEnvironmentId(entity.getEnvironmentId());\n\t\t\tenVo.setEnvironmentName(entity.getEnvironmentName());\n\t\t\tenVo.setMarathonUrl(entity.getMarathonURL());\n\t\t\tenVo.setMarathonCred(entity.getMarathonCred());\n\t\t\tif(entity.getMarathonJson()!=null){\n\t\t\t\tbyte[] data = entity.getMarathonJson().getBytes(1, (int) entity.getMarathonJson().length());\n\t\t\t\tenVo.setMarathonJson(new String(data));\n\t\t\t}\n\t\t\tenVo.setEastMarathonUrl(entity.getEastMarathonURL());\n\t\t\tif(entity.getEastMarathonJson()!=null){\n\t\t\t\tbyte[] data = entity.getEastMarathonJson().getBytes(1, (int) entity.getEastMarathonJson().length());\n\t\t\t\tenVo.setEastMarathonJson(new String(data));\n\t\t\t}\n\t\t\tenVo.setK8sUrl(entity.getK8sUrl());\n\t\t\tenVo.setK8sCred(entity.getK8sCred());\n\t\t\tenVo.setK8sTpsQuery(entity.getK8sTpsQuery());\n\t\t\tenVo.setK8sLatencyQuery(entity.getK8sLatencyQuery());\n\t\t\tenVo.setMesosTpsQuery(entity.getMesosTpsQuery());\n\t\t\tenVo.setMesosLatencyQuery(entity.getMesosLatencyQuery());\n\t\t\tenvironmentVOs.add(enVo);\n\t\t}\n\t\ttxn.commit();\n\t\treturn environmentVOs;\n\t}", "public static int getEnvironmentsCount() {\n\t\treturn getService().getEnvironmentsCount();\n\t}", "public static it.vmt.gh.sb.model.Environment getEnvironment(\n\t\t\tlong environmentId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException {\n\n\t\treturn getService().getEnvironment(environmentId);\n\t}", "public int minKnight() {\r\n\t\treturn enviroment;\r\n\t}", "public void setGameEnvironment(GameEnvironment gameEnvironment) {\r\n this.gameE = gameEnvironment;\r\n }", "EnvironmentLoader getEnvironmentLoader();", "public String getEnvironment(String env) {\n\t\treturn environment.get(env);\n\t}", "public void setGameEnvironment(GameEnvironment ge) {\n this.gameEnvironment = ge;\n }", "public int getEnvCount() {\n return env_.size();\n }", "public String getDevelopmentToolingandEnvironment() {\n return developmentToolingandEnvironment;\n }", "java.lang.String getEnv(int index);", "public int getEnvCount() {\n return env_.size();\n }", "public static TrackableEnvironment createEnvironment() {\n return null;\n }", "public String getSystemEnv() {\n return \"\";\n }", "public interface Environment {\n\tpublic Object resolveVariable(String name);\n\tpublic List<String> getRegisteredVariableNames();\n}", "public java.lang.String getEnv(int index) {\n return env_.get(index);\n }", "public java.lang.String getEnv(int index) {\n return env_.get(index);\n }", "public static synchronized GraphicsEnvironment getLocalGraphicsEnvironment() {\n return Toolkit.getDefaultToolkit().getLocalGraphicsEnvironment();\n }", "public EnvironmentType getEnvTypes() {\n return envTypes;\n }", "public static LinkedHashMap<String, String> getServerEnvi() {\n return _m_server_envi;\n }", "private void loadEnvironment () {\r\n Factory forceFactory = new ForceFactory(mySimulation);\r\n int response = INPUT_CHOOSER.showDialog(null, \"Environment file\");\r\n if (response == JFileChooser.APPROVE_OPTION) {\r\n forceFactory.loadFile(INPUT_CHOOSER.getSelectedFile());\r\n }\r\n }", "public Environment(Environment e){\r\n\t\tthis.creatureList = new ArrayList<Creature>();\r\n\t\tsandboxMap = new int[e.sandboxMap.length][e.sandboxMap[0].length];\r\n\t\tfor (int i = 0; i < sandboxMap.length; i++){\r\n\t\t\tfor (int j = 0; j < sandboxMap[i].length; j++){\r\n\t\t\t\tsandboxMap[i][j] = e.sandboxMap[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ExperimentationConfiguration getExperimentationConfiguration() {\n return new ExperimentationConfiguration(this.applicationContext);\n }", "public boolean isInEnv()\n {\n return environment().objectAt(location()) == this;\n }", "private static String mode() {\n return System.getProperty(SYSTEM_PROPERTY_NAME, System.getenv(ENV_VARIABLE_NAME));\n }", "public ArenaState getArenaState() {\n return arenaState;\n }", "public synchronized Map<String, String> getenv() {\n return System.getenv();\n }", "public Single<EnvironmentInfo> getDeviceInfo() {\n return Single.just(EnvironmentInfo.create(Build.VERSION.RELEASE,\n String.format(\"%s(%s)\", BuildConfig.VERSION_NAME,\n BuildConfig.VERSION_CODE), Build.MODEL));\n }", "public static it.vmt.gh.sb.model.Environment\n\t\tfetchEnvironmentByUuidAndGroupId(String uuid, long groupId) {\n\n\t\treturn getService().fetchEnvironmentByUuidAndGroupId(uuid, groupId);\n\t}", "public JexlEngine.Scope getScope() {\r\n return scope;\r\n }", "public EnvironmentPaint getSkyPaint() {\n return this.skyPaint;\n }", "public StaticContext getUnderlyingStaticContext() {\n return env;\n }", "protected HashSet<String> getEnvironmentDependentSystems() {\r\n\t\tif (environmentDependentSystems==null) {\r\n\t\t\tenvironmentDependentSystems = new HashSet<String>();\r\n\t\t}\r\n\t\treturn environmentDependentSystems;\r\n\t}", "public interface RealEnvironment extends Environment {\n\n}", "@JsonProperty(\"environmentName\")\n public String getEnvironmentName() {\n return environmentName;\n }", "@NotNull\n @Contract(pure = true)\n public Arena getArena() {\n return arena;\n }", "public IAgent getAgent(final IScope scope) {\n\t\tfinal ITopLevelAgent root = scope.getRoot();\n\t\tIPopulation<? extends IAgent> pop = root.getPopulation();\n\t\tIAgent currentAgent = pop.getAgent(indexes[indexes.length - 1]);\n\t\tif (species.length == 1)\n\t\t\treturn currentAgent;\n\n\t\tfor (int i = species.length - 2; i >= 0; i--) {\n\t\t\tpop = currentAgent.getPopulationFor(species[i]);\n\t\t\tcurrentAgent = pop.getAgent(indexes[i]);\n\t\t}\n\t\treturn currentAgent;\n\n\t}", "public Map<String, String> getEnv(URI uri) throws CoreException;", "public static it.vmt.gh.sb.model.Environment getEnvironmentByUuidAndGroupId(\n\t\t\tString uuid, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.PortalException {\n\n\t\treturn getService().getEnvironmentByUuidAndGroupId(uuid, groupId);\n\t}", "public static SecureEnvironment getInstance() {\n // if the security manager has been changed, see if the caller is allowed to access it\n checkAccess();\n return instance;\n }", "public Body getPlanet() {\n return this.currentPlanet;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Environment size: \");\n sb.append(environmentSize);\n sb.append(\"\\n\");\n sb.append(\"Maximum number of iterations: \");\n sb.append(maxIterations);\n sb.append(\"\\n\");\n sb.append(\"Number of environment simulations: \");\n sb.append(numEnvironmentRuns);\n\n if (environment instanceof EnvironmentAI) {\n sb.append(\"\\n\");\n sb.append(\"Number of inputs: \").append(numInputs);\n sb.append(\"\\n\");\n sb.append(\"Number of hidden units: \").append(numHiddenUnits);\n sb.append(\"\\n\");\n sb.append(\"Number of outputs: \").append(numOutputs);\n sb.append(\"\\n\");\n sb.append(\"Activation function(s): \").append(activationFunctions);\n }\n\n return sb.toString();\n }", "public TicTacToeEnvironmentInterface() {\n\t}", "private Environment getEnvironmentExcluded(State lower, State upper) throws Exception {\n if(!upper.isAncestor(lower)) {\n throw new Exception(\"Analyser.getEnvironmentExcluded : upper should be an ancestor of lower.\");\n }\n if(upper != lower.getSuperstate()) {\n return new Environment(lower.declarations, getEnvironmentExcluded(lower.getSuperstate(), upper));\n }\n else {\n return new Environment(lower.declarations, null);\n }\n }", "public ArenaI getArena() {\r\n\t\treturn arena;\r\n\t}", "TipoEnvio getTipoEnvio();" ]
[ "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.6089964", "0.6089964", "0.6066517", "0.6050558", "0.60382736", "0.601385", "0.5997924", "0.5956657", "0.5914214", "0.58668536", "0.5836947", "0.5796393", "0.57539785", "0.5677887", "0.5676126", "0.5656046", "0.5604738", "0.55774176", "0.5557256", "0.5529523", "0.55211776", "0.5513126", "0.5501789", "0.5501789", "0.5490925", "0.5431108", "0.54282665", "0.5387563", "0.53870636", "0.5367011", "0.52984214", "0.5290675", "0.5246525", "0.5224969", "0.5224327", "0.52229875", "0.51568615", "0.51565266", "0.51551497", "0.51381844", "0.51221615", "0.5101765", "0.5090222", "0.5088591", "0.5085988", "0.5075185", "0.507262", "0.5050704", "0.503562", "0.501056", "0.5004153", "0.50034857", "0.49589878", "0.4958363", "0.49569267", "0.4948941", "0.49380437", "0.49370468", "0.49171546", "0.4895404", "0.48466593", "0.4838046", "0.4813853", "0.4809087", "0.48061895", "0.48002714", "0.47828242", "0.47826353", "0.4771857", "0.47672346", "0.4746186", "0.47247258", "0.47111863", "0.47068915", "0.4702222", "0.47009018", "0.46921125", "0.4689002", "0.46875447", "0.46827373" ]
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(){\n return (super.postOrden());\n }", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "@Override\n\tpublic void reset(int iteration) {\n\n\t}", "@Override\n protected void runOneIteration() throws Exception {\n }", "protected int getIteration() {\n\t\treturn iteration;\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\n\tpublic Iterator<T> iteratorPostOrder() {\n\t\treturn null;\n\t}", "protected void runAfterIterations() {}", "protected void runBeforeIterations() {}", "@Override\n public Iterator<T> impNiveles(){\n return (super.impNiveles());\n }", "public int getIteration();", "private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}", "@Override\n public Iterator<T> preOrden(){\n return (super.preOrden());\n }", "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "private void poetries() {\n\n\t}", "public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }", "private void gobble(Iterator<String> iter) {\n }", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "public void nextIteration() {t++;}", "private void iterativeDataPropertyMetrics() {\n\t}", "@Override\n\tpublic boolean getAllowIteration() {\n\t\treturn false;\n\t}", "public void nextIteration()\n {\n actuelIteration++;\n }", "@Override\n public Iterator<E> getPostorderIterator() {\n return new PostorderIterator();\n }", "public abstract void completeIteration();", "private void setNextIterator() {\n\t\t\t\n\t\t\tfor (int i = index; i < inconsistencies.size(); i++){\n\t\t\t\tSet<LPGInconsistency> inconsistencyList = inconsistencies.get(i);\n\t\t\t\tif (!inconsistencyList.isEmpty()) {\n\t\t\t\t\titerator = inconsistencyList.iterator();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tindex++;\n\t\t\t}\n\t\t}", "protected abstract void recombineNext();", "protected class_496 method_1607() {\n if (this.field_934.field_183 != this.field_938) {\n throw new ConcurrentModificationException();\n } else {\n class_496 var1 = this.field_937;\n if (var1 == null) {\n throw new NoSuchElementException(\"No next() entry in the iteration\");\n } else {\n class_496[] var2 = this.field_934.field_181;\n int var3 = this.field_935;\n\n class_496 var4;\n for(var4 = var1.field_903; var4 == null && var3 > 0; var4 = var2[var3]) {\n --var3;\n }\n\n this.field_937 = var4;\n this.field_935 = var3;\n this.field_936 = var1;\n return var1;\n }\n }\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public void inOrderTraverseIterative();", "@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}", "protected void iteration() {\n\t\t\tmHandler.removeCallbacks(mIteration);\n\t\t\tif (mVisible) {\n\t\t\t\tmHandler.postDelayed(mIteration, 1000 / 25);\n\t\t\t}\n\t\t}", "public abstract Iterator<C17883a<E>> mo45843b();", "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "@Override\n\tprotected void interr() {\n\t}", "private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }", "@Override\r\n\tpublic void next() {\n\n\t}", "@Override\n\tpublic Iterator<T> iteratorPreOrder() {\n\t\treturn null;\n\t}", "public Iterator getIterator() {\n/* 87 */ return this.iterator;\n/* */ }", "@Override\n\tpublic void next() {\n\t\t\n\t}", "@Override\n public void preprocess() {\n }", "public abstract Iterator initialStateIterator ();", "@Override\n\tpublic void next()\n\t{\n\n\t}", "@Override\n\tpublic void postorder() {\n\n\t}", "@Test\n public void test8() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1354,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test8\");\n Integer[] integerArray0 = new Integer[9];\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.arrayListIterator(integerArray0);\n assertEquals(true, resettableListIterator0.hasNext());\n }", "@Override\r\n\tpublic Iterator<T> iteratorPostOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tthis.traversePostOrder(this.root, list);\r\n\t\treturn list.iterator();\r\n\t}", "protected boolean hasNextStep() {\n\t\treturn iteration == 0;\n\t}", "OIterator<V> after();", "private ArrayIterator(){\n itemsRemaining = itemCount;\n temp = (Item[]) new Object[itemCount]; //slightly less than N\n reset();\n StdRandom.shuffle(temp);\n }", "public boolean eliminateLoop(){ return false; }", "@Test\n public void test22() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1343,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test22\");\n Properties[] propertiesArray0 = new Properties[9];\n ResettableIterator<Properties> resettableIterator0 = IteratorUtils.arrayIterator(propertiesArray0);\n Iterable<Properties> iterable0 = IteratorUtils.asIterable((Iterator<? extends Properties>) resettableIterator0);\n assertNotNull(iterable0);\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "@Test\r\n\tpublic void testIterator()\r\n\t{\r\n\t\tInteger[] results =\r\n\t\t{ 5, 7, 3 };\r\n\t\tint i = 0;\r\n\t\tfor (Integer item : threeElementsInOrder)\r\n\t\t{\r\n\t\t\tassertEquals(results[i], item);\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void iterator() {\n }", "@Override\n public void preprocess() {\n }", "public void nextHard() {\n\t\titerator.next();\n\t}", "public int getIterationLimit() {return iterationLimit;}", "private EvalResult iterateObject(Expression left, Environment env, EvalResult ourIterable) throws Exception {\n Map<String, EvalResult> ourObject = (HashMap) ourIterable._value;\n\n for(Map.Entry<String, EvalResult> binding : ourObject.entrySet()) {\n EvalResult keyValuePair = getKeyValuePair(binding);\n evaluator.Bind(_iterator, keyValuePair, env);\n\n if(_diagnostics.size() > 0)\n return null;\n\n EvalResult bodyResult = _body.evaluate(env);\n _diagnostics.addAll(_body.getDiagnostics());\n\n if(_diagnostics.size() > 0)\n return null;\n\n if(bodyResult._value != null)\n return bodyResult;\n\n }\n return null;\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Test\n public void test17() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1337,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test17\");\n LinkedHashSet<Object> linkedHashSet0 = new LinkedHashSet<Object>();\n ResettableIterator<Object> resettableIterator0 = IteratorUtils.loopingIterator((Collection<?>) linkedHashSet0);\n assertEquals(false, resettableIterator0.hasNext());\n }", "@Override\n\t\t\tpublic Iterator<Integer> iterator() {\n\t\t\t\treturn new Iterator<Integer>() {\n\n\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void remove() {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Integer next() {\n\t\t\t\t\t\tif (index >= length)\n\t\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t\treturn offset + index * delta;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean hasNext() {\n\t\t\t\t\t\treturn ++index < length;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}", "private void testExternalIteration1() {\n\t\tfor(Movie m: movies){\n//\t\t\tSystem.out.println(\"Inside external iteration\");\n\t\t\tif(m.isClassic()){\n\t\t\t\ttop2Classics.add(m);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Top 2 classics (Ext Iteration): \" + top2Classics);\n\t}", "public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1328,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test0\");\n HashMap<String, StringTokenizer>[] hashMapArray0 = (HashMap<String, StringTokenizer>[]) Array.newInstance(HashMap.class, 3);\n ObjectArrayListIterator<HashMap<String, StringTokenizer>> objectArrayListIterator0 = new ObjectArrayListIterator<HashMap<String, StringTokenizer>>(hashMapArray0, 0, 0);\n List<HashMap<String, StringTokenizer>> list0 = IteratorUtils.toList((Iterator<? extends HashMap<String, StringTokenizer>>) objectArrayListIterator0);\n LoopingListIterator<HashMap<String, StringTokenizer>> loopingListIterator0 = new LoopingListIterator<HashMap<String, StringTokenizer>>(list0);\n ListIterator<HashMap<String, StringTokenizer>> listIterator0 = IteratorUtils.unmodifiableListIterator((ListIterator<HashMap<String, StringTokenizer>>) loopingListIterator0);\n assertEquals(false, listIterator0.hasPrevious());\n }", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "@Test\n public void test0() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(544,\"org.apache.commons.collections4.iterators.IteratorIterableEvoSuiteTest.test0\");\n EntrySetMapIterator<Integer, Object>[] entrySetMapIteratorArray0 = (EntrySetMapIterator<Integer, Object>[]) Array.newInstance(EntrySetMapIterator.class, 7);\n ObjectArrayIterator<EntrySetMapIterator<Integer, Object>> objectArrayIterator0 = new ObjectArrayIterator<EntrySetMapIterator<Integer, Object>>(entrySetMapIteratorArray0, 0, 0);\n IteratorIterable<Object> iteratorIterable0 = new IteratorIterable<Object>((Iterator<?>) objectArrayIterator0, true);\n }", "private ValueIterator()\n {\n currentIndex = 0;\n numberLeft = numberOfEntries;\n }", "public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}", "@Test\n public void test11() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1331,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test11\");\n Properties[] propertiesArray0 = new Properties[2];\n ResettableListIterator<Properties> resettableListIterator0 = IteratorUtils.arrayListIterator(propertiesArray0, 0, 0);\n assertNotNull(resettableListIterator0);\n assertEquals(false, resettableListIterator0.hasNext());\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "public void preprocess() {\n }", "@Override\n protected void triggerNextIteration() throws IllegalActionException {\n }", "public void processed(int i);", "private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}", "@Override\n\tpublic void skip() {\n\t}", "protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }", "@Override\n public Iterator<Piedra> iterator() {\n return piedras.iterator();\n \n //crear un iterator propio\n// return new Iterator<Piedra>(){\n// int index=0;\n// @Override\n// public boolean hasNext() {\n// return piedras.size()>index;\n// }\n//\n// @Override\n// public Piedra next() {\n// return piedras.get(index++);\n// }\n// \n// };\n }", "void iterate( int numberOfDocs, int maxIterations ) {\r\n double[] x = new double[numberOfDocs];\r\n double[] xPrime = new double[numberOfDocs]; xPrime[0] = 1;\r\n int numIteration = 0;\r\n while (!diffLessThanEpsilon(x, xPrime) && numIteration < maxIterations) {\r\n numIteration++;\r\n x = xPrime;\r\n xPrime = multiplyWithTransition(x);\r\n }\r\n printPageRanks(xPrime);\r\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public IterR(){\n }", "private DocumentOrderIterator() {}", "public Iterator<Item> iterator() { return new RandomIterator();}", "@Override\n\tpublic void processing() {\n\n\t}", "@Override\n public Iterator<T> inOrden(){\n return (super.inOrden());\n }", "public void prepareNextPhase() {\n if (evaluatedCells != null) {\n log.info(\"Preparing Next Phase \" + evaluatedCells.size());\n for (Cell cell : evaluatedCells) {\n cell.prepareNextPhase();\n }\n evaluatedCells.clear();\n }\n }", "protected Collection method_1554() {\n return this.method_1559();\n }", "Itr(int batch) {\n this.batch = batch;\n }", "@Test\n public void test18() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1338,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test18\");\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n ResettableListIterator<Integer> resettableListIterator0 = IteratorUtils.loopingListIterator((List<Integer>) linkedList0);\n assertEquals(false, resettableListIterator0.hasPrevious());\n }", "@Test\n public void test23() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1344,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test23\");\n OrderedMapIterator<Class<StringTokenizer>, Properties> orderedMapIterator0 = IteratorUtils.emptyOrderedMapIterator();\n AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties> abstractOrderedMapIteratorDecorator0 = new AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties>(orderedMapIterator0);\n Iterable<Object> iterable0 = IteratorUtils.asMultipleUseIterable((Iterator<?>) abstractOrderedMapIteratorDecorator0);\n assertNotNull(iterable0);\n }", "Iteration(T[] array, int amount) { \r\n items = array;\r\n count = amount;\r\n now = 0;\r\n }", "public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}", "public boolean iterate() {\n\t\tupdated = false;\n//\t\tSystem.out.println(\"QN iterations \"+iterations);\n\t\tif( mode == 0 ) {\n\t\t\treturn computeSearchDirection();\n\t\t} else {\n\t\t\treturn performLineSearch();\n\t\t}\n\t}", "@Override\n public void reset() {\n iterator = collection.iterator();\n }", "@Override\n protected void incrementStates() {\n\n }", "public void skip(){\n if (!this.hasNext()) return;\n \n this.checkNext();\n \n if (!this.allStatesIterator.hasNext()){\n this.allStatesIterator = new IntegerIterator(1);\n this.allStatesIterator.skip();\n \n if(!this.allSubsetsIterator.hasNext()){\n this.allSubsetsIterator = new SubsetIterator(this.numberOfStates);\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n this.currentTransitions = this.allTransitionsIterator.next();\n }\n else{\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n }\n }\n else{\n this.currentInitialStateId = this.allStatesIterator.next();\n }\n }" ]
[ "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.56575453", "0.56505716", "0.56445026", "0.5633499", "0.5631401", "0.5607443", "0.56045294", "0.55516034", "0.55404675", "0.5520576", "0.55055094", "0.5444801", "0.5442562", "0.54424286", "0.5428586", "0.5403441", "0.5372867", "0.53643614", "0.5359277", "0.53449166", "0.5327381", "0.53186476", "0.531484", "0.53062", "0.5293523", "0.52925354", "0.52909964", "0.52898467", "0.52746344", "0.5263773", "0.52391833", "0.5238387", "0.5220847", "0.5212255", "0.5207878", "0.52070445", "0.5198208", "0.519588", "0.5192752", "0.5188612", "0.5187892", "0.51855284", "0.5183667", "0.51829094", "0.5181057", "0.5179079", "0.5146597", "0.5137915", "0.5134131", "0.51315016", "0.51297", "0.51284057", "0.5118963", "0.5111645", "0.5111645", "0.5111645", "0.5111645", "0.5108637", "0.5105779", "0.5098651", "0.50964785", "0.50899035", "0.5088339", "0.50810236", "0.50772536", "0.507558", "0.5072114", "0.5069565", "0.50694895", "0.5067351", "0.5054506", "0.5049939", "0.50456023", "0.50455487", "0.5043302", "0.50427306", "0.5033839", "0.5027807", "0.50274396", "0.5026854", "0.50224423" ]
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\");\r\n initialRun();\r\n initialize(\"crack\");\r\n initialRun(); \r\n initialize(\"cross\");\r\n initialRun();\r\n }", "@Override\n public void run() {\n if (experiment.randomSeed != -1) {\n ThreadLocalRandom.current().setSeed(experiment.randomSeed);\n }\n\n // Initialise the environment and agents\n environment.initialise();\n for (Agent agent : agents) {\n agent.initialise();\n }\n\n // Add the agents to the environment\n for (Agent agent : agents) {\n environment.add(agent);\n }\n\n // Run the experiment\n for (int update = 1, episode = 1; update <= experiment.totalUpdates; episode++) {\n // Restart the environment at the beginning of an episode\n environment.restart();\n\n // Play out an episode\n for (int turn = 1; !environment.isTerminal() && (environment.maxTurns() == 0 || turn <= environment.maxTurns()) && update <= experiment.totalUpdates; turn++, update++) {\n // Perform the next turn\n environment.performTurn();\n\n // Increment the task\n task.increment();\n\n // If evaluation point\n if (update % experiment.observationFrequency == 0) {\n evaluate(run, update, episode);\n }\n }\n }\n }", "public void run() {\n // Print runner description\n System.out.println(this.description);\n \n // Create a list of integers\n List <Integer> myList = makeList(30000);\n \n // Record starting time, for benchmarking\n long startTime = System.currentTimeMillis();\n \n // Execute 1000 solve syscles, to accumlate some time\n int result = 0;\n for (int i = 1; i <= 1000; i++) {\n result = runOnce(myList);\n }\n // Record ending time \n long endTime = System.currentTimeMillis();\n \n // Show the result and the execution time \n System.out.format(\"The result is %d.\\n\", result);\n System.out.println(\"Total execution time: \" + \n (endTime-startTime) + \"ms\\n\");\n }", "public static void main(java.lang.String[] args) {\r\n\t\tdouble TotalWaitTimeHistogram = 0;\r\n\t\tint k = 0;\r\n\t\twhile (k < 20) {\r\n\t\t\t// make a new experiment\r\n\t\t\t// Use as experiment name a OS filename compatible string!!\r\n\t\t\t// Otherwise your simulation will crash!!\r\n\t\t\r\n\t\t\tExperiment experiment = new Experiment(\"Vancarrier Model\");\r\n\r\n\t\t\t// make a new model\r\n\t\t\t// null as first parameter because it is the main model and has no\r\n\t\t\t// mastermodel\r\n\t\t\tVancarrierModel vc_1st_p_Model = new VancarrierModel(null, \"Vancarrier Model\", true, false);\r\n\r\n\t\t\t// connect Experiment and Model\r\n\t\t\tvc_1st_p_Model.connectToExperiment(experiment);\r\n\r\n\t\t\t// set trace\r\n\t\t\texperiment.tracePeriod(new TimeInstant(0), new TimeInstant(100));\r\n\r\n\t\t\t// now set the time this simulation should stop at\r\n\t\t\t// let him work 1500 Minutes\r\n\t\t\t//experiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.stop(new TimeInstant(1500));\r\n\t\t\texperiment.setShowProgressBar(false);\r\n\r\n\t\t\t// start the Experiment with start time 0.0\r\n\t\t\texperiment.start();\r\n\r\n\t\t\t// --> now the simulation is running until it reaches its ending\r\n\t\t\t// criteria\r\n\t\t\t// ...\r\n\t\t\t// ...\r\n\t\t\t// <-- after reaching ending criteria, the main thread returns here\r\n\r\n\t\t\t// print the report about the already existing reporters into the\r\n\t\t\t// report file\r\n\t\t\texperiment.report();\r\n\r\n\t\t\t// stop all threads still alive and close all output files\r\n\t\t\texperiment.finish();\r\n\r\n\t\t\tTotalWaitTimeHistogram += vc_1st_p_Model.waitTimeHistogram.getMean();\r\n\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Truck Wait Times Mean of \" + k + \" iterations: \" + (TotalWaitTimeHistogram / k));\r\n\t}", "public void run() {\n\t\tparams.set(\"Status\", \"Configuring\");\n\t\tJob.animate();\n\t\t\n\t\tint tsim = params.iget(\"Sim Time\");\n\t\tReadInUtil riu = new ReadInUtil(params.sget(\"Parameter File\"));\n\t\tp2 = riu.getOFCparams();\n\t\tdouble[] av = new double[]{0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9};\n\t\triu = null;\n\t\t\n\t\twhile(true){\n\t\t\tfor(double alpha : av){\n\t\t\t\tparams.set(\"Status\", \"Intializing\");\n\t\t\t\tparams.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tp2.set(\"Dissipation (\\u03B1)\",alpha);\n\t\t\t\tJob.animate();\n\t\t\t\tmodel = new ofc2Dfast(p2);\n\t\t\t\tmodel.setClength(tsim);\n\t\t\t\t// read in stress from file\n\t\t\t\triu = new ReadInUtil(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\");\n\t\t\t\tmodel.setStress(riu.getData(0));\t\t\t\t\n\t\t\t\t\n\t\t\t\t// simulate <i>tsim</i> time steps\n\t\t\t\tfor(int tt = 0 ; tt < tsim ; tt++){\n\t\t\t\t\tmodel.evolve(tt, false);\n\t\t\t\t\tif(tt%1000 == 0){\n\t\t\t\t\t\tparams.set(\"Status\",tt);\n\t\t\t\t\t\tJob.animate();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// append data to data file\n\t\t\t\tmodel.appendCdata(model.getOutdir()+File.separator+model.getBname()+\"_Catalogue_\"+(int)(100*alpha)+\".txt\",tsim);\n\t\t\n\t\t\t\t// replace old stress file with new stress file\n\t\t\t\tPrintUtil.overwriteFile(model.getOutdir()+File.separator+model.getBname()+\"_Stress_\"+(int)(100*alpha)+\".txt\",model.getStress());\n\t\t\t\t\n\t\t\t\t// print summary of events in log file\n\t\t\t\teditLogFile(tsim, alpha);\n\t\t\t\t\n\t\t\t\t// update seed\n\t\t\t\tp2.set(\"Random Seed\", p2.iget(\"Random Seed\")+1);\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }", "public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}", "public static void main(String[] args) {\n Simulation sim = new Simulation();\n //runs it.\n sim.Run();\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}", "@Override\npublic void run() {\n\n while(true){\n \n driveSimulation();\n\n waitSleep(5);\n }\n \n}", "@Override\n public int run(String[] args) throws Exception {\n getConf().set(SIMULATION_CLASS, mSimulation.getClass().getName());\n getConf().setInt(NUMBER_OF_SIMULATIONS, mNumberOfSimulations);\n getConf().setInt(NUMBERS_AFTER_COMMA, mNumbersAfterComma);\n\n if (mClearOutputFolder) {\n // clear output\n FileSystem.get(getConf()).delete(mOutputFolder, true);\n }\n\n JobConf conf = new JobConf(getConf(), SimulationTool.class);\n conf.setJobName(\"Simulation\");\n\n conf.setOutputKeyClass(DoubleWritable.class);\n conf.setOutputValueClass(Text.class);\n\n conf.setMapperClass(SimulationMapper.class);\n conf.setReducerClass(SimulationReducer.class);\n\n conf.setInputFormat(TextInputFormat.class);\n conf.setOutputFormat(OutFormat.class);\n\n FileInputFormat.setInputPaths(conf, mInputFolder);\n FileOutputFormat.setOutputPath(conf, mOutputFolder);\n\n JobClient.runJob(conf);\n\n return 0; // it will throw an Exception, if it crashes, so always return zero, we don't care here anymore\n }", "@Override\n public void simulationPeriodic() {\n }", "public void simulation() {\n\t\t//clock period\n\t\tThread clockThread = new ClockThread(pageLists){\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(true){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.currentThread().sleep(50);\n\t\t\t\t\t\tfor(int i = 0; i < 5; i++)\n\t\t\t\t\t\t\tpageList.get(i).modifyCounter();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t};\n\t\tclockThread.start();\n\t\t\n\t\t//simulation access a page\n\t\tint[] indexs = {0,0,3,0,1,0,4,2,3,1,\n\t\t\t\t\t\t0,0,4,0,3,2,2,0,3,4,\n\t\t\t\t\t\t0,3,0,3,1,0,2,3,0,1,\n\t\t\t\t\t\t4,0,0,0,1,0,2,3,0,3,\n\t\t\t\t\t\t0,0,3,0,1,0,2,0,0,0,\n\t\t};\n\t\tfor(int i = 0; i < indexs.length; i++) {\n\t\t\taccessPageItem(indexs[i]);\n\t\t}\n\t\t\n\t\t//page fault\n\t\tPage weedOutPage = getWeedOutPage();\n\t\tSystem.out.println(\"The weed out page is \" + weedOutPage + \"\");\n\t\tfor(int i = 0; i < 5; i++)\n\t\t\tSystem.err.println(pageLists.get(i) + \" the counter is \" + pageLists.get(i).getCounter());\n\t\t\n\t\tclockThread.yield();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tnew Simulation();\n\n\t}", "@Override\n public void run() {\n try {\n generators.forEach(EventGenerator::start);\n if (log.isDebugEnabled()) {\n log.debug(\"Event generators started. Begin event simulation for uuid : \" + uuid);\n }\n } catch (SimulatorInitializationException e) {\n /**\n * catch exception so that any resources opened could be closed and rethrow an exception indicating which\n * simulation failed\n * */\n stop();\n throw new SimulatorInitializationException(\"Error occurred when initializing event generators for \" +\n \"simulation '\" + simulationProperties.getSimulationName() + \"'. \", e);\n }\n eventSimulation();\n }", "@Override\n public void simulationPeriodic() {\n }", "public void setIterations(int iterations) {\r\n\t\tthis.iterations = iterations;\r\n\t}", "protected void runTest(int iterations) {\n\t\tsteps = 0;\n\t\trunBeforeIterations();\n\t\tfor (iteration = 0; iteration < iterations; iteration++) {\n\t\t\trunBeforeIteration();\n\t\t\tstep = 0;\n\t\t\twhile (hasNextStep()) {\n\t\t\t\trunBeforeStep();\n\t\t\t\tresult = runStep();\n\t\t\t\trunAfterStep();\n\t\t\t\tstep++;\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t\trunAfterIteration();\n\t\t}\n\t\trunAfterIterations();\n\t}", "protected static void runningSimulation() {\n Scanner sc = new Scanner(System.in);\n\n try {\n // Getting the simulation type.\n System.out.print(\"Select the Simulation Method : \\n\" +\n \"\\t0 : To Run the Simulation to the Current Waiting Room\\n\" +\n \"\\t1 : To Run the Simulation for the Whole Waiting Room\\n\" +\n \"\\n\\t\\t : \");\n int situation = sc.nextInt();\n sc.nextLine();\n\n // Checking if the Simulation Type is valid.\n if (situation == 0 || situation == 1) {\n creatingSimulationStats(situation);\n simulationReport(TrainStation.getSimulationTrainQueues());\n launchingSimulationGUI(\"SimTQ\", TrainStation.getSimulationTrainQueues(), 0, 0, 0);\n\n }\n // When the simulation type is invalid.\n else {\n System.out.println(\"Invalid Selection.\");\n mainMenu();\n }\n }\n // When an Invalid character is added.\n catch (InputMismatchException e) {\n System.out.println(\"Invalid Input.\");\n mainMenu();\n }\n // When an error is OCCured when writing the simulation report.\n catch ( IOException e) {\n System.out.println(\"ERROR - Making the Simulation Report.\");\n mainMenu();\n }\n }", "public void runSimulation() throws IOException {\n deleteFile(\"data/mm1.out\");\n\t \n\t\t/* Open input and output files. */\n\n infile = new BufferedReader(new FileReader(\"data/mm1.in\"));\n outfile = new BufferedWriter(new FileWriter(\"data/mm1.out\"));\n\n\t\t/* Specify the number of events for the timing function. */\n\n num_events = 2;\n\n\t\t/* Read input parameters. */\n String[] params = infile.readLine().trim().split(\"\\\\s+\");\n assert params.length == 3;\n mean_interarrival = Double.valueOf(params[0]);\n mean_service = Double.valueOf(params[1]);\n num_delays_required = Integer.valueOf(params[2]);\n\n\t\t/* Write report heading and input parameters. */\n outfile.write(\"Single-server queueing system\\n\\n\");\n outfile.write(\"Mean interarrival time \" + mean_interarrival\n + \" minutes\\n\\n\");\n outfile.write(\"Mean service time \" + mean_service + \" minutes\\n\\n\");\n outfile.write(\"Number of customers \" + num_delays_required + \"\\n\\n\");\n\n\t\t/* Initialize the simulation. */\n\n initialize();\n\n\t\t/* Run the simulation while more delays are still needed. */\n\n while (num_custs_delayed < num_delays_required) {\n\n\t\t\t/* Determine the next event. */\n\n timing();\n\n\t\t\t/* Update time-average statistical accumulators. */\n\n update_time_avg_stats();\n\n\t\t\t/* Invoke the appropriate event function. */\n\n switch (next_event_type) {\n case 1:\n arrive();\n break;\n case 2:\n depart();\n break;\n }\n }\n\n\t\t/* Invoke the report generator and end the simulation. */\n\n report();\n\n infile.close();\n outfile.close();\n\n }", "public void run(double[] parameters, String fileNameIn)\n\t{\n\t\ttry\n\t\t{\n\t\t\tnoAnimals = 2;\n\n\t\t\tdiffCo = new double[2][2];\n\t\t\tdiffusionRate = new double[2];\n\n\t\t\tdiffCo[0][0] = parameters[0];\n\t\t\tdiffCo[0][1] = parameters[1];\n\t\t\tdiffusionRate[0] = parameters[4];\n\t\t\tdiffCo[1][0] = parameters[2];\n\t\t\tdiffCo[1][1] = parameters[3];\n\t\t\tdiffusionRate[1] = parameters[5];\n\t\t\tstep = parameters[6];\n\t\t\tT = (int) parameters[7];\n\t\t\tfileName = fileNameIn;\n\t\t\tsetIo(new MapReader(fileName));\n\t\t\tcreateAnimals();\n\t\t\tcreateGrid();\n\t\t\tcreateOutput();\n\t\t\n\t\t\tgetOutput().cleanDirectory(\"./outputs/\");\n\t\t\t\n\t\t\tgetOutput().calcLandArea(getIo().getNeighbours());\n\t\t\n\t\t\tSystem.out.print(\"Simulating populations...\");\n\n\t\t\tint stepnum = 0;\n\n\t\t\tfor (double i = 0; i < t; i += getStep()) {\n\t\t\t\n\t\t\t\t\tif ((stepnum % T == 0) || (stepnum == 0)) \n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int k = 0; k < animals.length; k++) \n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tgetOutput().printMeanDensity(\n\t\t\t\t\t\t\t\t\t\"./outputs/Mean\" + animals[k].getName()\n\t\t\t\t\t\t\t\t\t\t\t+ \"Densities\", animals[k].getDensities(), i);\n\t\t\t\t\t\t\tgetOutput().printPpm(\"./outputs/\" + animals[k].getName()\n\t\t\t\t\t\t\t+ stepnum + \".ppm\", animals[k].getDensities(),getIo().getNeighbours());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.print('.');\n\n\t\t\t\t\t}\n\n\t\t\t\tgetGrid().syncUpdate();\n\t\t\t\tstepnum += 1;\n\n\t\t\t}\n\n\t\t\tif(animals[0].bigChange)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\n*** Warning:\\nVery large changes in local density occurred over single iterations, suggest you use a smaller timestep\\n***\\n\");\n\t\t\t}\n\t\t\tSystem.out.println(\"...done\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something's gone wrong\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "public final void runSimulation(int timeSteps) {\n for (int i = 1; i <= timeSteps; i++) {\n grow();\n System.out.printf(\"Time %d, Population %d%n\", i, population);\n introduceMutations();\n randomizeEnvironment();\n }\n }", "public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}", "public void executeTimeStep(Simulation simulation) {\n }", "public void run() {\n\t\tfor(int i = 0; i < 100; i++) {\n\t\t\t// E step\n\t\t\tsigma = calculateNewSigma();\n\t\t\t// M step\n\t\t\tu = calculateNewU();\n\t\t\t//System.out.println(\"u= \"+u+\"; sigma= \"+sigma);\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"u= \"+u+\"; sigma= \"+sigma);\n\t}", "public void startSimulation();", "public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n// Scenario scenario = ScenarioUtils.loadScenario(config);\n// Controler controler = new Controler(scenario);\n// controler.run();\n\n\n// Config config = this.utils.loadConfig(IOUtils.extendUrl(ExamplesUtils.getTestScenarioURL(\"pt-tutorial\"), \"0.config.xml\"));\n config.controler().setLastIteration(1);\n config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n\n\n// try {\n Controler controler = new Controler(config);\n// final EnterVehicleEventCounter enterVehicleEventCounter = new EnterVehicleEventCounter();\n// final StageActivityDurationChecker stageActivityDurationChecker = new StageActivityDurationChecker();\n// controler.addOverridingModule( new AbstractModule(){\n// @Override public void install() {\n// this.addEventHandlerBinding().toInstance( enterVehicleEventCounter );\n// this.addEventHandlerBinding().toInstance( stageActivityDurationChecker );\n// }\n// });\n controler.run();\n }", "public static void main (String[] args) {\n doLoop(Simulation.class, args);\n System.exit(0);\n }", "public void run() {\n // Main loop:\n // Perform simulation steps of 64 milliseconds\n // and leave the loop when the simulation is over\n while (step(64) != -1) {\n // Read the _distanceSensors:\n // Enter here functions to read sensor data, like:\n // double val = distanceSensor.getValue();\n\n // Process sensor data here\n\n // Enter here functions to send actuator commands, like:\n // led.set(1);\n };\n }", "public void setNumberOfSimulations(int nSimul){\n this.nMonteCarlo = nSimul;\n }", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public static void main( String[] args ) {\r\n \t\t/*Activate connectors*/\r\n \t\tGenericSimulation.setConnectorsAreActive(true);\r\n \t\tBuilderMultiRobotSimulation simulation = new BuilderMultiRobotSimulation();\r\n \t\t/* Specify realistic collision*/\r\n \t\tPhysicsParameters.get().setRealisticCollision(true);\r\n \t\t/* Specify simulation step*/\r\n \t\tPhysicsParameters.get().setPhysicsSimulationStepSize(0.0035f);\r\n \t\t/* Specify smallest resolution factor so that simulation can handle more modules.\r\n \t\t * This is done in order to \"in a way\" avoid stack overflow */\r\n \t\tPhysicsParameters.get().setResolutionFactor(1);\r\n \t\tsimulation.runSimulation(null,true);\r\n \t}", "public void run() {\n\t\t\t while (!stopnow) {\n\t\t\t\t if (!stopnow) {\n\t\t\t\t\t ArrayList<Cell> ng = gol.evolve(gridPane.getSeed());\n\t\t\t\t\t gridPane.setSeed(ng);\n\t\t\t\t\t tickCount++;\n\t\t\t\t\t genCountLabel.setText(\"Generation: \"+tickCount); //Update Counter \n\t\t\t\t\t try \n\t\t\t\t\t {\n\t\t\t\t\t Thread.sleep(TIMER_DELAY);\n\t\t\t\t\t } \n\t\t\t\t\t catch(InterruptedException ex) \n\t\t\t\t\t {\n\t\t\t\t\t Thread.currentThread().interrupt();\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t }\n\t\t }", "public void run() {\r\n System.out.println(\"Start sim\");\r\n for (; isRunning;) {\r\n //int horLaneNum = optView.getUserHorNum();\r\n //if (horLaneNum == 1) {\r\n horX++;\r\n horSTX = horSTX;\r\n horSTY = horSTY;\r\n verY++;\r\n view.repaint();\r\n try {\r\n Thread.sleep(10);\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "private static void runNeedleSimulation() {\n\t\tint iterations = numbersOfIterations(new Scanner(System.in));\n\t\tint hits = needleSimulation(iterations);\n\t\tdouble pi = piCalculation(iterations, hits);\n\t\tSystem.out.println(pi);\n\t\t\n\t\t\n\t}", "private static void simpleRun(String [] args){\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tboolean testHardware = args[0].equals(\"-testCGRAVerilog\");\n\t\t\n\t\t\n\t\tboolean synthesis = false;\n\t\tif(args[0].equals(\"-testCGRAVerilog\") || args[3].equals(\"true\")){\n\t\t\tsynthesis = true;\n\t\t} else if (args[3].equals(\"false\")){\n\t\t\tsynthesis = false;\n\t\t} else{\n\t\t\tSystem.out.println(\"Synthesis parameter not set correctly: \" + args[3]+ \"\");\n\t\t\tSystem.out.println(\"Valid values are \\\"true\\\" and \\\"false\\\"\");\n\t\t\tSystem.out.println(\"Aborting...\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tConfMan configManager = new ConfMan(args[1], applicationPath, synthesis);\n\t\t\n\t\tTrace simpleRunTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tif(configManager.getTraceActivation(\"config\")){\n\t\t\tsimpleRunTrace.setPrefix(\"config\");\n\t\t\tconfigManager.printConfig(simpleRunTrace);\n\t\t}\n\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#.000\", symbols);\n\t\t\n\t\tAmidarSimulationResult results = run(configManager, null, testHardware);\n\t\t\n\t\tif(configManager.getTraceActivation(\"results\")){\n\t\t\tsimpleRunTrace.setPrefix(\"results\");\n\t\t\tsimpleRunTrace.printTableHeader(\"Simulated \"+applicationPath+\" - Synthesis \"+(configManager.getSynthesis()?\"ON\":\"OFF\"));\n\t\t\tsimpleRunTrace.println(\"Ticks: \"+results.getTicks());\n\t\t\tsimpleRunTrace.println(\"Bytecodes: \"+results.getByteCodes());\n\t\t\tsimpleRunTrace.println(\"Energy consumption: \"+formater.format(results.getEnergy()));\n\t\t\tsimpleRunTrace.println(\"Execution Time: \"+results.getExecutionDuration()+\" ms\");\n\t\t\tsimpleRunTrace.printTableHeader(\"Loop Profiling\");\n\t\t\tresults.getProfiler().reportProfile(simpleRunTrace);\n\t\t\tsimpleRunTrace.printTableHeader(\"Kernel Profiling\");\n\t\t\tresults.getKernelProfiler().reportProfile(simpleRunTrace, results.getTicks());\n\t\t}\n\t\t\n\t\tif(testHardware){\n\t\t\tsimpleRunTrace.setPrefix(\"CGRA verilog test\");\n\t\t\tsimpleRunTrace.printTableHeader(\"Testing CGRA Verilog descrption\");\n\t\t\tAmidar core = results.getAmidarCore();\n\t\t\tCGRA myCGRA = (CGRA)core.functionalUnits[core.functionalUnits.length-1]; // CGRA is the last one\n\t\t\t\n\t\t VerilogGenerator gen = target.Processor.Instance.getGenerator();\n\t\t CgraModel model = myCGRA.getModel();\n\t\t model.finalizeCgra();\n\t\t simpleRunTrace.println(\"Generate Verilog...\");\n\t\t gen.printVerilogDescription(\"out\",model);\n\t\t TestbenchGeneratorAmidar tbgen = new TestbenchGeneratorAmidar((VerilogGeneratorAmidar) gen);\n\t\t StimulusAmidar[] stimuli = new StimulusAmidar[1];\n\t\t stimuli = myCGRA.getStimulus().toArray(stimuli);\n\t\t TestbenchContextGenerator tbcongen = new TestbenchContextGenerator(model);\n\t\t tbcongen.exportContext(myCGRA.getContextCopyPEs(), myCGRA.getContextCopyCBOX(), myCGRA.getContextCopyCCU());\n//\t\t for(Stimulus stim : stimuli){\n//\t\t \tSystem.out.println(stim);\n//\t\t }\n\t\t \n\t\t tbgen.exportAppAndPrintTestbench(stimuli);\n\t\t \n//\t\t tbgen.importAppAndPrintTestbench(\"SimpleTest.main\");\n\t\t TestbenchExecutor tbex = new TestbenchExecutor();\n\t\t \n\t\t if(tbex.runTestbench()){\n\t\t \tsimpleRunTrace.println(\"Run was successful - Cosimulation succeeded\");\n\t\t }\n\t\t else{\n\t\t \tConsistencyChecker sammi = new ConsistencyChecker();\n\t\t \tboolean mismatch = sammi.findRegfileMismatch();\n\t\t \tif(mismatch){\n\t\t \t\tsimpleRunTrace.println(\"Error(s) during Simulation. Something went wrong in the data path\");\n\t\t \t}\n\t\t \telse{\n\t\t \t\tsimpleRunTrace.println(\"Emulation / HDL missmatch. Maybe there's is something not equal concerning the communication or FSM.\");\n\t\t \t}\n\t\t }\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n if (args.length == 0) {\n System.out.println(\"Must include at least one argument\");\n System.out.println(\"Args[0] = static or dynamic\");\n return;\n }\n String simulationType = args[0].toLowerCase();\n if (simulationType.equals(\"static\")) {\n String path = \"\";\n if (args.length > 1) {\n //allow more specific folder or file paths to be used\n path = args[1];\n }\n path = (new File(\"\")).getAbsolutePath() + \"/data/FJSS/\" + path;\n runStaticSimulation(path);\n } else if (simulationType.equals(\"dynamic\")) {\n AbstractRule sequencingRule = new WSPT(RuleType.SEQUENCING);\n AbstractRule routingRule = new WIQ(RuleType.ROUTING);\n Objective[] objectives = new Objective[]{MEAN_FLOWTIME, MAX_FLOWTIME, MEAN_WEIGHTED_FLOWTIME};\n Double[] utilLevels = new Double[]{0.85, 0.95};\n\n for (int i = 0; i < 2; ++i) {\n double utilLevel = utilLevels[i];\n for (int j = 0; j < 3; ++j) {\n Objective o = objectives[j];\n System.out.println(\"Objective: \"+o.getName()+\", Utilisation level: \"+utilLevel);\n System.out.println(\"Sequencing rule: \"+sequencingRule.getName());\n //System.out.println(\"Routing rule: \"+routingRule.getName());\n runDynamicSimulation(o, utilLevel, sequencingRule, routingRule);\n }\n }\n } else {\n System.out.println(\"Invalid argument of \"+simulationType+\" specified\");\n }\n }", "@Override\n public void run() {\n start(10, 500);\n }", "protected void runEachSecond() {\n \n }", "public void run() \n\t{\n\t\tif(isRunning == true)\n\t\t{\n\t\t\tsimulation.tick();\n\t\t\tthis.updateStats();\n\t\t}\n\t}", "public void startSimulation(){\n Enumeration enumAgents = agents.elements();\n\n while (enumAgents.hasMoreElements()) {\n ProcessData data = (ProcessData) enumAgents.nextElement();\n createThreadFor(data.agent).start();\n }\n }", "@GetMapping\n private SimulatorResult runSimulator() {\n return simulatorService.runSimulation();\n }", "@Override\r\n\tpublic void run() {\r\n\t\tsim.resetTime(); // reset the simulator (time 0, and reset cumulative variables)\r\n\t\t\r\n\t\t// reset simulation parameters to specified simulation parameters\r\n\t\tsim.setSingleParameter(\"initial \" + stage, initPop);\r\n\t\tsim.setSingleParameter(\"fruit gt multiplier\", gtMultiplier);\r\n\t\tsim.setSingleParameter(\"fruit time lag\", harvestLag);\r\n\t\tsim.setSingleParameter(\"diapause critical temp\", criticalT);\r\n\t\tsim.setSingleParameter(\"diapause daylight hours\", daylightHours);\r\n\t\tsim.setDT(dt);\r\n\t\t\r\n\t\t\r\n\t\t//boolean ignoreFruit = false;\r\n\t\t//boolean ignoreDiapause = false;\r\n\r\n\t\tfor (double i = 0; i < runTime; i += dt) {\r\n\t\t\tsim.run(temps, dt, ignoreFruit, ignoreDiap, startDay); // run the simulator\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tXYSeries[] toPrint = new XYSeries[8]; // array of data series for all lifestages, and fruit quality, vs time\r\n\t\t\r\n\t\ttoPrint[0] = sim.getEggSeries();\r\n\t\ttoPrint[1] = sim.getInst1Series();\r\n\t\ttoPrint[2] = sim.getInst2Series();\r\n\t\ttoPrint[3] = sim.getInst3Series();\r\n\t\ttoPrint[4] = sim.getPupaeSeries();\r\n\t\ttoPrint[5] = sim.getMalesSeries();\r\n\t\ttoPrint[6] = sim.getFemalesSeries();\r\n\t\ttoPrint[7] = sim.getFruitQualitySeries();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 8; i ++) {\r\n\t\t\t\tif (toPrint[i] == null) // check to see if any of the series have not yet been initialized\r\n\t\t\t\t\tthrow new NullPointerException();\r\n\t\t\t\tif (toPrint[i].getItemCount() == 0) // check to see if any of the series have no data points\r\n\t\t\t\t\tthrow new NullPointerException();\r\n\t\t\t}\r\n\t\t} catch(NullPointerException error) { // thrown if none of the series have any points yet i.e. the simulation has not been run\r\n\t\t\tSystem.out.println(\"No data yet! Cannot proceed.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPrintWriter fileOut = new PrintWriter(new File(dataFile));\r\n\t\t\tfileOut.print(\"Time:\" + \"\\t\");\r\n\t\t\t\r\n\t\t\t// all the series have the same number of data points\r\n\t\t\t\r\n\t\t\t// print daily data\r\n\t\t\tfor (int j = 0; j < 6; j ++) { // print data labels\r\n\t\t\t\t\tfileOut.print(names[j] + \":\\t\");\r\n\t\t\t}\r\n\t\t\tfileOut.print(\"females:\\t\");\r\n\t\t\t\r\n\t\t\tfileOut.println();\r\n\t\t\tfor (int i = 0; i < toPrint[0].getItemCount(); i +=20) { // += 20 so it prints every 20th datapoint (i.e. once per day)\r\n\t\t\t\tfileOut.print(toPrint[0].getX(i) + \"\\t\"); // print the timestep (same for all series)\r\n\t\t\t\tfor (int j = 0; j < 7; j ++) {\r\n\t\t\t\t\t\tfileOut.print(toPrint[j].getY(i) + \"\\t\"); // print the corresponding value for the selected series\r\n\t\t\t\t}\r\n\t\t\t\tfileOut.println();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// print overall data\r\n\t\t\tfileOut.println(\"\\n\\nTotal Cumulative Populations\");\r\n\t\t\tfileOut.print(\"\\n\\t\" + sim.getTotEggs() + \"\\t\" + sim.getTotInst1() + \"\\t\" + sim.getTotInst2() + \r\n\t\t\t\t\t\t\t\"\\t\" + sim.getTotInst3() + \"\\t\" + sim.getTotPupae() + \"\\t\" + sim.getTotMales() + \r\n\t\t\t\t\t\t\t\"\\t\" + sim.getTotFemales());\r\n\t\t\tfileOut.println(\"\\n\\nPeak Populations\");\r\n\t\t\tfileOut.print(\"\\n\\t\" + sim.getMaxEggs() + \"\\t\" + sim.getMaxInst1() + \"\\t\" + sim.getMaxInst2() + \r\n\t\t\t\t\t\"\\t\" + sim.getMaxInst3() + \"\\t\" + sim.getMaxPupae() + \"\\t\" + sim.getMaxMales() + \r\n\t\t\t\t\t\"\\t\" + sim.getMaxFemales());\r\n\t\t\tfileOut.println(\"\\n\\nPeak Populations Day\");\r\n\t\t\tfileOut.print(\"\\n\\t\" + sim.getDayMaxEggs() + \"\\t\" + sim.getDayMaxInst1() + \"\\t\" + sim.getDayMaxInst2() + \r\n\t\t\t\t\t\"\\t\" + sim.getDayMaxInst3() + \"\\t\" + sim.getDayMaxPupae() + \"\\t\" + sim.getDayMaxMales() + \r\n\t\t\t\t\t\"\\t\" + sim.getDayMaxFemales());\r\n\t\t\t\r\n\t\t\tfileOut.println(\"\\n\\nDay diapause crossed: \" + sim.getCrossedDiapDay());\r\n\t\t\t\r\n\t\t\tfileOut.close();\r\n\t\t} catch (NullPointerException error) { // if no file was chosen\r\n\t\t\treturn;\r\n\t\t} catch(FileNotFoundException error) {\r\n\t\t\tSystem.out.println(\"Error - output file not found\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// reset parameters to their original values (as specified in the config file)\r\n\t\tsim.setSingleParameter(\"initial \" + stage, firstInitPop); \r\n\t\tsim.setSingleParameter(\"fruit gt multiplier\", firstGtMultiplier);\r\n\t\tsim.setSingleParameter(\"fruit time lag\", firstHarvestLag);\r\n\t\tsim.setSingleParameter(\"diapause critical temp\", firstCriticalT);\r\n\t\tsim.setSingleParameter(\"diapause daylight hours\", firstDaylightHours);\r\n\t}", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void run() {\n\t\t\t\tui = new GUI();\n\t\t\t\tui.generateUI();\n\t\t\t\tui.showUI(true);\n\n\t\t\t\t// Start sim ticking - sim is initialized below *before* this is called\n\t\t\t\tsim.newSim();\n\t\t\t\tsim.start();\n\t\t\t}", "private void runExperiments()\n {\n for (int i = 0; i < count; i++)\n {\n Percolation experiment = new Percolation(size);\n int openCount = 0;\n StdRandom.setSeed(System.currentTimeMillis());\n while (!experiment.percolates())\n {\n int x = StdRandom.uniform(1, size+1);\n int y = StdRandom.uniform(1, size+1);\n if (!experiment.isOpen(x, y))\n {\n experiment.open(x, y);\n openCount++;\n }\n } \n open[i] = (double) openCount / (size * size);\n }\n }", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "public void setNumberOfSims(int numberOfSims) {\n\t\tthis.numberOfSims = numberOfSims;\n\t}", "public static void main(String args[]) throws InterruptedException {\n\t\t// Command line argument parser\n\n// @formatter:off\n/*\n * \t\tif (args.length != 4) {\n * \t\t\tSystem.err.println(\"usage: java Simulation <#customers> <#cooks> <#tables> <count> <randomorders\");\n * \t\t\tSystem.exit(1);\n * \t\t}\n * \t\tint numCustomers = new Integer(args[0]).intValue();\n * \t\tint numCooks = new Integer(args[1]).intValue();\n * \t\tint numTables = new Integer(args[2]).intValue();\n * \t\tint machineCount = new Integer(args[3]).intValue();\n * \t\tboolean randomOrders = new Boolean(args[4]);\n */\n// @formatter: on\n\t\t\n\t\t// Parameters to the simulation\n\t\tint numCustomers = 10;\n\t\tint numCooks = 1;\n\t\tint numTables = 5;\n\t\tint machineCount = 4;\n\t\tboolean randomOrders = false;\n\n\t\t/* Run the simulation and then feed the result into the method to validate simulation. */\n\t\tSystem.out.println(\"Did it work? \" +\n\t\t\tValidate.validateSimulation(\n\t\t\t\trunSimulation(\n\t\t\t\t\tnumCustomers, numCooks,\n\t\t\t\t\tnumTables, machineCount,\n\t\t\t\t\trandomOrders)));\n\t}", "@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void runRandom() throws Exception {\r\n\t\ti = (int) (Math.random()*10)+1;\r\n\t\tfor (int a = 1;a <= i;a++) {\r\n\t\t\ttestRun(a);\r\n\t\t\tSystem.out.println(\"\\n\\n\");\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0; i<5; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tstateTest.open();}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i=0; i<5; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tstateTest.open();}\n\t\t\t}", "public void execute() {\r\n\t\tgraph = new Graph();\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\taddNeighbours(i, j);// adds neighbours/connections for each node\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t\t\r\n\t\trunning = true;// sets the simulation to running\r\n\t}", "private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}", "public static void main(String[] args) {\n\n List<Mine> mines = new ArrayList<>();\n mines.add(new CoalMine(40));\n mines.add(new CoalMine(40));\n mines.add(new CoalMine(40));\n mines.add(new CoalMine(40));\n mines.add(new UraniumMine(100));\n mines.add(new MoonMine(10));\n mines.add(new MoonMine(10));\n mines.add(new HadronCollider(1));\n\n List<EnergyPlant> energyPlants = new ArrayList<>();\n energyPlants.add(new CoalPlant(7));\n energyPlants.add(new CoalPlant(7));\n energyPlants.add(new SolarPlant(2));\n energyPlants.add(new SolarPlant(2));\n energyPlants.add(new NuclearPlant(10000));\n energyPlants.add(new NuclearPlant(10000));\n energyPlants.add(new FusionPlant(20000));\n energyPlants.add(new FusionPlant(20000));\n energyPlants.add(new AnnihilationPlant(25000));\n energyPlants.add(new AnnihilationPlant(25000));\n\n\n var simulation = new Simulation(null, mines, energyPlants);\n simulation.run();\n\n }", "public void run() {\n initRun();\n while (true) {\n this.step();\n }\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n drunkardTest(TEST_STEP_TIMES_1, TEST_STEP_SIZE_1);\n drunkardTest(TEST_STEP_TIMES_2, TEST_STEP_SIZE_2);\n\t}", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "SimulationRun() {\n firms = new ArrayList<>();\n }", "private void evaluate(ArrayList<Individual> children){\n for(Individual i: children){\n RunExperiment runExperiment = new RunExperiment(i, number_cycle + 1);\n runExperiment.run();\n// Thread myThread = new Thread(runExperiment);\n// myThread.start();\n// threads.add(myThread);\n }\n// for(Thread t: threads){\n// try{\n// t.join();\n// }\n// catch(InterruptedException e){\n// System.out.println(\"Could not join: \"+e.getMessage());\n// }\n// }\n }", "public static void main(String[] args) {\n\t\t//int n = Integer.parseInt(args[0]);\n\t\t//int trails = Integer.parseInt(args[1]);\n\t\tint size = Integer.parseInt(args[0]);\n\t\tint trails = Integer.parseInt(args[1]);\n\t\tPercolationStats percolationStats = new PercolationStats(size, trails);\n\t\tpercolationStats.simulate();\n\t\tSystem.out.println(percolationStats);\n\t}", "public void run() {\n System.out.println(name + \" , go!!!\" );\n\n //start running\n while (getCheckpoint() != 20){\n //delay running\n int randNumber = (int) Math.round(LetsGO.getRandomNumber()*weight);\n try {\n Thread.sleep(randNumber);\n }\n catch (InterruptedException e){\n System.out.println(name+\"interrupted.\");\n }\n System.out.println(name + \" has passed checkpoint\" + checkpoint);\n checkpoint++;\n }\n //finished running\n System.out.println(name + \"has finished!\");\n }", "public Builder<V, E> setIterations(int iterations) {\n this.iterations = iterations;\n return this;\n }", "public static Individual run(int number) {\n\n //Initialize logging of the run\n\n DetailsLogger.startNewLog(detailsLogPrefix + \".\" + number + \".xml\");\n DetailsLogger.logParams(prop);\n\n //Set the rng seed\n\n RandomNumberGenerator.getInstance().reseed(number);\n\n //Create new population\n Population pop = new Population();\n pop.setPopulationSize(popSize);\n pop.setSampleIndividual(new BooleanIndividual(dimension));\n pop.createRandomInitialPopulation();\n\n\n //Set the options for the evolutionary algorithm\n EvolutionaryAlgorithm ea = new EvolutionaryAlgorithm();\n ea.setCPUCores(cpu_cores);\n ea.setFitnessFunction(new ExampleFitnessFunction());\n ea.addMatingSelector(new RouletteWheelSelector());\n ea.addOperator(new OnePtXOver(xoverProb));\n ea.addOperator(new BitFlipMutation(mutProb, mutProbPerBit));\n\n //Run the algorithm\n\n try {\n OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(fitnessFilePrefix + \".\" + number));\n OutputStreamWriter progOut = new OutputStreamWriter(new FileOutputStream(objectiveFilePrefix + \".\" + number));\n\n for (int i = 0; i < maxGen; i++) {\n\n //Make one generation\n ea.evolve(pop);\n ArrayList<Individual> sorted = pop.getSortedIndividuals();\n //Log the best individual to console.\n System.out.println(\"fitness: \" + sorted.get(0).getFitnessValue() + \" \" + sorted.get(0));\n\n //Add population statistics to the logs\n StatsLogger.logFitness(pop, out);\n StatsLogger.logObjective(pop, progOut);\n }\n\n OutputStreamWriter bestOut = new OutputStreamWriter(new FileOutputStream(bestPrefix + \".\" + number));\n\n Individual bestInd = pop.getSortedIndividuals().get(0);\n bestOut.write(bestInd.toString());\n\n out.close();\n progOut.close();\n bestOut.close();\n\n DetailsLogger.writeLog();\n\n return bestInd;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public void run(int n){\n System.out.println(\"Find E Program starting on JNumber\");\n System.out.println(\"Finding E to the Nth Number\");\n System.out.println(this.toNth(n));\n System.out.println(\"Find E Program ending on JNumber\");\n }", "private void runTestProcess(Configuration config) throws Exception {\r\n\t\tint timeout = config.getWorkTimeout();\r\n\t\tlog.info(\"Executing test process...\");\r\n\t\t// Start L2\r\n\t\t// Sorted list to make sure first one becomes active always\r\n\t\tArrayList<String> sortedList = new ArrayList<String>(config.getL2machines());\r\n\t\tCollections.sort(sortedList, String.CASE_INSENSITIVE_ORDER);\r\n\t\tfor (String l2: sortedList){\r\n\t\t\tlog.info(\"Start L2 on l2_machines: \" + l2);\r\n\t\t\texecuteWork(l2, new StartL2(config), timeout);\r\n\t\t}\r\n\t\tcwExecutor.start(getCWProperties(config));\r\n\r\n\t\t// Start l1\r\n\t\tlog.info(\"Start L1 on all l1_machines: \" + config.getL1machines());\r\n\t\tif (config.getLoadmachines().size() > 0) {\r\n\t\t\texecuteWork(config.getL1machines(), new StartL1(config), timeout);\r\n\t\t\t// Start load\r\n\t\t\tlog.info(\"Start Load on all load_machines: \"\r\n\t\t\t\t\t+ config.getLoadmachines());\r\n\t\t\texecuteWorkTillFinish(config.getLoadmachines(), new StartLoad(\r\n\t\t\t\t\tconfig));\r\n\t\t} else\r\n\t\t\texecuteWorkTillFinish(config.getL1machines(), new StartL1(config));\r\n\t}", "public void run(int runIndex, String fullPath) throws ClassNotFoundException, IOException, JMException {\n long seed = (long) 100;//can be randomly seeded.\n RandomGenerator RG = new RandomGenerator(seed);\n\n MetricsUtilPlus utils_ = new MetricsUtilPlus();\n Properties config = new Properties();\n\n String configFile = \"HF_Config_Benchmark/RealProblemSetting.txt\";\n String algorithms[] = {\"NSGAII\", \"SPEA2\", \"IBEA\", \"mIBEA\", \"GDE3\"};\n\n try {\n config.load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Failed to load configuration file!\");\n System.exit(-1);\n }\n\n int totalEval = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n int decisionPoints = Integer.parseInt(config.getProperty(\"DecisionPoints\"));//50 iterations\n\n int arcSize = Integer.parseInt(config.getProperty(\"ArchiveSize\"));\n populationSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n arcSize=100;\n populationSize=100;\n totalEval=250*100;\n totalEval=1000*100;\n \n //arcSize=30;\n //populationSize=30;\n //totalEval=30*50;\n\n //int populationSize = popSize;\n int fixedSolutionEvl = (int) (totalEval / decisionPoints);\n \n System.out.println(\"CF; decision=\"+decisionPoints+\";fixed=\"+fixedSolutionEvl+\";total=\"+totalEval);\n\n MetricsUtil util = new MetricsUtil();\n\n int maxEvals = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n\n String SolutionType = config.getProperty(\"SolutionType\");\n int popSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n popSize=100;\n //popSize=30;\n\n Problem[] problemInstances = new Problem[problemCreator.getQtdProblem()];\n int[] numberOfVar = new int[problemCreator.getQtdProblem()];\n double[] mutationProb = new double[problemCreator.getQtdProblem()];\n Operator[] mutations = new Operator[problemCreator.getQtdProblem()];\n\n //reference point for hypervolume calculation\n /*HyperVolumeMinimizationProblem hyp = new HyperVolumeMinimizationProblem();*/\n /*double[] truePFhypervolume = new double[problemCreator.getQtdProblem()];*/\n for (int problemIndex = 0; problemIndex < problemCreator.getQtdProblem(); problemIndex++) {\n\n problemInstances[problemIndex] = problemCreator.getProblemInstance(problemIndex);\n numberOfVar[problemIndex] = problemInstances[problemIndex].getNumberOfVariables();\n mutationProb[problemIndex] = (Double) 1.0 / numberOfVar[problemIndex];\n HashMap parameters = new HashMap();\n parameters.put(\"probability\", mutationProb[problemIndex]);\n double mutationDistributionIndex = Double.parseDouble(config.getProperty(\"MutationDistributionIndex\"));\n parameters.put(\"distributionIndex\", mutationDistributionIndex);\n String mutationType = config.getProperty(\"MutationType\");\n mutations[problemIndex] = new PolynomialMutation(mutationProb[problemIndex], mutationDistributionIndex);\n }\n\n LLHInterface[] algorithm = new LLHInterface[problemCreator.getQtdProblem()];\n\n System.out.println(\"Run \" + runIndex + \"....\");\n\n choiceFunction CF = new choiceFunction();\n\n for (int instanceIndex = 6; instanceIndex < problemInstances.length; instanceIndex++) {\n numberOfObj=problemInstances[instanceIndex].getNumberOfObjectives();\n reference = new double[numberOfObj];\n Arrays.fill(reference,1.0);\n minimumValues = new double[numberOfObj];\n maximumValues = new double[numberOfObj];\n\n for (int i = 0; i < numberOfObj; i++) {\n reference[i] = 1.0;\n }\n\n int remainEval = totalEval;\n List<S> inputPop = null;\n ArrayList<Integer> heuristicList = new ArrayList<Integer>();\n\n int chosenHeuristic = -1;\n\n QualityIndicators quality = new QualityIndicators();\n double[][] algorithmEffortArray = new double[algorithms.length][2];\n double[][] ROIArray = new double[algorithms.length][2];\n double[][] hyperVolumeArray = new double[algorithms.length][2];\n double[][] uniformDistributionArray = new double[algorithms.length][2];\n\n // for the purpose of computing hypervolume.\n initialiseExtremeValues();\n\n long[] elapsedTime = new long[algorithms.length];\n long[] lastInvokeTime = new long[algorithms.length];\n long[] executionTimeArray = new long[algorithms.length];\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = 0;\n }\n\n //initialise population for each instance which is used for each algorithm\n List<S> initialPopulation = ProblemCreator.generateInitialPopulation(problemInstances[instanceIndex], popSize);\n \n List[] resultSolutions = new List[algorithms.length];\n List[] inputSolutions = new List[algorithms.length];\n\n for (int i = 0; i < algorithms.length; i++) {\n inputSolutions[i] = new ArrayList(popSize);\n // at the beginning, all inputsolutions are set as the initialPopulation\n inputSolutions[i] = initialPopulation;\n resultSolutions[i] = new ArrayList(popSize);\n }\n LLHInterface eachAlgorithm = null;\n AlgorithmCreator ac = new AlgorithmCreator(problemInstances[instanceIndex]);\n System.out.println(problemInstances[instanceIndex].getName() + \" \" + problemInstances[instanceIndex].getNumberOfObjectives() + \" \" + problemInstances[instanceIndex].getNumberOfVariables());\n ac.setMaxEvaluationsAndPopulation(totalEval, populationSize);\n //Initialise the choice function matrix and get the initial algorithm\n for (int algorithmIndex = 0; algorithmIndex < algorithms.length; algorithmIndex++) {\n //initialise last invoke time (the start time of calling this algorithm) of each algorithm;\n heuristicList.add(algorithmIndex);\n lastInvokeTime[algorithmIndex] = System.currentTimeMillis();\n\n eachAlgorithm=ac.create(algorithmIndex, remainEval);\n\n long startTime = System.currentTimeMillis();\n\n try {\n resultSolutions[algorithmIndex] = eachAlgorithm.execute(/*initialPopulation*/inputSolutions[algorithmIndex], fixedSolutionEvl);\n } catch (Exception e) {\n e.printStackTrace();\n }\n //record the execution time of each algorithm\n long executionTime = System.currentTimeMillis() - startTime;\n executionTimeArray[algorithmIndex] = executionTime;\n\n remainEval -= fixedSolutionEvl;\n\n //iteration += 2;\n inputSolutions[algorithmIndex] = resultSolutions[algorithmIndex];\n //After executed the algorithm, compute the elapsed time. The end time of called this algorithm\n\n }// end algorithmIndex, executing each algorithm for initialisation the choice function matrix\n\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n // find worst points and best points for all the three populations\n for (int i = 0; i < algorithms.length; i++) {\n updateExtremeValues(resultSolutions[i]);\n }\n\n for (int i = 0; i < algorithms.length; i++) {\n algorithmEffortArray[i][0] = i;\n algorithmEffortArray[i][1] = quality.getAlgorithmEffort(executionTimeArray[i], fixedSolutionEvl);\n\n ROIArray[i][0] = i;\n ROIArray[i][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[i]);\n\n hyperVolumeArray[i][0] = i;\n\n hyperVolumeArray[i][1] = computeScaledHypervolume(resultSolutions[i]);\n //hyperVolumeArray[i][1] = quality.getHyperVolume(resultSolutions[i],realReference);\n\n uniformDistributionArray[i][0] = i;\n uniformDistributionArray[i][1] = quality.getUniformDistribution(resultSolutions[i]);\n\n }\n\n int numberOfMeasures = 4;\n int alpha = 30;//alpha =100;//if turbine number is 30\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //the result population of the chosen heuristic is served as the input population\n inputPop = resultSolutions[chosenHeuristic];\n\n while (remainEval > 0) {\n algorithm[instanceIndex]=ac.create(chosenHeuristic, remainEval);\n\n long beginTime = System.currentTimeMillis();\n //execute the chosen algorithm\n heuristicList.add(chosenHeuristic);\n if (fixedSolutionEvl > remainEval) {\n fixedSolutionEvl = remainEval;\n }\n //warranty size. necessary for small pop\n Random rsn=new SecureRandom();\n while(inputPop.size() < populationSize){\n inputPop.add(inputPop.get(rsn.nextInt(inputPop.size())));\n }\n resultSolutions[chosenHeuristic] = algorithm[instanceIndex].execute(inputPop, fixedSolutionEvl);\n inputPop = resultSolutions[chosenHeuristic];\n \n remainEval -= fixedSolutionEvl;\n\n // update executionTimeArray\n executionTimeArray[chosenHeuristic] = System.currentTimeMillis() - beginTime;\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n algorithmEffortArray[chosenHeuristic][1] = quality.getAlgorithmEffort(executionTimeArray[chosenHeuristic], fixedSolutionEvl);\n\n ROIArray[chosenHeuristic][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[chosenHeuristic]);\n\n updateExtremeValues(resultSolutions[chosenHeuristic]);\n hyperVolumeArray[chosenHeuristic][1] = computeScaledHypervolume(resultSolutions[chosenHeuristic]);\n //hyperVolumeArray[chosenHeuristic][1] = quality.getHyperVolume(resultSolutions[chosenHeuristic],realReference);\n\n uniformDistributionArray[chosenHeuristic][1] = quality.getUniformDistribution(resultSolutions[chosenHeuristic]);\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //heuristicList.add(chosenHeuristic);\t\t\n }//end while(remainEvl >0)\n \n String arrayListPath = fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"_ChosenHeuristic.txt\";\n utils_.printArrayListInteger(heuristicList, arrayListPath);\n List<S> obtainedSolutionSet = SolutionListUtils.getNondominatedSolutions(inputPop);\n new SolutionListOutput(obtainedSolutionSet)\n .setSeparator(\"\\t\")\n .setFunFileOutputContext(new DefaultFileOutputContext(fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"CF_FinalParetoFront\"\n + runIndex + \".txt\"))\n .print();\n //print out true front's hypervolume\n\n }//end each problem instance\n\n System.out.println(\"Finished\");\n\n }", "public void run() {\r\n\t\t\tfor (int k = 0; k < 5; k++) {\r\n\t\t\t\t// System.out.println(\"\"+k);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException ie) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i <= 4; i++) {\r\n\t\t\t\tfor (int j = 0; j < 1000000; j++) {\r\n\t\t\t\t}\r\n\t\t\t\tsetStep((int) Math.pow(2, i) - 1);\r\n\t\t\t\t// enabled = i;\r\n\t\t\t\trepaint();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t} catch (InterruptedException ie) {\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// System.out.println(\"ENDE\");\r\n\t\t}", "public Sample run() {\n\t\t// termination criterion\n\t\tint runsUnchanged = 0;\n\t\tboolean terminated = false;\n\t\tdouble prevBestSampleFit = 0; // remember to set this at some\n\t\t\t\t\t\t\t\t\t\t// point\n\t\tint runs = 0; // testing, remove\n\n\t\t System.out.println(\"Evaluating Particles\");\n\t\t// 1) evaluate all particles\n\t\t// 2) set gBest\n\t\tdouble maxFit = problem.getWorstValue();\n\t\tfor (Particle p : pop) {\n\t\t\tp.calcFitness();\n\n\t\t\t// number of evals done is incremented by numSamples\n\t\t\tnumFitnessEvals += numSamples;\n\n\t\t\tdouble fit = p.getBestSample().getFitness();\n\t\t\t// find initial gBest\n\t\t\tif (problem.compare(maxFit, fit) == 1) {\n\t\t\t\tmaxFit = fit;\n\t\t\t\tbestSample = p.getBestSample();\n\t\t\t\tgBest = p.copy();\n\t\t\t\t System.out.println(\"Global best:\");\n\t\t\t\t bestSample.print();\n\t\t\t}\n\t\t}\n\n\t\twhile (!terminated) {\n\t\t\t System.out.println(\"\\n \\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n\t\t\t System.out.println(\" %%%%%%%%%%%%% RUN \" + runs);\n\t\t\t System.out.println(\" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\");\n\n\t\t\t// iterate through all particles\n\t\t\tfor (Particle p : pop) {\n\t\t\t\t// System.out.println(\"\\n >>>> Particle \");\n\t\t\t\t// p.print();\n\n\t\t\t\t// 1) update velocity\n//\t\t\t\tSystem.out.println(\">> Velocity Update\");\n\t\t\t\tp.updateVelocity(omega, phi1, phi2, gBest);\n\n\t\t\t\t// 2) update position\n//\t\t\t\tSystem.out.println(\">> Position Update \");\n\t\t\t\tp.updatePosition();\n\t\t\t\t// p.print();\n\n\t\t\t\t// 2.5) change the previous best sample fitness\n\t\t\t\tprevBestSampleFit = bestSample.getFitness();\n\n\t\t\t\t// 3) evaluate fitness\n//\t\t\t\tSystem.out.println(\">> Fitness Calc\");\n\t\t\t\tdouble fit = p.calcFitness(); // this is never used\n\t\t\t\t// number of evals done is incremented by numSamples\n\t\t\t\tnumFitnessEvals += numSamples;\n\n\t\t\t\tdouble sampleFit = p.getBestSample().getFitness();\n\n\t\t\t\t// System.out.println(\"Sample fitness: \" + sampleFit + \" >? Best\n\t\t\t\t// fitness: \" + bestSample.getFitness());\n\n\t\t\t\t// compares and adjusts gBest\n\t\t\t\tif (problem.compare(bestSample.getFitness(), sampleFit) == 1) {\n\t\t\t\t\tsetBestSample(p.getBestSample());\n\t\t\t\t\t// set gBest and bias\n\t\t\t\t\tsetGBest(p);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// updating fitness for evaluation\n\t\t\tfitnesses.add(bestSample.getFitness());\n\n\t\t\t// Next half-dozen or so lines used to determine convergence\n\t\t\tif (Math.abs(prevBestSampleFit - bestSample.getFitness()) < threshold) {\n\t\t\t\trunsUnchanged++;\n\t\t\t} else {\n\t\t\t\trunsUnchanged = 0;\n\t\t\t}\n\t\t\tif (runsUnchanged >= numToConsiderConverged) {\n\t\t\t\t// return if the solution hasn't significantly changed in a\n\t\t\t\t// certain\n\t\t\t\t// number of iterations\n\t\t\t\tterminated = true;\n\t\t\t}\n\t\t\truns++;\n\t\t\t// System.out.println(\">>>>>> RUNS: \" + runs);\n\t\t}\n\n\t\tSystem.out.println(\"Returning best sample:\");\n\t\tbestSample.print();\n\t\tSystem.out.println(\"Fitness: \" + bestSample.getFitness());\n\n\t\tSystem.out.println(\"Fitness Aross Evals:\");\n\t\tfor (Double d : fitnesses) {\n\t\t\tSystem.out.print(d + \" \");\n\t\t}\n\t\tSystem.out.println();\n\n\t\treturn bestSample;\n\t}", "public void makeSimulationStep() {\n for (ElevatorController controller : elevatorControllers.values()) {\n controller.makeOneStep();\n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run(int numberOfSteps) {\n\t\tgenerateCells();\n\t\tfor(int i = 0; i < numberOfSteps; i++) {\n\t\t\tprogressCells();\n\t\t}\n\t}", "public static void main(String[] args) {\n System.out.print('\\u000C');\n Scanner scan = new Scanner(System.in);\n \n int INITIAL_MIN = 1;\n int INITIAL_MAX = 20;\n double INTERVAL_MIN = 1;\n double INTERVAL_MAX = 5;\n int INCREMENT_MIN = 1;\n int INCREMENT_MAX = 20;\n \n System.out.print(\"\\n========================================\");\n System.out.print(\"\\nSophocles Software Call Center Sim\\n\");\n System.out.print(\"========================================\\n\");\n \n System.out.println(\"How many customer do you want to be in the initial queue ?\");\n System.out.print(\"Enter a integer between \" + INITIAL_MIN + \" and \" + INITIAL_MAX + \" : \");\n int initialQ = getInRangeInt(scan, INITIAL_MIN, INITIAL_MAX);\n \n System.out.println(\"How long you want one call to continue ?\");\n System.out.print(\"Enter a double between \" + INTERVAL_MIN + \" and \" + INTERVAL_MAX + \" : \");\n double callInterval = getInRangeDouble(scan, INTERVAL_MIN, INTERVAL_MAX);\n \n System.out.println(\"How many calls do you want to complete ?\");\n System.out.print(\"Enter a integer between \" + INCREMENT_MIN + \" and \" + INCREMENT_MAX + \" : \");\n int increment = getInRangeInt(scan, INCREMENT_MIN, INCREMENT_MAX);\n \n Simulation sim = new Simulation(initialQ, callInterval, increment);\n }", "public void simulate(int numberOfWeeks) {\n setChanged();\n notifyObservers(true);\n\n int finalWeek = weeksElapsed + numberOfWeeks;\n\n for (int i = weeksElapsed + 1; i <= finalWeek; i++) {\n ecosystem.simulateOneWeek(i);\n weeksElapsed++;\n //constructPoolList();\n constructPoolHashMap();\n }\n\n setChanged();\n notifyObservers(false);\n }", "public void letWorldRun(int numberCycles) {\n for (int i = 0; i < numberCycles; i++) {\n System.out.println(\"~~~~~~~~DAY \" + (i + 1)\n + \" of simulation~~~~~~~\\nThe environment of\"\n + \" this cycle is \"\n + time.getEnvironment().getLanguage().toString().toLowerCase()\n + \" and it is day time.\");\n time.runCycle(world.getTrainers());\n time = night;\n System.out.println(\"\\n~~~~It is now night time, and the environment of this cycle is \"\n + time.getEnvironment().getLanguage().toString().toLowerCase());\n night.runCycle(world.getTrainers());\n nextDay();\n }\n System.out.println(\"~~~~The simulation is over, calculating trainer stats~~~~\");\n for (Trainer trainer : trainers) {\n trainer.printDetails();\n }\n }", "static int runSimulation1() {\r\n\t\tSimulation sim1 = new Simulation(8, 8, false, false);\r\n\t\twhile(sim1.sameSquare() == false) { //stop when sameSquare\r\n\t\t\tsim1.doMove();\r\n\t\t}\r\n\t\treturn sim1.getTime();\r\n\t}", "public void run() {\n for(int i = 0; i <= 25; i++) {\n try {\n //cada hilo imprime el numero de iteracion y su nombre\n System.out.println(i + \": Hola, soy el hilo \" + getName());\n \n //se \"duerme\" durante unos segundos aleatorios \n Thread.sleep((long) ((Math.random() * (5000 - 100))));\n } catch (InterruptedException ex) {\n Logger.getLogger(Ejercicio1y2_6487.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public void quickSimulation() {\n\t\tnew SimulationControleur();\n\t}", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Starting \"+Thread.currentThread().getName());\n\t\tfor(int i=1;i<=10;i++)\n\t\t{\n\t\t\tSystem.out.println(multiple +\" * \"+\" : \"+multiple*i);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Stopping \"+Thread.currentThread().getName());\n\t\t\n\t}", "@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}", "public NoveltyBehaviour runNovel() {\n final int iterations = config.getSimulationIterations();\n return noveltySimulation(iterations);\n }", "@Override\n public void run() {\n \n initExplorationBounds();\n \n long timer = System.currentTimeMillis();\n \n // ITERATE THROUGH ALL THE POSSIBLE OBJECT SCOPES\n while (configuration.isIncrementalLoopUnroll() ||\n configuration.getObjectScope() <= configuration.getMaximumObjectScope())\n {\n \n // FOR EACH OBJECT SCOPE ITERATE THROUGH ALL THE LOOP UNROLLS\n // UNTIL NO LOOP EXHAUSTION IS ENCOUNTERED\n {\n FajitaRunner.printStep(\"FAJITA: Decorating Java code for \" +\n configuration.getObjectScope() + \" scope and \" +\n configuration.getLoopUnroll() + \" unroll\");\n runFajitaCodeDecorator();\n \n FajitaRunner.printStep(\"FAJITA: Translating Java -> Alloy\");\n runTaco();\n \n if (configuration.isIncrementalLoopUnroll())\n configuration.setInfiniteScope(true);\n \n if (configuration.isOnlyTranslateToAlloy()) {\n System.out.println(\"Translation to Alloy completed.\"); \n return;\n }\n \n if (configuration.getDiscoveredGoals() == 0) {\n System.out.println(\"No goals found for the chosen test selection criterion.\");\n return;\n }\n \n FajitaRunner.printStep(\"FAJITA: Enumerating Solutions using AlloyCLI\");\n runAlloyCli();\n \n FajitaRunner.printStep(\"Reporting Coverage\");\n FajitaOutputProcessor.newProcessor(configuration).getCoverage();\n \n/// boolean loopExhaustionEncountered = configuration.getCoveredGoals().removeAll(\n/// configuration.getLoopExhaustionIncarnations());\n\n System.out.println((System.currentTimeMillis() - timer) / 1000 + \" s\");\n \n // CHECK STOP CONDITIONS\n if (configuration.getCoveredGoals().size() == configuration.getDiscoveredGoals() ||\n configuration.getCoverageCriteria() == CoverageCriteria.CLASS_COVERAGE ||\n (configuration.getCoverageCriteria() == CoverageCriteria.DUAL_CLASS_BRANCH_COVERAGE &&\n (configuration.getDualClassBranchIteration() == 0 ||\n configuration.getCoveredGoals().size() == configuration.getDualDiscoveredBranches())))\n {\n return;\n }\n \n/// if (!loopExhaustionEncountered) break;\n }\n \n if (!configuration.isInfiniteScope()) {\n System.out.println(\"Finite scope exhausted.\");\n break;\n }\n \n configuration.setObjectScope(configuration.getObjectScope() + 1);\n configuration.setLoopUnroll(configuration.getObjectScope() / 2); \n }\n }", "private static void parallelSweep(String [] args){\n\t\t\n\t\t/// CREATE configurations ///////////////////////////////////\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\t\tboolean synthesis = false;\n\t\tif(args[5].equals(\"true\")){\n\t\t\tsynthesis = true;\n\t\t}\n\t\telse if (args[5].equals(\"false\")){\n\t\t\tsynthesis = false;\n\t\t} else{\n\t\t\tSystem.out.println(\"Synthesis parameter not set correctly: \" + args[3]+ \"\");\n\t\t\tSystem.out.println(\"Valid values are \\\"true\\\" and \\\"false\\\"\");\n\t\t\tSystem.out.println(\"Aborting...\");\n\t\t\treturn;\n\t\t}\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, synthesis);\n\t\tConfMan[] cms;\n\t\tAmidarSimulationResult[] results;\n\t\t\n\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, args[3],false);\n\n\t\tcms = sweepConfig.getConfManager();\n\n\t\tTrace sweepTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tsweepTrace.setPrefix(\"basic config\");\n\t\tbaseConfigManager.printConfig(sweepTrace);\n\n\t\tsweepTrace.setPrefix(\"sweep\");\n\t\tsweepTrace.printTableHeader(\"Sweeping:\");\n\n\t\tString registryHost = args[6];\n\t\tint registryPort = Integer.parseInt(args[7]);\n\t\tint nrOfServers = Integer.parseInt(args[4]);\n\t\t//////// Preparing remote /////////\n\t\tlong stop, start = System.nanoTime();\n\t\tresults = parallelRemoteSimulation(sweepConfig, registryHost, registryPort, nrOfServers, sweepTrace);\n\t\tstop = System.nanoTime();\n\t\t\n\t\tif(sweepTrace.active()){\n\t\t\tsweepTrace.setPrefix(\"results\");\n\t\t\tsweepTrace.printTableHeader(\"Simulated \"+applicationPath+\" - Synthesis \"+(synthesis?\"ON\":\"OFF\"));\n\t\t\t\n\t\t\tString[] configs = sweepConfig.getSweepConfigurations();\n\t\t\tfor(int i = 0; i<cms.length; i++){\n\t\t\t\tsweepTrace.println(configs[i] + \":\");\n\t\t\t\tsweepTrace.println(\"\\tTicks: \"+results[i].getTicks());\n\t\t\t\tsweepTrace.println(\"\\tBytecodes: \"+results[i].getByteCodes());\n\t\t\t\t\n\t\t\t\t//\t\t\t\tresultTrace.printTableHeader(\"Loop Profiling\");\n\t\t\t\t//\t\t\t\tresults.get(tm).getProfiler().reportProfile(resultTrace);\n\t\t\t}\n\t\t\tsweepTrace.println();\n\t\t\tsweepTrace.println(\"Execution Time: \"+(stop-start)/1000000+\" ms\");\n\t\t}\n\t\texportPlot(results, sweepConfig);\n\n\t}", "public void run() { // main method\r\n \r\n for(int i=1; i <= 50; i++){ // create loop to run through 1 to 50 \r\n \t if( i % 2 == 0){ // identify if number if even\r\n System.out.print(\"Thread Name: \" + this.getName() + \" Even Number: \" + i + \"\\n\"); // display thread name and even number\r\n\t \tThread.yield(); // yield for other thread\r\n\t }\r\n } \r\n\t}", "public void step(SimState simState) {\n if (state.agents.length > 0 && state.agents[0] instanceof EquitableAgent) {\n boolean shouldGenTasks = true;\n for(int i = 0; i < state.numAgents; i++) {\n EquitableAgent a = (EquitableAgent)state.agents[i];\n if (!EquitablePartitions.nearlyEqual(a.getRateInMyPolygon(), 1.0 / state.numAgents, .05)) {\n shouldGenTasks = false;\n }\n }\n if(shouldGenTasks) {\n generateTasks();\n }else if (state.schedule.getSteps() == 30000) {\n EquitableAgent a = (EquitableAgent)state.agents[0];\n a.setEp(null);\n }\n }else {\n generateTasks();\n }\n }", "public static void main(String[] args) throws Exception { \n\t\tUtils.LIMIT_RELATIONS = true;\n\t\tUtils.WINDOW = 2;\n\t\t\n//\t\tString pid = RandomFile.getPID();\n//\t\tgenerateClass(pid, \"f\", 1, 0, 25);\n//\t\tgenerateClass(pid, \"g\", 2, 0.1, 25);\n\t\t\n\t\tif (args.length != 5) {\n\t\t\tSystem.out.print(\"Usage: numRepeat experiment \");\n\t\t\tSystem.out.print(\"\\\"mean1,mean2,...\\\" \\\"pct1,pct2,..\\\"\");\n\t\t\tSystem.out.print(\"\\\"length1,length2,...\\\"\");\n\t\t\tSystem.out.println();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tUtils.EXPERIMENTS = Integer.parseInt(args[0]);\n\t\tString experiment = args[1];\n\t\tSystem.out.println(\"Experiment: \" + experiment);\n\t\t\n\t\tList<Double> means = new ArrayList<Double>();\n\t\tString[] meanTokens = args[2].split(\"[,]\");\n\t\tfor (String tok : meanTokens)\n\t\t\tmeans.add(Double.parseDouble(tok));\n\t\t\n\t\tList<Double> pcts = new ArrayList<Double>();\n\t\tString[] pctTokens = args[3].split(\"[,]\");\n\t\tfor (String tok : pctTokens)\n\t\t\tpcts.add(Double.parseDouble(tok));\n\t\t\n\t\tList<Integer> lengths = new ArrayList<Integer>();\n\t\tString[] lengthTokens = args[4].split(\"[,]\");\n\t\tfor (String tok : lengthTokens)\n\t\t\tlengths.add(Integer.parseInt(tok));\n\t\t\n\t\tif (\"curve\".equals(experiment)) \n\t\t\tlearningCurve(lengths, means, pcts);\n\t\telse if (\"cluster\".equals(experiment))\n\t\t\tcluster(lengths, means, pcts);\n\t\telse if (\"knn\".equals(experiment))\n\t\t\tknn(lengths, means, pcts);\n\t\telse\n\t\t\texperiment(lengths, means, pcts);\n\t\t\n//\t\texpectedSequenceSizes(lengths,means);\n\t}", "public static void main(String[] args) {\n\t\t// Fix the number of rows and columns in the matrix\n\t\tfinal int NUMBER_OF_ROWS = 6, NUMBER_OF_COLUMNS = 6;\n\n\t\t// matrix of 6 x 6\n\t\tint[][] matrix = { { 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0 }, { 0, 0, 1, 1, 1, 0 }, { 0, 0, 0, 0, 0, 0 },\n\t\t\t\t{ 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0 } };\n\n\t\t// Displaying the initial matrix\n\t\tprintMatrix(matrix, NUMBER_OF_ROWS, NUMBER_OF_COLUMNS);\n\n\t\t// // Loop till all iterations completed in the game\n\t\t// for (int iterationCounter = 0; iterationCounter <= TOTAL_ITERATIONS;\n\t\t// iterationCounter++) {\n\t\t// // perform the nextMatrixCycle step or the iteration\n\t\t// nextIteration(matrix, NUMBER_OF_ROWS, NUMBER_OF_COLUMNS);\n\t\t// }\n\n\t\t// perform the nextMatrixCycle step or the iteration\n\t\tnextIteration(matrix, NUMBER_OF_ROWS, NUMBER_OF_COLUMNS);\n\t}", "private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }", "public static void main(String[] args) {\n double time=100000;\n lambda=0.012;\n m0=40;\n m1=43;\n m2=85;\n t1=32;\n p1=0.35;\n t2=40;\n p2=0.4;\n t3=65;\n p3=0.25;\n K=10;\n p01=0.8;\n p02=0.2;\n pout=0.5;\n p31=0.3;\n p32=0.2;\n \n simulate(time);\n }", "public void start(){\n \n boolean continueSimulation = true;\n \n for (int i = 0; i < a; i++){\n threadArray[i].start();\n }\n \n while(continueSimulation == true){ \n updateBuildingManager();\n \n try{\n Thread.sleep(simulatedSecondRate);\n }catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n \n // printing Simulation output every 10 seconds\n if(SimClock.getTime() % 5 == 0){\n printSimulationState();\n }\n \n SimClock.tick();\n\n /*The simulation ends when the current simulation time is \n greater than the total simulation time defined in \n ElevatorConfig.txt*/ \n \n if(SimClock.getTime() >= totalSimulatedTime){\n\n continueSimulation = false; \n \n // interrupting threads here\n for (int i = 0; i < a; i++){\n threadArray[i].interrupt();\n }\n \n System.out.println();\n System.out.println(\"=========================SIMULATION STOPPED @\" + SimClock.getTime() +\" Simulated Seconds =========================\");\n }\n }\n }", "@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }", "private static void run() throws InterruptedException {\r\n\t\tif (runAllAlgorithms) {\r\n\t\t\trunAll();\r\n\t\t}\r\n\t\telse {\r\n\t\t\trunIndividual(algorithmCode, algorithmParameters);\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }", "public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}", "protected void runAfterIterations() {}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(750);\n\t\t} catch (InterruptedException ex) {\n\t\t\treturn;\n\t\t}\n\t\tinitializeLabels();\n\t\tint iteration = 0;\n\t\twhile (iteration++ < maxIterations && !Thread.interrupted()) {\n\t\t\tappData.showCurrentIteration(iteration);\n\t\t\tassignLabels();\n\t\t\tif(iteration % updateInterval == 0){\n\t\t\t\tappData.updateChart(iteration);\n\t\t\t\tif (!isContinuous) {\n\t\t\t\t\tappData.enableRun();\n\t\t\t\t\ttocontinue.set(false);\n\t\t\t\t\twhile (!tocontinue()) { //wait until play is clicked\n\t\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappData.disableRun();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(750);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(iteration-1 == maxIterations){\n\t\t\tappData.completeAlgorithm(); //algorithm exhausted all iterations\n\t\t\tappData.updateChart(maxIterations);\n\t\t}else{\n\t\t\tappData.autocompleteAlgorithm(); //algorithm terminated by itself\n\t\t\tappData.updateChart(iteration);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tclass TestClass {\n\t\t\tpublic Integer value;\n\n\t\t\tpublic TestClass(int value) {\n\t\t\t\tthis.value = value;\n\t\t\t}\n\t\t}\n\n\t\t// Create a collection of parameters\n\t\tList<TestClass> parameters = new LinkedList<TestClass>();\n\t\tfor (int i = 0; i < 1024 * 1024; i++) {\n\t\t\tparameters.add(new TestClass(i));\n\t\t}\n\n\t\t// Roughly profile the time it takes to run the loop in parallel\n\t\tlong startTime = System.currentTimeMillis();\n\t\tforEach(parameters, new Operation<TestClass>() {\n\n\t\t\t@Override\n\t\t\tpublic void apply(TestClass parameter) {\n\t\t\t\tparameter.value++;\n\t\t\t}\n\n\t\t});\n\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Processed \" + parameters.size() + \" iterations in \"\n\t\t\t\t+ (endTime - startTime) + \"ms.\");\n\t\t\n\t\t// Verify the results\n\t\tint i = 1;\n\t\tfor (TestClass parameter : parameters) {\n\t\t\tif (parameter.value != i) {\n\t\t\t\tthrow new RuntimeException(\"Illegal parameter value: \" + i\n\t\t\t\t\t\t+ \"!=\" + parameter.value);\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t}", "public static void main(String [ ] args)\n\t{\n\t\tPortfolio[] portfolioArr = new Portfolio[2];\n\t\tportfolioArr[0] = new Portfolio(\"Aggressive\", 100000, 0.094324, 0.15675);\n\t\tportfolioArr[1] = new Portfolio(\"Very Conservative\", 100000, 0.06189, 0.063438);\n\t\t\n\t\t//********data process***********//\n\t\tSystem.out.println(\"Monte Carlo Simulation\");\n\t\tSimulator mySimulator = new Simulator(portfolioArr);\n\t\tmySimulator.setPeriods(20);\n\t\tmySimulator.setSimulations(10000);\n\t\tmySimulator.simulate();\n\t\t\n\t\t//********data output***********//\n\t\tfor (Portfolio p : portfolioArr) \n\t\t{\n\t\tSystem.out.println(p);\n\t\t}\n\t}" ]
[ "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.55962914", "0.55910563", "0.5578338", "0.55765575", "0.55732065", "0.5572305", "0.55670744", "0.5558324", "0.5554968", "0.554804", "0.5546787", "0.54755557", "0.5455426", "0.5443099", "0.5439311", "0.5434258", "0.54100484", "0.5404215", "0.5396311", "0.53847826", "0.537734", "0.5377329", "0.5371885", "0.5371206", "0.53632957", "0.5361013", "0.53583694", "0.5357359", "0.5349156", "0.53466105", "0.5339836", "0.5335641", "0.5334332", "0.5331305", "0.5318338", "0.53153425", "0.531202", "0.5308084", "0.53029805", "0.5302115", "0.5288618", "0.5287106", "0.5282652", "0.5282012", "0.5277137", "0.5276899", "0.52717024", "0.52655566", "0.52633417", "0.5256615", "0.5256532", "0.5240603", "0.5233758", "0.52318114", "0.5231786", "0.5228968", "0.5228899", "0.52229637", "0.52227145", "0.522271", "0.5221557", "0.5204426", "0.5201606", "0.52001756", "0.5194287", "0.51913106", "0.5171247", "0.5170291", "0.51698786", "0.51649415", "0.5158835", "0.51575005", "0.5151967", "0.5149886", "0.51491624", "0.5132483", "0.5130738", "0.51307094", "0.51182634", "0.5118128" ]
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\treturn simple_fitness();\n\t}", "protected float getFitness()\t\t\t{\treturn fitness;\t\t}", "void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }", "public void calcularFitness() {\n double fit = 0;\r\n for (int x=0; x < this.genotipo.length;x++){\r\n if (x!=this.genotipo.length-1){\r\n fit+=distancias[this.genotipo[x]][this.genotipo[x+1]];\r\n }else{\r\n fit+=distancias[this.genotipo[x]][this.genotipo[0]];\r\n }\r\n }\r\n this.fitness = fit;\r\n }", "@Test\n\tpublic void testGA() {\n\t\tGenetic ga = new Genetic(100, 500, 10, SelectionType.TOURNAMENT , 0.6, 0.1);\n\t\tOptimumSolution os = ga.run();\n\t\tSystem.out.println(os.getSolution());\n\t}", "void ComputeFitness(){\n\t\tint i, pos;\n\t\t// individual t;\n\t\tdouble min, sum = 0, sumSize = 0, tm;\n\t\t// First Compute Raw fitness\n\t\tfor(i = 0; i < poplen; i++)\n\t\t{\n\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t}\n\t\t\t\n\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t}\n\t\t//tim individual co fitness be nhat\n\t\tmin = oldpop[0].fitness;\n\t\tpos = 0;\n\t\tsum = oldpop[0].fitness;\n\t\tsumSize = oldpop[0].size;\n\t\t\n\t\tfor(i = 1; i < poplen; i++) {\n\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\tmin = oldpop[i].fitness;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t\tsum += oldpop[i].fitness;\n\t\t\tsumSize += oldpop[i].size;\n//\t\t\tpopSize[gen][i]= oldpop[i].size;\n\t\t}\n\t\t// copy the best and average\n\t\tbestcurrent[gen] = new individual();\n\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n\t\taverage[gen] = sum /poplen;\n\t\taverageSize[gen] = sumSize /poplen;\n\t\t// Third Compute Adjusted fitness\n\t\tAdjustFitness();\n\t\t// Finally Compute nomarlized fitness\n \t\tNormalizeFitness();\n\t}", "public abstract double getAestheticFitness();", "public double calculateFitness(DNA dna);", "private static double fitness(PMCGenotype gene, int trials)\n\t{\n\t\tController<MOVE> btc = new PacManBTController(decode(gene));\n\t\treturn runExperiment(btc, ghostController, trials);\n\t}", "public int getFitness(){\n return fitness;\n }", "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts();\n\n\t\t// Convert to a weighted percentage.\n\t\tbestScore = worstScore - population.get(minimum()).conflicts();\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tthisChromo = population.get(i);\n\t\t\tthisChromo.fitness((worstScore - thisChromo.conflicts()) * 100.0 / bestScore);\n\t\t}\n\n\t\treturn;\n\t}", "public Object eval(Individual ind)\r\n {\r\n BinaryIndividual bi = (BinaryIndividual)ind;\r\n int partialFitness = 0;\r\n int distance = 0;\r\n double fitness = 0.0;\r\n\r\n\t for (int i=0; i<100; i++){\r\n\r\n\t distance = 0;\r\n\r\n\t for (int j=0; j<100; j++){\r\n\t if (!((BinaryIndividual)target[i]).getBooleanAllele(j)^bi.getBooleanAllele(j)) { \r\n\t\t distance++;\r\n\t }\r\n \r\n\t if (distance > partialFitness) {\r\n\t partialFitness = distance;\r\n\t }\r\n\t }\r\n }\r\n\r\n fitness = (double)partialFitness/100.0;\r\n return new Double(fitness);\r\n \r\n\r\n }", "@Test\n public void testFitnessProportionateSelection()\n {\n }", "String getFitnessFunction();", "double CalculateFitness(double fun) \n\t {\n\t\t double result=0;\n\t\t if(fun>=0)\n\t\t {\n\t\t\t result=1/(fun+1);\n\t\t }\n\t\t else\n\t\t {\n\t\t\t \n\t\t\t result=0;\n\t\t }\n\t\t return result;\n\t }", "static double fitness(vmnode[] vms, jobnode[] jobs, int[] assigned, HashMap<Integer, Integer> map, double[][] ect) {\n double libd = LIBD(vms, jobs, assigned);\n double makesp = calcmakespan(map, ect);\n return libd * makesp;\n }", "void setFitness(double fitness) throws UnsupportedOperationException;", "private static void calculateFitnessOfPopulation(ArrayList<Chromosome> population) {\n for (Chromosome chromosome : population) {\n // if the fitness of the chromosome has not yet been calculated (i.e. is still -1)\n fitnessFunction(chromosome);\n }\n }", "public void incrementFitness()\n {\n this.fitness++;\n }", "public int fitness() {\n\t\t//System.out.println(\"/!\\\\ WARNING: Full fitness() called!\");\n\t\tint fitness = 0;\n\t\tint fitnessCases = (int) Math.pow(2, circuit.order);\n\t\tfor (int i=0; i<fitnessCases; i++) {\n\t\t\tValuation v = new Valuation(i, circuit.order);\n\t\t\tboolean actualOutput = tree.evaluate(v);\n\t\t\tboolean correctOutput = v.correctOutput();\n\t\t\t\n\t\t\tif (actualOutput == correctOutput) fitness++;\n\t\t}\n\t\t\n\t\tthis.fitness = fitness;\n\t\tthis.fitnessCases = null;\n\t\t\n\t\treturn fitness;\n\t}", "public abstract double getConstraintFitness();", "public double calcFitness(int[] genes) {\n\t\treturn 0;\n\t}", "public float getFitness()\r\n\t{\r\n\t\treturn fitness;\r\n\t}", "double fitness(int gene) {\r\n \tint sum = 0;\r\n \tint prod= 1;\r\n \tfor (int j=0; j<LEN; j++) {\r\n \t\tif (oldpop[gene][j]==0) {\r\n \t\t\tsum += (j+1);\r\n \t\t} else {\r\n \t\t\tprod *= (j+1);\r\n \t\t}\r\n \t}\r\n \treturn Math.abs(sum - SUMTARG)/SUMTARG \r\n \t + Math.abs(prod - PRODTARG)/PRODTARG;\r\n }", "@Test\n public void applyFitness() {\n final List<TrainingListener> listeners = new ArrayList<>();\n final MockModel model = new MockModel() {\n @Override\n public void setListeners(Collection<TrainingListener> listenersToSet) {\n listeners.clear();\n listeners.addAll(listenersToSet);\n }\n\n @Override\n public void addListeners(TrainingListener... listener) {\n listeners.addAll(Stream.of(listener).collect(Collectors.toList()));\n }\n\n @Override\n public long numParams() {\n return (long)(5* 1e4);\n }\n\n @Override\n public double score() {\n return 1.23451234;\n }\n };\n final FitnessPolicy<ModelAdapter> policy = new FitnessPolicyTraining<>(3);\n final double[] measuredScore = {-1};\n\n policy.apply(new ModelAdapter() {\n @Override\n public void fit(DataSetIterator iter) {\n throw new UnsupportedOperationException(\"Not implemented!\");\n }\n\n @Override\n public <T extends IEvaluation> T[] eval(DataSetIterator iter, T... evals) {\n throw new UnsupportedOperationException(\"Not implemented!\");\n }\n\n @Override\n public Model asModel() {\n return model;\n }\n }, fitness -> measuredScore[0] = fitness);\n\n assertEquals(\"Incorrect number of training listeners\", 1, listeners.size());\n\n // Bleh! Hardcoded knowledge of TrainingListener implementation!\n listeners.forEach(listener -> listener.iterationDone(model, 0, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"No fitness shall have been reported!\", -1d, measuredScore[0], 1e-10);\n\n listeners.forEach(listener -> listener.iterationDone(model, 1, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"No fitness shall have been reported!\", -1d, measuredScore[0], 1e-10);\n\n listeners.forEach(listener -> listener.iterationDone(model, 2, 0));\n listeners.forEach(listener -> listener.onEpochEnd(model));\n assertEquals(\"Incorrect fitness!\", 1.235005, measuredScore[0], 1e-10);\n }", "private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }", "void calcFittest(){\n System.out.println(\"Wall hugs\");\n System.out.println(this.wallHugs);\n\n System.out.println(\"Freedom points\");\n System.out.println(this.freedomPoints);\n\n System.out.println(\"Visited points\");\n System.out.println(this.vistedPoints);\n\n this.fitnessScore = freedomPoints - wallHugs - vistedPoints;\n System.out.println(\"Individual fit score: \" + fitnessScore);\n }", "public int getFitness()\n {\n return this.fitness;\n }", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }", "public interface GAIndividual\r\n{\r\n public void mutate(double rate);\r\n public GAIndividual directReproduce();\r\n public GAIndividual reproduce( GAIndividual i );\r\n \r\n public int getFitness();\r\n public void setFitness ( int fitness );\r\n public void setRoulette (int start, int finish);\r\n public boolean hasRouletteNumber (int winner);\r\n public String toString();\r\n}", "public void setFitness(int f){\n this.fitness = f;\n }", "public abstract void updateFitness();", "protected float calcFitness(Individual ind) {\n\t\t\tdouble w = (double) ind.getWait();\n\t\t\tdouble g = (double) ind.getMove();\n\t\t\treturn (float) (g/(w+g));\n\t\t}", "public void evaluate()\r\n {\r\n\tdouble max = ff.evaluate(chromos.get(0),generation());\r\n\tdouble min = max;\r\n\tdouble sum = 0;\r\n\tint max_i = 0;\r\n\tint min_i = 0;\r\n\r\n\tdouble temp = 0;\r\n\r\n\tfor(int i = 0; i < chromos.size(); i++)\r\n\t {\r\n\t\ttemp = ff.evaluate(chromos.get(i),generation());\r\n\t\tif(temp > max)\r\n\t\t {\r\n\t\t\tmax = temp;\r\n\t\t\tmax_i = i;\r\n\t\t }\r\n\r\n\t\tif(temp < min)\r\n\t\t {\r\n\t\t\tmin = temp;\r\n\t\t\tmin_i = i;\r\n\t\t }\r\n\t\tsum += temp;\r\n\t }\r\n\r\n\tbestFitness = max;\r\n\taverageFitness = sum/chromos.size();\r\n\tworstFitness = min;\r\n\tbestChromoIndex = max_i;;\r\n\tworstChromoIndex = min_i;\r\n\tbestChromo = chromos.get(max_i);\r\n\tworstChromo = chromos.get(min_i);\r\n\t\r\n\tevaluated = true;\r\n }", "double getFitnessScore(){\n return fitnessScore;\n }", "public void setFitness(float fitness)\r\n\t{\r\n\t\tthis.fitness = fitness;\r\n\t}", "void ComputeFitnessBefore(){\n\t\t\t\tint i, pos;\n\t\t\t\t// individual t;\n\t\t\t\tdouble min, sum = 0, tm;\n\t\t\t\t// First Compute Raw fitness\n\t\t\t\tfor(i = 0; i < poplen; i++)\n\t\t\t\t{\n\t\t\t\t\tif(oldpop[i].evaluated==FALSE)\n\t\t\t\t\t{ tm=ComputeRF(oldpop[i]);\n\t\t\t\t\t\toldpop[i].fitness = tm;\n\t\t\t\t\t\toldpop[i].oldfitness = tm;\n\t\t\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\toldpop[i].fitness=oldpop[i].oldfitness;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//oldpop[i].DisplayIndividual();\n\t\t\t\t\t//System.out.println(oldpop[i].fitness);\n\t\t\t\t}\n\t\t\t\t//tim individual co fitness be nhat\n\t\t\t\tmin = oldpop[0].fitness;\t\t\t\n\t\t\t\tsum = oldpop[0].fitness;\t\t\t\n\t\t\t\t\n\t\t\t\tfor(i = 1; i < poplen; i++) {\n\t\t\t\t\tif(oldpop[i].fitness < min) {\n\t\t\t\t\t\tmin = oldpop[i].fitness;\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tsum += oldpop[i].fitness;\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// copy the best and average\n//\t\t\t\tbestBeforeFitness[gen]=min;\n//\t\t\t\tavgBeforeFitness[gen]=sum/poplen;\n//\t\t\t\tbestcurrent[gen] = new individual();\n//\t\t\t\tbestcurrent[gen].CopyIndividual(oldpop[pos], TRUE);\n//\t\t\t\taverage[gen] = sum /poplen;\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) throws IOException {\n\t\tint p = 8;\n\t\t// r is the fraction of the population to be replaced by Crossover at\n\t\t// each step\n//\t\tdouble r = Double.valueOf(8).doubleValue();\n\t\tdouble r = 8;\n\t\t// m is the rate of mutation\n//\t\tdouble m = Double.valueOf(8).doubleValue();\n\t\tdouble m = 8;\n\n\t\t// Write into files...\n\t\tFile outputFile = new File(\"testGA.txt\");\n\t\tFileWriter out = new FileWriter(outputFile);\n\n\t\t////////////////////////\n\t\tp = 33;\n\t\tr = 0.6;\n\t\tm = 0.1;\n\n\t\t// Report the population size, crossover rate and mutation rate\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Learning the 8-queens problem with a Genetic Algorithm\");\n\t\tSystem.out.println(\"Population Size: \" + p);\n\t\tSystem.out.println(\"Crossover Rate: \" + r);\n\t\tSystem.out.println(\"Mutation Rate: \" + m);\n\t\tSystem.out.println();\n\t\tout.write(\"Parameters are p=\" + p + \", \" + \"r=\" + r + \" and m=\" + m + \"\\r\");\n\n\t\t// The genetic algorithm\n\t\tint iterationNum = 0;\n\t\tHypothesis bestIndividual;\n\t\tint bestFitness;\n\t\tdouble aveFitness;\n\t\t// Randomly generate initial population\n\t\tGA algorithm = new GA(p, r, m);\n\t\t// For each individual compute fitness\n\t\talgorithm.computeFitness();\n\t\t// Get the best individual\n\t\tbestIndividual = (algorithm.getPopulation())[0];\n\t\tbestFitness = bestIndividual.getFitness();\n\t\taveFitness = algorithm.computeAveFitness();\n\t\t// Iterate till we get the very best individual\n\t\twhile (bestFitness != 0) {\n\t\t\t// Select the very best members of the population to survive\n\t\t\talgorithm.select();\n\t\t\t// Make the best members reproduce themselves\n\t\t\talgorithm.crossover();\n\t\t\t// Add some mutations to new population\n\t\t\talgorithm.mutate();\n\t\t\t// The successor population becomes the current population\n\t\t\talgorithm.setNextGeneration();\n\t\t\t// For each individual compute fitness\n\t\t\talgorithm.computeFitness();\n\t\t\t// Get the best individual\n\t\t\tbestIndividual = (algorithm.getPopulation())[0];\n\t\t\tbestFitness = bestIndividual.getFitness();\n\t\t\taveFitness = algorithm.computeAveFitness();\n\t\t\t// Report best results to the user at every five iterations\n\t\t\tif (iterationNum % 5 == 0) {\n\t\t\t\tSystem.out.println(\"Iteration: \" + iterationNum + \" Best Fitness: \" + bestFitness\n\t\t\t\t\t\t+ \" Average Fitness \" + aveFitness);\n\t\t\t\tSystem.out.println(\"Best solution: \" + bestIndividual.toString());\n\t\t\t\tSystem.out.println();\n\t\t\t\tout.write(\"\\n\" + iterationNum + \",\" + bestFitness + \",\" + aveFitness + \"\\r\");\n\t\t\t}\n\t\t\titerationNum++;\n\t\t}\n\t\tSystem.out.println(\n\t\t\t\t\"Iteration: \" + iterationNum + \" Best Fitness: \" + bestFitness + \" Average Fitness \" + aveFitness);\n\t\tSystem.out.println(\"Solution is \" + bestIndividual.toString());\n\t\tout.write(\"\\n\" + iterationNum + \",\" + bestFitness + \",\" + aveFitness + \"\\r\");\n\t\tout.close();\n\t}", "@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }", "public interface FitnessCalc1 {\n public double utilityFunction(Individual X);\n public double function(double x, Individual X);\n}", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "Chromosome fittestChromosome();", "public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "void setFitnessScore(double score){\n fitnessScore = score;\n }", "public interface Population {\n public List<Individual> selectRandomIndividuals(int n, boolean withReplacement);\n\n public void evaluateFitnesses();\n\n public Individual crossoverOnePoint(Individual a, Individual b);\n\n public Individual crossoverTwoPoint(Individual a, Individual b);\n\n public Individual crossoverUniform(Individual a, Individual b);\n\n public void evolveMuLambda(int numParents, int numChildren, double mean, double variance);\n\n public void evolveMuPlusLambda(int numParents, int numChildren, double mean, double mutationRate);\n\n public void evolveGeneticAlgorithm();\n\n public void saveIndividualsAsPlayersInDb();\n\n public void addListener(EvolutionCompleteListener listener);\n\n}", "protected void setFitness(float fit)\t{\tfitness = fit;\t\t}", "public int getFitness(Graph_GA obj)\r\n\t{\r\n\t\tint fitness_score = 0;\r\n\t\tSet<DefaultEdge> edges= obj.graph_inp.edgeSet();\r\n Iterator<DefaultEdge> edges_list = edges.iterator();\r\n \r\n while(edges_list.hasNext())\r\n {\r\n \tDefaultEdge new_edge = edges_list.next();\r\n \tGA_Graph_Node source = obj.graph_inp.getEdgeSource(new_edge);\r\n \tGA_Graph_Node target = obj.graph_inp.getEdgeTarget(new_edge);\r\n \tif(chromosome[source.numID-1] == chromosome[target.numID-1])\r\n \t{\r\n \t\tfitness_score = fitness_score-1;\r\n \t}\r\n }\r\n\t\treturn fitness_score;\r\n\t}", "public interface NeatFitness {\n\n\tpublic double calculate(Network network);\n\t\n}", "public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "public static void experiment(String name) {\n \tString probName = \"NQueensProblem\";\n \tList<OptimizationAlgorithm> algs = new ArrayList<>();\n int[] ranges = new int[N];\n Random random = new Random(N);\n for (int i = 0; i < N; i++) {\n \tranges[i] = random.nextInt();\n }\n NQueensFitnessFunction ef = new NQueensFitnessFunction();\n Distribution odd = new DiscretePermutationDistribution(N);\n NeighborFunction nf = new SwapNeighbor();\n MutationFunction mf = new SwapMutation();\n CrossoverFunction cf = new SingleCrossOver();\n Distribution df = new DiscreteDependencyTree(.1); \n \n HillClimbingProblem hcp = new GenericHillClimbingProblem(ef, odd, nf);\n GeneticAlgorithmProblem gap = new GenericGeneticAlgorithmProblem(ef, odd, mf, cf);\n ProbabilisticOptimizationProblem pop = new GenericProbabilisticOptimizationProblem(ef, odd, df);\n \n RandomizedHillClimbing rhc = new RandomizedHillClimbing(hcp); \n SimulatedAnnealing sa = new SimulatedAnnealing(1E1, .1, hcp);\n StandardGeneticAlgorithm ga = new StandardGeneticAlgorithm(200, 0, 10, gap);\n MIMIC mimic = new MIMIC(200, 10, pop);\n \n algs.add(rhc);\n algs.add(sa);\n algs.add(ga);\n algs.add(mimic);\n Experiment newExp = new Experiment();\n \n newExp.experiments(algs, ef, name);\n \n // test temperature for SA\n String paramName = \"Temperature\";\n String algName = \"SA\";\n List<Double> params2 = new ArrayList<>();\n List<OptimizationAlgorithm> algsTest = new ArrayList<>();\n for (double i = 1.0; i < 100.5; i+=1.0){\n \tparams2.add(i);\n \tsa = new SimulatedAnnealing(i, .1, hcp);\n \talgsTest.add(sa);\n }\n newExp.optParams(algsTest, ef, paramName, null, params2, algName, probName);\n \n // test cooling rate for SA\n paramName = \"CoolingRate\";\n params2 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (double i = 0.01; i < 0.51; i+=0.005){\n \tparams2.add(i);\n \tsa = new SimulatedAnnealing(1E1, i, hcp);\n \talgsTest.add(sa);\n }\n newExp.optParams(algsTest, ef, paramName, null, params2, algName, probName);\n \n // test populationSize for GA\n paramName = \"populationSize\";\n algName = \"GA\";\n List<Integer> params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 10; i < 1001; i+=10){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(i, 0, 10, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test toMate for GA\n paramName = \"toMate\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 0; i < 100; i+=1){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(200, i, 10, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test toMutate for GA\n paramName = \"toMutate\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 10; i < 1001; i+=10){\n \tparams1.add(i);\n \tga = new StandardGeneticAlgorithm(200, 0, i, gap);\n \talgsTest.add(ga);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test samples for MIMIC\n paramName = \"samples\";\n algName = \"MIMIC\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 100; i < 1101; i += 10){\n \tparams1.add(i);\n \tmimic = new MIMIC(i, 10, pop);\n \talgsTest.add(mimic);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n // test tokeep for MIMIC\n paramName = \"tokeeep\";\n params1 = new ArrayList<>();\n algsTest = new ArrayList<>();\n for (int i = 1; i < 101; i+=1){\n \tparams1.add(i);\n \tmimic = new MIMIC(200, i, pop);\n \talgsTest.add(mimic);\n }\n newExp.optParams(algsTest, ef, paramName, params1, null, algName, probName);\n \n \n // test different algorithms with various NQueensProblems\n // set up algorithms\n algs = new ArrayList<>();\n ga = new StandardGeneticAlgorithm(150, 98, 70, gap);\n algs.add(rhc);\n algs.add(sa);\n algs.add(ga);\n algs.add(mimic);\n // set up different efs\n List<EvaluationFunction> efs = new ArrayList<>();\n for (int i = 0; i < 50; i++){\n \tef = new NQueensFitnessFunction();\n \tefs.add(ef);\n }\n newExp.voteBest(algs, efs, 2000, probName);\n \n }", "public double getFitness(){\n return averageFitness;\n }", "public double[] calculatefitnessvalue(String str) {\t\n\t\tint a = Integer.parseInt(str.substring(0, 5), 2); \n\t\tint b = Integer.parseInt(str.substring(6, 11), 2);\n\t\tint c = Integer.parseInt(str.substring(12, 17), 2);\n\t\tint d = Integer.parseInt(str.substring(18, 23), 2);\n\t\tint e = Integer.parseInt(str.substring(24, 29), 2);\n\t\tint f = Integer.parseInt(str.substring(30, 35), 2);\n\t\tint g = Integer.parseInt(str.substring(36, 41), 2);\n\t\tint h = Integer.parseInt(str.substring(42, 47), 2);\n\t\tint i = Integer.parseInt(str.substring(48, 53), 2);\n\t\tint j = Integer.parseInt(str.substring(54, 59), 2);\n\n\t\tdouble x1 = a * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of x\n\t\tdouble x2 = b * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of y\n\t\tdouble x3 = c * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x4 = d * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x5 = e * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x6 = f * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x7 = g * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x8 = h * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x9 = i * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x10 = j * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\t\n\t\t//the Objective function\n\t\tdouble fitness = 3 - Math.sin(2 * x1) * Math.sin(2 * x1) \n\t\t\t\t+ Math.sin(2 * x2) * Math.sin(2 * x2)\n\t\t\t\t- Math.sin(2 * x3) * Math.sin(2 * x3)\n\t\t\t\t+ Math.sin(2 * x4) * Math.sin(2 * x4)\n\t\t\t\t- Math.sin(2 * x5) * Math.sin(2 * x5)\n\t\t\t\t+ Math.sin(2 * x6) * Math.sin(2 * x6)\n\t\t\t\t- Math.sin(2 * x7) * Math.sin(2 * x7)\n\t\t\t\t+ Math.sin(2 * x8) * Math.sin(2 * x8)\n\t\t\t\t- Math.sin(2 * x9) * Math.sin(2 * x9)\n\t\t\t\t+ Math.sin(2 * x10) * Math.sin(2 * x10);\n\t\t\n\t\tdouble[] returns = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, fitness };\n\t\treturn returns;\n\t}", "private Vector step(){\n// System.out.println();\n// System.out.println(generationCount);\n// System.out.println(\"The Population is:\");\n// System.out.println(population);\n \n //DETERMINE WHO SURVIVES INTO NEXT GENERATION\n Vector nextGeneration = surviveType.run(population, fitnessArray);\n\n //DO THE CROSSOVER PROCESS\n //WHILE THE NEXT GENERATION ISN'T FULL\n while (nextGeneration.size() < (populationSize - randGenes)){\n //FIND PARENTS\n Gene parentOne, parentTwo;\n do {\n Gene[] parents = selectType.run(population, fitnessArray);\n parentOne = parents[0];\n parentTwo = parents[1];\n } while (selectPairs && (! closeEnough(parentOne, parentTwo)));\n //ADD CHILDREN\n Gene[] kids = crossType.children(parentOne, parentTwo);\n\n nextGeneration.add(kids[0]);\n if (nextGeneration.size() < (populationSize - randGenes)){\n nextGeneration.add(kids[1]);\n }\n }\n //ADD RANDOM GENES TO THE POPULATION\n while (nextGeneration.size() < populationSize){\n nextGeneration.add(initializer.createRandomGene(fitnessFunction, minRadius, maxRadius));\n }\n //MUTATE THE NEXT GENERATION\n for (int j = 0; j < populationSize; j++){\n if (Math.random() < mutationProb){\n nextGeneration.set(j, mutationType.run((Gene) nextGeneration.get(j)));\n }\n }\n\n //COMPUTE FITNESSES AND RELOCATE IF NECESSARY\n Gene bestGene = (Gene) nextGeneration.get(0);\n int bestX = 0;\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) nextGeneration.get(x);\n while (relocationType.move(bannedList, next)){\n Gene newGene = initializer.createRandomGene(fitnessFunction, minRadius, maxRadius);\n next = newGene;\n nextGeneration.set(x, next);\n }\n fitnessArray[x] = next.getFitness();\n\n //FOR THE PURPOSES OF UPDATING THE BANNED LIST\n if (next.getFitness() > bestGene.getFitness()){\n bestGene = next;\n bestX = x;\n }\n } //End for (int x = 0;...\n\n Arrays.sort(fitnessArray);\n\n //UPDATE THE BANNED LIST BY ADDING THE BEST GENE IN THE NEXT GENERATION IF IT'S ABOVE minAccepted AND CONTAINS MORE THAN minPoints POINTS\n if (useList){\n if ((generationCount >= firstAdd) &&\n (solutionCounter >= countNum) &&\n (bestGene.getFitness() >= minAccepted) &&\n (bestGene.getCount() >= minPoints)){\n solutionCounter = 0;\n// System.out.println(bestGene);\n Gene bestClone = new Gene (bestGene.getMajorAxisRadius(), //THIS KLUDGE IS DONE B/C .clone() IS\n bestGene.getMinorAxisRadius(), //PROTECTED, AND I CAN'T UNPROTECT IT.\n bestGene.getX(), //I USE A CLONED GENE TO PREVENT A MUTATION\n bestGene.getY(), //IN THE NEXT GENERATION FROM ALTERING bannedList\n bestGene.getOrientation(),\n bestGene.getFunction());\n bannedList = relocationType.updateBannedList(bannedList, bestClone);\n\n\n //IF NECESSARY, UPDATE THE SOLUTION LIST BY ADDING ALL CLUSTERS WITH MORE THAN minPoints POINTS AND A FITNESS OF AT LEAST minAccepted\n if (returnAllSolutions){\n for (int i = 0; i < populationSize; i++){\n Gene next = (Gene) nextGeneration.get(i);\n if ((next.getFitness() >= minAccepted) && (next.getCount() >= minPoints)){\n solutionList.add(next);\n }\n }//End for (int i = 0...\n } else {\n solutionList = bannedList;\n } //End if (returnAllSolutions){...}else{\n } //End if (generationCount > 4...\n } //End if (useList){\n\n generationCount = generationCount + 1;\n solutionCounter = solutionCounter + 1;\n\n //IF AVOIDING CONVERGENCE, AND IT HAS CONVERGED, START OVER WITH RANDOM GENES\n\n double bestFitness = bestGene.getFitness();\n double medianFitness = roundToHundredths((double) fitnessArray[(int) Math.floor(populationSize / 2)]);\n\n// System.out.println(bestFitness);\n// System.out.println(medianFitness);\n\n if ((antiConvergence) &&\n ((bestFitness - medianFitness) < (0.01 * bestFitness)) &&\n (generationCount > firstAdd)){\n nextGeneration = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n// System.out.println(\"EXPLODED CONVERGENCE!\");\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) nextGeneration.get(x);\n fitnessArray[x] = next.getFitness();\n }\n Arrays.sort(fitnessArray);\n }\n\n return nextGeneration;\n }", "public double bestFitness()\r\n {\r\n\treturn bestFitness;\r\n }", "private void calculateFitness() {\n\t\tint day1=this.getNumberOfHours()*this.getNumberOfClasses();\n\t\tint day2=2*day1;\n\t\tint day3=3*day1;\n\t\tint day4=4*day1;\n\t\tint day5=5*day1;\n\t\tTeacher_lesson temp=null;\n\t\t//day 1//\n\t\tHashSet<Integer> closedSet=new HashSet<Integer>();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<day1;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day1;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t\t//day2//\n\t\tclosedSet.clear();;\n\t\t\n\t\tfor(int i=day1;i<day2;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day2;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day3//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day2;i<day3;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day3;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//day4//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day3;i<day4;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day4;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\t\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day5//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day4;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t\t\t\n\t\t}\n\t\t\t/*if(temp.get_td_hour()<0){this.fitness=this.fitness-100;}//adunato na ginei giati o ka8igitis exei parapanw wres apo oti mporei na kanei//\n\t\t\t\telse if (temp.get_td_hour()==0){this.fitness=this.fitness-2;}//meiwnoume giati o ka8igitis 8a epivarin8ei oles tou tis wres thn idia mera//\n\t\t\t\telse{++this.fitness;}//kalh prosegisi*/\n\t\t}\n\t\t//*********************END OF DAILY EVALUATION*****************************//\n\t\t\n\t\t//**********************START OF WEEKLY EVALUATION************************//\n\t\t\n\t\tclosedSet.clear();\n\t\t\n\t int \t_weeklyhours = 1;\n\t \n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tif(!closedSet.contains(this.genes[i])){\n\t\t\t\t\n\t\t\t\n\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\t\t++_weeklyhours; }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t/*if(_weeklyhours>temp.get_tw_hour()){\n\t\t\t\tthis.fitness=this.fitness-100 ; //adunato na kanei parapanw wres ma8hma//\n\t\t\t}else\n\t\t\t\t{++this.fitness;}*/\n\t\t\tif(_weeklyhours<temp.get_tw_hour()){++this.fitness;}\n\t\t\tclosedSet.add(this.genes[i]);}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//*************END OF WEEKLY EVALUATION**********//\n\t\n\t\t//**START OF LESSON EVALUATION***//\n\t\tArraylistLesson set=new ArraylistLesson();\n\t\tclass_lid templ=null;\n\t\tTeacher_lesson tempj=null;\n\t\tint lid=0;\n\t\tString _class;\n\t\tint _classhours=1;\n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tlid=temp.get_lid();\n\t\t\t_class=temp.get_class();\n\t\t\ttempl=new class_lid(lid,_class);\n\t\t\tif(!set.contains(templ)){\n\t\t\t\t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\t\ttempj=getdata(this.genes[j]);{\n\t\t\t\t\t\tif(tempj!=null){\n\t\t\t\t\t\t\tif(temp.get_tid()==tempj.get_tid()){\n\t\t\t\t\t\t\t\tif(temp.get_lid()==tempj.get_lid()&&temp.get_class().equalsIgnoreCase(tempj.get_class())){\n\t\t\t\t\t\t\t\t\t++_classhours;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tint hours;\n\t\t\t\thours=temp.get_lhours();\n\t\t\t\n\t\tif(_classhours==hours){\n\t\t\t++this.fitness;\n\t\t}\n\t\tset.add(templ);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "private Double fitness(Term $f) {\n\t\t// Using a lambda to transform a formula to a function.\n\t\tFx g = x -> {this.x=x; return (Double)$abs.apply($sub.apply($f,$target)).evaluate();};\n\t\treturn integral(LOWER_BOUND, UPPER_BOUND, Fx.$f.bind(g));\n\t}", "public interface Population {\n\n /**\n * Add the specified chromosome to the population.\n * If the size of the population has reached to maxSize, eviction is done\n * removing chromosomes with the worst fitness\n * @param chromosome\n */\n void addChromosome(@NotNull final Chromosome chromosome);\n\n /**\n * Return a random chromosome\n * @return\n */\n Chromosome getRandom();\n\n\n /**\n * Return a random chromosome among the first limit fittest chromosomes\n * @param limit Nth fittest chromosome\n * @return\n */\n Chromosome getRandomAmongFittest(int limit);\n\n /**\n * Remove the specified chromosome from the population\n * @param chromosome\n */\n boolean removeChromosome(@NotNull final Chromosome chromosome);\n\n /**\n * Return the fittest chromosome\n * @return\n */\n Chromosome fittestChromosome();\n\n /**\n * Number of chromosome in the population\n * @return\n */\n int size();\n\n /**\n * Return the hits of each chromosomes\n * @return\n */\n Map<String, Long> hits();\n}", "public void setFitness(int fit)\n {\n this.fitness=fit;\n }", "@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }", "public void evaluatePopulation() {\n // reset the total fitness score\n totalFitness = 0;\n\n for (int i = 0; i < populationSize; i++) {\n population.get(i).setRawFitness(\n FeederCollection.getFeeders().get(i).GetFitness());\n totalFitness += population.get(i).getRawFitness();\n }\n\n // set the normalized fitness for each population member\n for (Genotype g : population) {\n // normalized fitness = raw fitness / total fitness\n g.setNormalizedFitness((g.getRawFitness() / totalFitness));\n }\n\n // sort the popoulation\n Collections.sort(population, Genotype.FitnessOrder);\n\n highFitnesses.add(population.get(0).getRawFitness());\n avgFitnesses.add(totalFitness / population.size());\n\n\n }", "protected double evaluate(IChromosome chromosome) {\n\t double score = 0;\n\t \t \n\t List dups = new ArrayList();\n\t int badSolution = 1;\n\n\t for (int i = 0; i < chromosome.size(); i++) {\n\n\t //IntegerGene agene = (IntegerGene) chromosome.getGene(i);\n\t //System.out.println(agene);\n\t int index = (Integer) chromosome.getGene(i).getAllele();\n\t \n\t if (dups.contains(index)) {\n\t badSolution = 0;\n\t } else {\n\t dups.add(index);\n\t }\n\n\t Equipo equipo = (Equipo) equipos.get(index);\n\t double genreScore = getGenreScore(equipo);\n\t if (genreScore == 0) {\n\t badSolution = 0;\n\t }\n\t score = (score+genreScore);\n\n\t }\n\t \n\t return (score * badSolution);\n\t }", "public AIAssign2(){\n \n Scanner console = new Scanner(System.in);\n \n System.out.print(\"Input population size \");\n popsize = console.nextInt();\n \n System.out.print(\"Input tournament size \");\n tournysize = console.nextInt();\n \n System.out.print(\"Input crossover chance (%) \");\n crossprob = console.nextDouble();\n \n System.out.print(\"Input mutation chance (%) \");\n mutaprob = console.nextDouble();\n \n System.out.print(\"Input max generation size \");\n maxgen = console.nextInt();\n \n System.out.print(\"Input problem width \");\n width = console.nextInt();\n \n System.out.print(\"Input problem height \");\n height = console.nextInt();\n \n System.out.print(\"Input start location x-1 \");\n startx = console.nextInt();\n \n System.out.print(\"Input start location y-1 \");\n starty = console.nextInt();\n \n System.out.print(\"Input seed value \");\n seed = console.nextLong();\n \n Random rnd = new Random(seed);\n \n population = new int[popsize][height*width];\n population2 = new int[popsize][height*width];\n popfitness = new int[popsize];\n \n for (int i = 0 ; i<popsize ; i++){\n for (int j = 0 ; j<population[0].length ; j++){\n population[i][j] = (rnd.nextInt(4));\n }\n }\n Print(population);\n \n //the generation loop\n for (int gen = 0 ; gen < maxgen ; gen++){\n \n //fitness of individuals is stored\n int btemp = 0;\n for (int i = 0 ; i < popsize ; i++){\n \n problem = new char[width][height];\n problem[startx][starty] = 'S';\n \n popfitness[i] = Fitness(population[i], problem, startx, starty, 0);\n \n if (popfitness[i] > btemp){ btemp = popfitness[i];}\n }\n bestavg = bestavg + btemp;\n \n String line=\"\";\n int avg=0;\n for (int i = 0 ; i < popsize ; i++){\n line = line + \"[\" + popfitness[i] + \"] \"; \n avg = avg + popfitness[i];\n }\n avg = avg/popsize;\n avgavg = avgavg + avg;\n bestavg = bestavg / (gen+1);\n avgavg = avgavg / (gen+1);\n System.out.println(\"Gen: \"+gen + \" Fitness: \"+ line + \" Avg: \"+ avg + \" BestAvg: \" + bestavg + \" AvgAvg: \" + avgavg);\n bestavg = bestavg * (gen+1);\n avgavg = avgavg * (gen+1);\n \n //Tournament selection\n for (int i = 0 ; i < popsize ; i++){\n int best = 0; \n int rand = (int)(rnd.nextInt(popsize));\n best = rand;\n \n for (int k = 0 ; k < tournysize ; k++){\n if (popfitness[rand] > popfitness[best]){\n best = rand;\n }\n \n rand = (int)(rnd.nextInt(popsize));\n }\n population2[i] = Copy(population[best]); \n }\n \n //single-focus-flip and block exchange mutations\n for (int i = 0 ; i < popsize-1 ; i++){\n if (crossprob > rnd.nextInt(100)){\n int temp; \n for (int a = 0 ; a < 5 ; a++){\n temp = population2[i][a];\n population2[i][a] = population2[i+1][a];\n population2[i+1][a] = temp;\n }\n }\n }\n \n for (int i = 0 ; i < popsize ; i++){\n if (mutaprob > rnd.nextInt(200)){\n int temp = (int) (rnd.nextInt(population2[0].length)); \n population2[i][temp] = (int)(rnd.nextInt(4));\n }\n else if (mutaprob > rnd.nextInt(200)){\n for (int j = 0 ; j < population2[0].length/2 ; j++){\n int temp = population2[i][j];\n population2[i][j] = population2[i][population2[0].length-1-j];\n population2[i][population2[0].length-1-j] = temp;\n }\n }\n }\n \n population = population2;\n population2 = new int[popsize][population[0].length];\n \n }\n \n bestavg = bestavg / maxgen;\n avgavg = avgavg / maxgen;\n Print(population);\n System.out.println(\"Best Avg: \" + bestavg + \" Average of Avg: \" + avgavg);\n }", "private void evaluateProbabilities()\n\t{\n\t}", "@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }", "public double getFitness() {\n if (fitness == 0) {\n fitness = 1/(double)getDistance();\n }\n return fitness;\n }", "public double worstFitness()\r\n {\r\n\treturn worstFitness;\r\n }", "public ArrayList execute() {//(MultivariateFunction func, double[] xvec, double tolfx, double tolx) \n num_Function_Evaluation = 0;\n double[] stat = {0.0, 0.0};\n double[] storeBest = null;\n double[] storeMean = null;\n double[] storeStd = null;\n if (isOptimization) {\n storeBest = new double[101];\n storeMean = new double[101];\n storeStd = new double[101];\n //System.out.println(\"Initialization Done\");\n }\n int storeIndex = 0;\n\n //f = func;\n //bestSolution = xvec;\n // Create first generation\n firstGeneration();\n //System.out.println(iRet+\" \"+returnResult[iRet]);\n //stopCondition(fx, bestSolution, tolfx, tolx, true);\n\n //main iteration loop\n while (true) {\n boolean xHasChanged;\n do {\n //printing steps\n if (isPrintSteps) {\n if (currGen % printStep == 0) {\n if (isOptimization) {\n if (storeIndex < 101) {\n storeBest[storeIndex] = fx;\n stat = computFitnessStat();\n storeMean[storeIndex] = stat[0];\n storeStd[storeIndex] = stat[1];\n storeIndex++;\n }\n }\n System.out.printf(\" MH algo It: %5d Best: %.9f Mean: %.9f Std: %.9f \\n\", currGen, fx, stat[0], stat[1]);\n }//printsteps\n }//isPrintSteps\n\n xHasChanged = nextGeneration();\n if (currGen >= maxIter) {//if (maxFun > 0 && numFun > maxFun)\n break;\n }\n //if (prin > 1 && currGen % 20 == 0)\n //printStatistics();\n } while (!xHasChanged);\n //if (stopCondition(fx, bestSolution, tolfx, tolx, false) || (maxFun > 0 && numFun > maxFun))\n if (currGen >= maxIter) {\n break;\n }\n if (fx < 0.0000001) {\n //System.out.println(\"treshold\" + fx);\n //break;\n }\n }//while\n //printing final step\n if (isPrintFinal) {\n if (isOptimization) {\n if (storeIndex < 101) {\n storeBest[storeIndex] = fx;\n stat = computFitnessStat();\n storeMean[storeIndex] = stat[0];\n storeStd[storeIndex] = stat[1];\n storeIndex++;\n }\n }\n System.out.printf(\" MH algo It: %5d Best: %.9f Mean: %.9f Std: %.9f \\nTotal Fun Evaluations: %d\\n\", currGen, fx, stat[0], stat[1], num_Function_Evaluation);\n }\n ArrayList array = new ArrayList();\n array.add(storeBest);\n array.add(storeMean);\n array.add(storeStd);\n return array;\n }", "public interface Heuristic\r\n{\r\n\r\n double calcStartToGoalCost(State currentState, State goalState);\r\n}", "public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }", "public void runGenerational() {\n\n\t\tSystem.out.println(\"Runing pure generational demo.\");\n\t\tFunction<BitSet, Double> knapsackFitnessFunction = new KnapsackFitness(capacity, parseElements());\n\t\tSpace<BitSet> space = new BitSetSpace(weights.length);\n\n\t\tGeneticSelector<BitSet, Double> rouletteSelector = new RouletteGeneticSelector<>(POP_SIZE);\n\t\tGeneticCrossover<BitSet, Double> crossover = new BinaryCrossover<>(0.9);\n\t\tGeneticOperator<BitSet, Double> geneticOperator = new CustomGeneticOperator<>(crossover);\n\t\tGeneticReplacement<BitSet, Double> replacement = new GenerationalReplacement<>();\n\t\tTracer.add(Population.class);\n\t\tTracer.start();\n\n\t\tSearch<BitSet, Double> search = new GeneticAlgorithm<>(POP_SIZE, NUM_ITER, rouletteSelector, geneticOperator,\n\t\t\t\treplacement);\n\t\tOptimizationProblem<BitSet, Double> problem = new OptimizationProblem<>(space, knapsackFitnessFunction,\n\t\t\t\tComparator.reverseOrder());\n\t\tSolution<BitSet, Double> foundSolution = search.solve(problem);\n\n\t\tSystem.out.println(String.format(\"Best found solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(foundSolution.getSolution()), foundSolution.getSolution()));\n\n\t\tBitSet optimalBitSet = parseOptimalBitSet();\n\t\tSystem.out.println(String.format(\"Optimal solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(optimalBitSet), optimalBitSet));\n\t\tKnapsackMetric metric = new KnapsackMetric();\n\t\tmetric.putDataOfBestInFile(1);\n\t}", "@Test\n public void testGetFitness() throws Exception {\n HeterogeneousComputingEnv envTest = nestedDependency();\n\n ScheduleChromosome chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n StatsFactory statsFact = new StatsFactory(envTest, fitnessCalc);\n Stats stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 2 - last 2 tasks in parallel\n envTest = oneRootTwoDepenendantTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 3 - chained tasks in same processor\n envTest = chaindedDependency();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 4 - independent tasks\n envTest = independentTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n }", "public int getFitness(){\n\t\treturn getEnergy()*-1; \n\t}", "public float AssignFitness() {\n\t\t\n\t\tfitness = 0;\n\t\tif(sample_map.size() == 0) {\n\t\t\treturn fitness;\n\t\t}\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tfitness += ptr.s.weight;\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfitness /= sample_map.size();\n\t\treturn fitness;\n\t}", "<T> GeneticResult<T> train(List<Chromosome<T>> chromosomes){\n\t\tGeneticResult<T> bestFit = maxFitness(chromosomes, 0);\n\t\tfor(int i = 0; i < totalBreedings; i++){\n\t\t\tif(bestFit.getFitness() > sufficientFitness){ break ;}\n\t\t\tchromosomes = breedNewGeneration(chromosomes);\n\t\t\tbestFit = maxFitness(chromosomes, i);\n\t\t}\n\t\treturn bestFit;\n\t}", "@Test\n public void shouldEvaluateWorkProperlyCase1() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5, result, 0.0001) ;\n }", "@Override\n public void computeSatisfaction() {\n\n }", "public void setFitness(int newFitness) {\n fitness = newFitness;\n }", "public void evaluate() {\n for (Chromosome chromo : chromosomes) {\n double chromoGH = chromo.getTotalGH();\n if (chromo.isValid()) {\n this.validChromosomes++;\n if (chromoGH > this.getBestScore()) {\n this.bestScore = chromoGH;\n this.setBestChromo(chromo);\n }\n }\n //Log.debugMsg(chromo.getTotalGH().toString());\n// this.map.put(chromoGH, chromo);\n }\n }", "public static void GA(ArrayList<City> cities){\n int pathLength = cities.size();\n // the number of chromosomes which will be generated\n int populationSize = 100;\n // the number of chromosomes that will be generated from crossover as a percentage of the population\n double crossoverRate = 0.8;\n // the number of chromosomes that will be generated from crossover\n int crossoverSize = (int) (populationSize * crossoverRate);\n // the probability that a chromosome can have a random mutation\n double mutationRate = 0.05;\n // the number of generations\n int generations = 5000;\n\n // Initialising the distance matrix using the initialiseDistanceMatrix method\n initialiseDistanceMatrix(cities);\n\n // Generating the Initial Population\n ArrayList<Chromosome> population = generatePopulation(cities, pathLength, populationSize);\n\n // The following is done for each generation of the population\n for (int i = 0; i < generations; i++) {\n // calculating the fitness of every chromosome in the current generation\n calculateFitnessOfPopulation(population);\n // sort the population so that the chromosomes with the highest fitness are at the start of the list\n Collections.sort(population);\n // call the method which performs crossover on the population\n Set<Chromosome> children = crossoverPopulation(population, populationSize, crossoverSize);\n // carry out mutation on the children of the current population\n children.addAll( mutatePopulation(children, mutationRate) );\n\n // evolve the population\n population.addAll(children);\n ArrayList<Chromosome> currentGeneration = new ArrayList<>(population);\n ArrayList<Chromosome> nextGeneration = evolvePopulation(currentGeneration, populationSize, cities, pathLength);\n population = new ArrayList<>(nextGeneration);\n }\n\n // find the fittest chromosome\n Chromosome fittestChromosome = population.get(0);\n double maxFitness = population.get(0).fitness;\n for (Chromosome c : population) {\n if (c.fitness > maxFitness) {\n maxFitness = c.fitness;\n fittestChromosome = c;\n }\n }\n // display the path and distance of the fittest chromosome\n System.out.println(fittestChromosome.getPath());\n System.out.println(\"Total Route Distance: \" + routeDistance(fittestChromosome));\n\n //printPopulation(population);\n }", "@Override\r\n\t\t\tpublic void populationUpdate(PopulationData<? extends Solution> data) {\n//\t\t\t\tbuffer.append(data.getPopulationSize());\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tdouble fit = data.getBestCandidateFitness();\r\n//\t\t\t\tSystem.out.println(fit);\r\n\t\t\t\tbuffer.delete(0, buffer.length());\r\n\t\t\t\tbuffer.append(fit);\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tif (Run10FastExternalizer.initialFitness.getDbl() == -1.0) {\r\n\t\t\t\t\tRun10FastExternalizer.initialFitness.setDbl(fit);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fit == 0.0){\r\n\t\t\t\t\tArrayList<Student> studentsCopy = new ArrayList<>();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: students){\r\n\t\t\t\t\t\tstudentsCopy.add(student.clone());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: studentsCopy){\r\n\t\t\t\t\t\tstudent.register(data.getBestCandidate().getBlocks());\r\n//\t\t\t\t\t\tSystem.out.println(student.getSchedule());\r\n//\t\t\t\t\t\tbuffer.append(student.getSchedule().toString());\r\n//\t\t\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\t\tsb.append(student.getSchedule().toString());\r\n\t\t\t\t\t\tsb.append(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tsuperValue = sb.toString();\r\n\t\t\t\t}\r\n\t\t\t}", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n }\n //System.arraycopy(currentPopulation[best], 0, bestSolution, 0, dimension);\n copy(bestSolution, currentPopulation[best]);\n }", "static double[] evolveWeights() throws Exception {\n\t\t// Create a random initial population\n\t\tRandom r = new Random();\n\t\t// Matrix is a two dimensional array, populationSize are rows, Genes are columns\n\t\tMatrix population = new Matrix(populationSize, numberofGenes);\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\t// returns elements(genes) of every row\n\t\t\t// Think of every row as a seperate chromosome of parent\n\t\t\tdouble[] chromosome = population.row(i);\n\t\t\t// create every gene for each chrosome in the population\n\t\t\tfor (int j = 0; j < chromosome.length; j++) {\n\t\t\t\tdouble gene = 0.03 * r.nextGaussian();\n\t\t\t\tchromosome[j] = gene;\n\t\t\t}\n\t\t}\n\n\t\tint generationNum = 0;\n\t\t// do battle with chromosomes until winning condition is found\n\t\t// Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t// NeuralAgent(population.row(0)))\n\t\twhile (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(0))) != -1) {\n\n\t\t\tSystem.out.println(\"Generation \" + (generationNum));\n\n\t\t\tint mightLive = r.nextInt(100);\n\n\t\t\tif (generationNum == 10)\n\t\t\t\tmutationRate -= 0.01;\n\t\t\tif (generationNum == 20)\n\t\t\t\tmutationRate -= 0.02;\n\t\t\tif (generationNum == 30)\n\t\t\t\tmutationRate -= 0.02;\n\n\t\t\t// Mutate the genes of the current population\n\t\t\tfor (int y = 0; y < populationSize; y++) {\n\t\t\t\tfor (int x = 0; x < numberofGenes; x++) {\n\t\t\t\t\tif (Math.random() <= mutationRate) {\n\t\t\t\t\t\tpopulation.changeGene(x, y, r.nextGaussian());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make random number of battles\n\t\t\tfor (int i = 0; i < 40; i++) {\n\t\t\t\t// Create two teams with two random chromosomes from the population\n\t\t\t\tint soldier_a = r.nextInt(population.rows());\n\t\t\t\tint soldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Ensure that both teams don't have the same chromosome\n\t\t\t\tif (soldier_a == soldier_b)\n\t\t\t\t\tsoldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Do Battle between teams and select winner\n\t\t\t\tif (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == 1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t}\n\n\t\t\t\telse if (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == -1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Reproduce for the population (This is where the magic happens)\n\t\t\t// int currentPopulation = population.rows();\n\t\t\twhile (population.rows() < 100) {\n\t\t\t\t// Retrieve random parent\n\t\t\t\tint parentID = r.nextInt(population.rows());\n\t\t\t\tdouble[] parent = population.row(parentID);\n\t\t\t\tint[] potentialPartners = new int[10];\n\t\t\t\tint abs_min_value = Integer.MIN_VALUE;\n\t\t\t\tBoolean foundpartner = false;\n\t\t\t\tint partner = 0;\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) {\n\t\t\t\t\tint potentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tif (parentID == potentialPartnerID)\n\t\t\t\t\t\tpotentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tpotentialPartners[i] = potentialPartnerID;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) // Finding most compatiable parent #2.\n\t\t\t\t{\n\t\t\t\t\tint compatiablity = similarities(parent, population.row(potentialPartners[i]));\n\t\t\t\t\tif (compatiablity > abs_min_value) {\n\t\t\t\t\t\tpartner = potentialPartners[i];\n\t\t\t\t\t\tfoundpartner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (foundpartner == false)\n\t\t\t\t\tpartner = r.nextInt(population.rows());\n\n\t\t\t\tdouble[] secondParent = population.row(partner);\n\t\t\t\tdouble[] newChild = population.newRow();\n\t\t\t\tint splitpoint = r.nextInt((int) numberofGenes / 4);\n\n\t\t\t\tfor (int i = 0; i < splitpoint; i++) // logic to a for loop and two if statements\n\t\t\t\t\tnewChild[i] = parent[i];\n\t\t\t\tfor (int i = splitpoint; i < numberofGenes; i++)\n\t\t\t\t\tnewChild[i] = secondParent[i];\n\n\t\t\t\t// for (int i = 0; i < population.rows(); i++) {\n\t\t\t\t// if (Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t\t\t// NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t// numOfWins++;\n\t\t\t\t// } else { }\n\n\t\t\t\t// Test for the best in the given population\n\t\t\t\t// win_Collection.add(numOfWins);\n\t\t\t\t// printWeights(population.row(0));\n\n\t\t\t}\n\t\t\tgenerationNum++;\n\t\t\tfor (int i = 0; i < population.rows(); i++) {\n\t\t\t\tif (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t\tnumOfWins++;\n\t\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of Winners: \" + numOfWins);\n\t\t\tnumOfWins = 0;\n\n\t\t}\n\t\tprintWeights(population.row(0));\n\t\treturn population.row(0);\n\t}", "public interface ObjectiveFunctionI {\n public void setData(chromosome chromosome1, int indexOfObjective);\n public void setOriginalSolution(chromosome originalChromosome);\n\n public void setFirstImplement(boolean firstImplement);\n public void calcObjective();\n public chromosome getchromosome();\n //public double[] getObjectiveValues(int index);\n //public double getMinObjectiveValue();\n //public double getMaxObjectiveValue();\n}", "private void updateStatistic(int index, int fitness) {\n if (fitness < worst)\n worst = fitness;\n if (fitness > best) {\n best = fitness;\n frontRunner = geneticProgram.getProgram(index);\n }\n }", "float getFitnessScore(MapLocation l) {\n\t\ttry{\n\t\t\tif(rc.canSenseLocation(l) && !rc.onTheMap(l)) {\n\t\t\t\t//System.out.println(\"dead square\");\n\t\t\t\treturn -999999.0f;\n\t\t\t}\n\t\t} catch(Exception e){e.printStackTrace();}\n\t\t\n\t\tfloat fitness = 0.0f;\n\t\t\n\t\tfor(RobotInfo ri : allRobots) {\n\t\t\tfitness -= 1f/l.distanceSquaredTo(ri.location);\n\t\t}\n\t\tif(type.equals(RobotType.GARDENER)) {\n\t\t\tfor(TreeInfo ti : allTrees) {\n\t\t\t\tif(ti.team.equals(Team.NEUTRAL)) {\n\t\t\t\t\tfitness -= 1f/l.distanceSquaredTo(ti.location);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfitness -= 10f/l.distanceSquaredTo(lastLocation);\n\t\t\n\t\treturn fitness;\n\t}", "public abstract double getHeuristic(State state);", "@Test\n\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "public void setFitness(double fit) {\n fitness = fit;\n }", "public interface GeneFunctions {\n /**\n * Metoda zwraca randomowy gen\n * \n * @return randomowy gen\n */\n public int randomGene();\n\n /**\n * Metoda mutuje gen i zwraca go\n * \n * @param gene\n * gen\n * @return zmutowany gen\n */\n public int mutateGene(int gene);\n}", "public default double getFitness(Cell cell) {\n return getFitness(cell.getGenotype());\n }", "@Test\n public void testScoreUpdate() {\n try {\n final BestEvalScore score = new BestEvalScore(\"thjtrfwaw\");\n double expected = 0;\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n final Evaluation eval = new Evaluation(2);\n eval.eval(0,1);\n eval.eval(1,1);\n\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(0,1);\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n eval.eval(1,1);\n eval.eval(1,1);\n expected = eval.accuracy();\n score.accept(eval);\n assertEquals(\"Incorrect score!\", expected , score.get(), 1e-10);\n\n\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to create instance!\", e);\n }\n\n\n }", "public static void main(String[] args)\n\t{\tint generation = 0;\n\t\tint sum = 0;\n\t\tExecutor exec=new Executor();\n\t\t\n\t\tGeneticController pacman = new GeneticController();\n\t\tController<EnumMap<GHOST,MOVE>> ghosts = new Legacy();\n\n\n\t\tLispStatements ls = new LispStatements();\n\t\tArrayList<String> functionSet = new ArrayList<>();\n\t\tfunctionSet.add(\"2ifblue\");\n\t\tfunctionSet.add(\"4ifle\");\n\t\tfunctionSet.add(\"2ifindanger\");\n\t\tfunctionSet.add(\"2ifpowerpillscleared\");\n\t\tfunctionSet.add(\"2istopowersafe\");\n\t\tArrayList<String> terminalSet = new ArrayList<>();\n\t\tterminalSet.add(\"distToPill\");\n\t\tterminalSet.add(\"distToPower\");\n\t\tterminalSet.add(\"distGhost\");\n\t\tterminalSet.add(\"distTo2ndGhost\");\n\t\tterminalSet.add(\"distTo3rdGhost\");\n\t\tterminalSet.add(\"distToEdibleGhost\");\n\t\tterminalSet.add(\"distToNonEdibleGhost\");\n\t\tterminalSet.add(\"moveToFood\");\n\t\tterminalSet.add(\"moveToPower\");\n\t\tterminalSet.add(\"moveToEdibleGhost\");\n\t\tterminalSet.add(\"moveFromNonEdibleGhost\");\n\t\tterminalSet.add(\"moveFromPower\");\n\t\tterminalSet.add(\"runaway\");\n\t\ttry {\n\t\t\tls.setFunctionalSet(functionSet);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\t\tls.setTerminalSet(terminalSet);\n\t\ttry {\n\t\t\tGenetic.Executor.setUp(pacman, ls, 8);\n\t\t}catch (Exception ignored){\n\n\t\t}\n\n\t\tdouble average = 0;\n\n\t\twhile (generation < 51) {\n\t\t\twhile (Generation.isGenFinished()) {\n\n\t\t\t\t\tfor(int i = 0; i < 10; i++) {\n\t\t\t\t\t\tint delay = 0;\n\t\t\t\t\t\tboolean visual = false;\n\t\t\t\t\t\tsum += exec.runGame(pacman, ghosts, visual, delay);\n\t\t\t\t\t}\n\n\t\t\t\t\tGeneration.setFitness(50000 - (sum/10));\n\t\t\t\t\tSystem.out.println(sum/10);\n\n\n\t\t\t\t\tsum = 0;\n\n\t\t\t\tGeneration.pointerUpdate();\n\t\t\t}\n\t\t\tSystem.out.println(\"Generation \" + generation);\n\t\t\tGenetic.Executor.newGen();\n\t\t\tSystem.out.println(Generation.getBestRating());\n\t\t\tgeneration ++;\n\t\t}\n\n\t\tSystem.out.println(Generation.getBestTree());\n\t\tSystem.out.println(Generation.getBestRating());\n\n\n\n/*\n\t\tboolean visual=false;\n\t\tString fileName=\"results/replay10.txt\";\n\n\t\tint bestScore = 0;\n\t\tint result = 0;\n\t\tint average = 0;\n\t\tfor(int i = 0; i < 1000 ; i++) {\n\t\t\tresult = exec.runGameTimedRecorded(pacman, ghosts, visual, fileName, bestScore);\n\t\t\taverage +=result;\n\t\t\tif(result > bestScore){\n\t\t\t\tbestScore = result;\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tvisual = true;\n\t\tSystem.out.println(average/1000.0);\n\t\texec.replayGame(fileName,visual);\n\t\t*/\n\n\n\t}", "public int getFitnessValue(int[] solution) {\n\n int fitness = 0;\n \n\n for (int i = 0; i < MATRIX_TAM; i++) {\n for (int j = i ; j < MATRIX_TAM; j++) {\n fitness += loc[i][j] * flow[solution[i]][solution[j]];\n \n }\n }\n\n return fitness;\n }", "public double computeHeuristicGrade();", "private <T> GeneticResult<T> maxFitness(List<Chromosome<T>> chromosomes, int totalBreedings){\n\t\tChromosome<T> bestFit = fittestChromosome(chromosomes);\n\t\treturn new GeneticResult<T>(bestFit, bestFit.getFitness(), totalBreedings);\n\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.69485474", "0.69419944", "0.6884039", "0.6858914", "0.6842619", "0.67999685", "0.6766038", "0.67615485", "0.6740093", "0.6726253", "0.67257994", "0.66916263", "0.66834927", "0.66782695", "0.66349417", "0.66255885", "0.66077924", "0.6594618", "0.6590542", "0.6585841", "0.6580208", "0.65796286", "0.6543199", "0.65073186", "0.65036815", "0.6450403", "0.6433251", "0.6424349", "0.639232", "0.63752085", "0.6355979", "0.6338975", "0.63387877", "0.63383114", "0.63307214", "0.63179094", "0.63098216", "0.6309132", "0.63001996", "0.629926", "0.6264077", "0.62554085", "0.62453985", "0.6245308", "0.62268", "0.6223011", "0.6216251", "0.61925703", "0.61762875", "0.61687875", "0.61535984", "0.61474794", "0.61439526", "0.61380315", "0.6135316", "0.61262906", "0.6124275", "0.61191964", "0.61172426", "0.6099688", "0.60531807", "0.6048501", "0.6040395", "0.60361785", "0.6034907", "0.6028646", "0.60261846", "0.6023975", "0.6020909", "0.6020798", "0.60202193", "0.601224", "0.601081", "0.60046655", "0.5986889", "0.5983284", "0.5982694", "0.59775394", "0.59774303", "0.59609705", "0.595601" ]
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 = false;\r\n }", "public static void stopSimulation()\r\n {\r\n stopSimulation=true;\r\n }", "public void stop() {\n\t\trunning = false;\n\t\tfor (ArionumHasher hasher : hashers) {\n\t\t\thasher.setForceStop(true);\n\t\t}\n\n\t\tthreadCollection.clear();\n\t\thashers.clear();\n\t}", "public boolean shouldStop() {\n return !this.running;\n }", "public void terminate(){\n running = false;\n }", "public boolean hasDisposableResources()\n {\n return this.disposableObjects.isEmpty();\n }", "public void forceStop() {\r\n\t\tchaseObj = false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "public void terminate() {\n terminated = true;\n }", "public void shutdown() {\n this.dontStop = false;\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\r\n\treturn false;\r\n }", "public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n return false;\n \n }", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\n\t\tpublic boolean isFinished() {\n\t\t\treturn false;\n\t\t}", "public void finishedAllRequests() {\n hasMoreRequests = false;\n }", "public void terminate() {\n\t\trunning = false;\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}", "@Override\n public boolean shouldExit() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "public boolean loopsForever() {\r\n\t\treturn getLoopExits().isEmpty();\r\n\t}", "boolean shouldStop();", "protected void close()\n {\n stopped = true;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }" ]
[ "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.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.5805221", "0.579274", "0.579274", "0.579274", "0.579274", "0.579274", "0.579274", "0.579274", "0.579274", "0.579274", "0.5791289", "0.5781881", "0.5757815", "0.5757815", "0.57539105", "0.5751859", "0.5751835", "0.57492334", "0.5746637", "0.5746637", "0.5746637", "0.5746637", "0.5746637", "0.5746637", "0.5742019", "0.57399905", "0.57371145", "0.57311696", "0.5726896", "0.5726896", "0.57263225", "0.5725526", "0.57231575", "0.5721026", "0.5721026", "0.5721026", "0.5721026", "0.5721026", "0.5717742", "0.5716923", "0.5716454", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745", "0.57154745" ]
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\thasher.setForceStop(true);\n\t\t}\n\n\t\tthreadCollection.clear();\n\t\thashers.clear();\n\t}", "public void forceStop() {\r\n\t\tchaseObj = false;\r\n\t}", "public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }", "private void releaseObjects() {\n if (fPermStorage != null) {\n Iterator<IJavaObject> iterator = fPermStorage.iterator();\n while (iterator.hasNext()) {\n IJavaObject object = iterator.next();\n try {\n object.enableCollection();\n } catch (CoreException e) {\n if ((e.getStatus().getException() instanceof VMDisconnectedException)) {\n break;\n }\n JDIDebugPlugin.log(e);\n }\n }\n fPermStorage = null;\n }\n }", "public boolean drain() {\n return true;\n }", "public void terminateCollect(){\n\t\t\ttry {\n\t\t\t\tdumpHandler.breakLoop();\t\t\t\t\n\t\t\t\tdumpHandler.close();\n\t\t\t\tlog.info(\"terminate!\");\n\t\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t\t\n\n\t}", "@AfterClass\n public void stop() throws Exception {\n super.finalize();\n }", "public void terminate() {\r\n running = false;\r\n }", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "public void terminate(){\n running = false;\n }", "@Override\n\tpublic void releaseAllResources() {\n\t}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "public void shutDown() {\n collector.removePool(this);\n factory.poolClosing(this);\n\n // close all objects\n synchronized (objects) {\n for (Iterator it = objects.values().iterator(); it.hasNext();) {\n ObjectRecord rec = (ObjectRecord) it.next();\n if (null != rec) {\n if (rec.isInUse())\n factory.returnObject(rec.getClientObject());\n factory.deleteObject(rec.getObject());\n rec.close();\n }\n }\n objects.clear();\n deadObjects.clear();\n }//end of synch\n\n factory = null;\n poolName = null;\n initialized = false;\n }", "public void shutdown()\n {\n valid = false;\n quitSafely();\n\n synchronized (loading) {\n loading.clear();\n }\n synchronized (toLoad) {\n toLoad.clear();\n }\n synchronized (tilesByFetchRequest) {\n tilesByFetchRequest.clear();\n }\n }", "public void simulationTerminating() {\n }", "public void stop() {\n stop = true;\n }", "public void terminate() {\n terminated = true;\n }", "protected void close()\n {\n stopped = true;\n }", "public void stop() {\n done=true;\n bridges.forEach(Bridge::stop);\n bridges.clear();\n }", "public void finishedAllRequests() {\n hasMoreRequests = false;\n }", "public void removeResources() {\n\t\tresources.clear();\n\t}", "public void kill() {\r\n\t\t\tfor(Guerre war : aggresiveWar) {\r\n\t\t\t\twar.finalize();\r\n\t\t\t}\r\n\t\t\tfor(Guerre war : defensiveWar) {\r\n\t\t\t\twar.finalize();\r\n\t\t\t}\r\n\t\t\tfor(Case c : caseOwned) {\r\n\t\t\t\tc.liberate();\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(nom + \" n'a pas su s'adapter aux nombreux dangers environnants, l'Histoire oublie les faibles.\");\r\n\t\t\t\r\n\t\t\tfor(String str : saveStats()) System.out.println(str);\r\n\t\t\t//finalisation de la mort\r\n\t\t\tthis.die();\r\n\t\t\tSystem.out.println(\"Une civilisation c'est éteinte...\");\r\n\t\t\t//finalize(); //bloque la sauvegarde et case les relations avec les autres (du à la recherche de la civ par id dans l'arraylist\r\n\t\t}", "public boolean isStopOnceCollected() {\n return stopOnceCollected;\n }", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "public void stop() {\r\n _keepGoing = false;\r\n }", "public void stop(){\n return;\n }", "public void terminate() {\n\t\trunning = false;\n\t}", "public void stop() {\r\n running = false;\r\n }", "public void disposeResources()\n {\n for (Disposable disposable : this.disposableObjects) {\n disposable.dispose();\n }\n }", "public synchronized void terminate () {\n shutdown = true;\n }", "private void exit() {\n this.isRunning = false;\n }", "public void collect() {\n\t\tthis.getOwnerArea().unregisterActor(this);\n\t\t\n\t}", "public void stop() {\n running = false;\n }", "public synchronized void stop() {\n stopping = true;\n }", "public void stop()\r\n\t{\r\n\t\tdoStop = true;\r\n\t}", "public void hardWareResources() {\n\t\tSystem.out.println(\"HadwareResources\");\r\n\t}", "public void shutdown() {\n // From this point forward, only return a poison pill for this retrieval\n // manager, which will cause threads attempting to receive bandwidth\n // allocations to die\n this.shutdown = true;\n }", "public void stop()\n {\n running = false;\n }", "public void cleanShutDown () {\n shutdown = true;\n }", "public void arraiter() {\n \tthis.running = false;\n }", "public void stop() {\n enable = false;\n }", "@Override\n public boolean shouldStop() {\n return this.stop;\n }", "public void finalize() {\r\n\tif (this.taskGroup!=null) this.taskGroup.interruptAll();\r\n}", "public void stop(){\n stop = true;\n }", "public void stop(){\n running = false;\n }", "public void shutdown() {\n\t\tInput.cleanUp();\n\t\tVAO.cleanUp();\n\t\tTexture2D.cleanUp();\n\t\tResourceLoader.cleanUp();\n\t}", "public static void Finalize() {\n isReady = false;\n\n try {\n for (RemoteField f : exported)\n UnicastRemoteObject.unexportObject(f, true);\n if (registry != null)\n UnicastRemoteObject.unexportObject(registry, true);\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }", "public void finishSimulation() {\n finishSimulation(0.0);\n }", "protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\t\tholder.removeItem(this);\r\n\t}", "public void unload() {\n releasePressureToReturn();\n releasePressureToShooter();\n latch(false);\n// reloaded = false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "public void finalize() throws Throwable {\n try {\n if (!pool.isTerminated()) {\n // Try to stop all workers within 10 seconds\n stop(10);\n }\n } catch (Exception e) {\n log.error(\"An error occurred when stopping the pool while finalizing\");\n }\n \n super.finalize();\n }", "public void shutdown()\n {\n this.running = false;\n }", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "protected void kill() {\n\t\tsynchronized (this) // Don't allow shutdown during startup.\n\t\t{\n\t\t\t// Only execute for the first caller.\n\t\t\tif (shutdownMutex.acquire()) {\n\t\t\t\t// Shutdown payer thread.\n\t\t\t\tpayerThread.interrupt();\n\n\t\t\t\tfor (int i = 0; i < sets.length; i++) {\n\t\t\t\t\tsets[i].kill();\n\t\t\t\t}\n\n\t\t\t\t// Shutdown the thread pools.\n\t\t\t\tproducerThreadPool.kill();\n\n\t\t\t\t// Let the GC figure the rest out.\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean shouldExit() {\n return true;\n }", "public void terminate() {\n\t\t//terminate probes\n\t\tfor (Entry<String,IProbe> entry :this.probes.entrySet())\n\t\t\tentry.getValue().terminate();\n\t\t//terminate collector\n\t\tthis.collector.terminate();\n\t\tthis.distributorWorker.terminate();\n\t}", "@Override\r\n\tpublic boolean runningSimulationSetLinkedObject() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean runningSimulationSetLinkedObject() {\n\t\treturn false;\r\n\t}", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "public void dispose() {\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.deactivatePhysics(world);\n\t\t}\n\t\tobjects.clear();\n\t\taddQueue.clear();\n\t\tworld.dispose();\n\t\tobjects = null;\n\t\taddQueue = null;\n\t\tbounds = null;\n\t\tscale = null;\n\t\tworld = null;\n\t\tcanvas = null;\n\t\t\n\t\tclickSound.dispose();\n\t\t\n\t\tlightingSound.dispose();\n\t\t\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "public void allFinished() {\n\t}", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\r\n protected void terminate() {\n forceEntities.release();\r\n forceEntities = null;\r\n\r\n velocityEntities.release();\r\n velocityEntities = null;\r\n\r\n gravityEntities.release();\r\n gravityEntities = null;\r\n }", "public void stopping() {\n super.stopping();\n }", "public void stop() {\n setClosedLoopControl(false);\n }", "public void stop(){\n quit = true;\n }", "private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}", "@Override\n boolean isFinished() {\n return false;\n }", "public void simulationTerminated() {\n }", "@Override\n protected void finalize() throws Throwable {\n super.finalize();\n t.stop();\n }", "public void planted(){\r\n\t\tenable = false; \r\n\t\tcount = 0; \r\n\t}", "public void destroyForAll() {\n super.destroyForAll();\n }", "public static void naive(int numResources){\n while(terminatedCount < taskList.size()){\n\n releaseArr = new int [numResources];\n boolean wait = addressWaiting();\n boolean notWait = addressNonWaiting();\n\n while((wait == false && notWait == false) && !checkResources() && terminatedCount < taskList.size() ){\n for(Task t : taskList){\n if(t.terminateTime == -1 && (!t.isAborted)){ // not terminated yet\n releaseAll(t);\n\n t.isAborted = true;\n terminatedCount ++;\n removeWaiting(t.taskNumber);\n\n break; // break out of forloop\n }\n }\n updateResources();\n }\n\n updateResources();\n time += 1;\n\n for(Instruction i : removeSet){\n waitingList.remove(i);\n }\n Collections.sort(waitingList);\n }\n }", "public boolean isReleasable() { return isDone(); }" ]
[ "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.5653506", "0.5647889", "0.56350636", "0.5632811", "0.5628718", "0.5620108", "0.5599359", "0.55875885", "0.5581208", "0.55807734", "0.55788136", "0.5577192", "0.5558299", "0.55352616", "0.55232", "0.5514998", "0.5504767", "0.54905677", "0.5490447", "0.5481902", "0.5480578", "0.5479193", "0.5475941", "0.5469974", "0.5467062", "0.5462694", "0.54514915", "0.54493433", "0.54485583", "0.5447004", "0.54409623", "0.5433588", "0.54297817", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.54278594", "0.5427385", "0.542341", "0.54217017", "0.54217017", "0.5416105", "0.5416105", "0.5399892", "0.5395925", "0.539121", "0.5387417", "0.5387417", "0.53868276", "0.5382726", "0.53810936", "0.5379365", "0.5374043", "0.5374043", "0.53730935", "0.5371492", "0.53658324", "0.53602725", "0.5357022", "0.5356848", "0.5354243", "0.53459203", "0.53453225", "0.5344307", "0.5339302", "0.5337045", "0.53365386", "0.5326423" ]
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.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }", "public int getProgress() {\n return Math.round(mProgress);\n }", "public int getProgress();", "java.lang.String getPercentage();", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "public double getPercentComplete() {\n\t\tthis.percent_complete = ((double) lines_produced / (double) height) * 100.0;\n\t\treturn this.percent_complete;\n\t}", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }", "public float getProgress() {\r\n if (start == end) {\r\n return 0.0f;\r\n } else {\r\n return Math.min(1.0f, (pos - start) / (float)(end - start));\r\n }\r\n }", "public DoubleExpression getProgress()\n {\n return progress;\n }", "public float getProgress() throws IOException {\n return currentRow / (endRow - header);\n }", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "int getPercentageHeated();", "public float getProgress() {\r\n\t\treturn ((float) dDownloaded / dFileSize);\r\n\t}", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "public float getProgress() throws IOException {\n if (end == start) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start));\n }\n }", "private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }", "public int getPercentage() {\r\n return Percentage;\r\n }", "public float getProgress() throws IOException {\r\n\t\tif (start == totalend) {\r\n\t\t\treturn 0.0f;\r\n\t\t} else {\r\n\t\t\treturn Math.min(1.0f, ((getFilePosition() - start) + finishLen) / (float) totalend);\r\n\t\t}\r\n\t}", "public int progress() {\n return _progress;\n }", "@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}", "@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}", "public int getProgress() {\n\t\treturn activeQuest.getThreshold() - getRemaining();\n\t}", "com.google.protobuf.ByteString\n getPercentageBytes();", "public static float getReadProgress() {\n\t\treturn mrpl.getPercentComplete();\n\t}", "double greenPercentage();", "public String getProgress() {\n return this.progress;\n }", "int getRemainderPercent();", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public Double percentComplete() {\n return this.percentComplete;\n }", "public String percentComplete() {\r\n\tdouble percent = ((double) bytesRead / (double) bytesLength);\r\n\tpercent *= 100;\r\n\treturn fmt.format(percent);\r\n }", "public float getPercent() {\n return percent;\n }", "public Double getProgress() {\r\n\treturn progress;\r\n}", "public double getPercent() { return this.percentage; }", "int getPulsePercentage();", "public int percentSaveDone() {\n if (isSaveDone()) {\n return 100;\n }\n return percent;\n }", "public int getProgress() {\r\n\t\tint progress = Math.round((float)mMax * mProgressDegrees / mTotalCircleDegrees);\r\n\t\treturn progress;\r\n\t}", "public double getPercentage() {\n\t\treturn this.percentage;\n\t}", "public int getProgress() {\n\t\treturn mProgress;\n\t}", "public static int getProgressPercentage(long currentDuration, long totalDuration){\r\n Double percentage = (double) 0;\r\n \r\n long currentSeconds = (int) (currentDuration / 1000);\r\n long totalSeconds = (int) (totalDuration / 1000);\r\n \r\n // calculating percentage\r\n percentage =(((double)currentSeconds)/totalSeconds)*100;\r\n \r\n // return percentage\r\n return percentage.intValue();\r\n }", "@Override\n\tpublic int estimateCurrentProgress() {\n\t\treturn counter.getCurrent();\n\t}", "public Number getPercentageComplete()\r\n {\r\n return (m_percentageComplete);\r\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "public int getProgressPercentage(long currentDuration, long totalDuration){\n\t\tDouble percentage = (double) 0;\n\t\t\n\t\tlong currentSeconds = (int) (currentDuration / 1000);\n\t\tlong totalSeconds = (int) (totalDuration / 1000);\n\t\t\n\t\t// calculating percentage\n\t\tpercentage =(((double)currentSeconds)/totalSeconds)*100;\n\t\t\n\t\t// return percentage\n\t\treturn percentage.intValue();\n\t}", "public Float percentComplete() {\n return this.percentComplete;\n }", "@Override\n public String getSavingsPercentage() {\n\n final String savingsPercent = getElement(getDriver(), By.className(SAVINGS_PERCENTAGE),\n TINY_TIMEOUT).getText();\n setLogString(\"Savings Percentage:\" + savingsPercent + \"%\", true, CustomLogLevel.HIGH);\n return savingsPercent + \"%\";\n }", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "public final double getPercentageComplete() {\n \t\tdouble percentageComplete = 0;\n \t\tfor (StoppingCondition condition : stoppingConditions) {\n \t\t\tif (condition.getPercentageCompleted() > percentageComplete) {\n \t\t\t\tpercentageComplete = condition.getPercentageCompleted();\n \t\t\t}\n \t\t}\n \t\treturn percentageComplete;\n \t}", "public double getPercentCompleted() {\n\t\treturn -1;\n\t}", "public float getSyncStatus() {\n Object o = gemFileState.get(STATE_SYNC_PROGRESS);\n if (o == null) {\n return 1;\n }\n float process = 1;\n try {\n process = Float.parseFloat((String) o);\n } catch (Exception e) {\n\n }\n return process;\n }", "public int uploadingProgressBarGetRate() {\n return uploadingProgressBar.getProgress();\n }", "@Override\n\t\tpublic float getProgress() throws IOException {\n\t\t\treturn 0;\n\t\t}", "@Override\n public void onProgress(float percent, SpeedTestReport report) {\n System.out.println(\"[PROGRESS] progress : \" + percent + \"%\");\n System.out.println(\"[PROGRESS] rate in octet/s : \" + report.getTransferRateOctet());\n System.out.println(\"[PROGRESS] rate in bit/s : \" + report.getTransferRateBit());\n }", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n percentage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public float getProgress(float ticks)\n {\n if (ticks > 1.0F)\n {\n ticks = 1.0F;\n }\n\n return this.lastProgress + (this.progress - this.lastProgress) * ticks;\n }", "public Long getProgressTotalToDo();", "@java.lang.Override\n public com.clarifai.grpc.api.Progress getProgress() {\n return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n }", "float getPercentHealth();", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "void progress(int pUnitsCompleted);", "public double getMainPercentage(){return mainPercentage;}", "public int getPrintProgress(){\n\t\treturn printProgress;\n\t}", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n percentage_ = s;\n }\n return s;\n }\n }", "public double progress() {\n if (damage <= 0) {\n return damage;\n }\n double n = noise.nextValue();\n damage = damage + (k * damage * damage) + l + n;\n return damage;\n }", "double getpercentage() {\n return this.percentage;\n }", "protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public float getBugReportProgress() {\n return (float) mBugReportProgress.get();\n }", "int calcPlagiarismPercent() throws ParserException;", "double redPercentage();", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "public Float completionPercent() {\n return this.completionPercent;\n }", "int getProgressCount();", "int getProgressCount();", "int getProgressCount();", "@Override\n public float getProgress() throws IOException {\n return in.getProgress();\n }", "int getProgress(int index);", "int getProgress(int index);", "int getProgress(int index);", "public com.google.protobuf.ByteString\n getPercentageBytes() {\n java.lang.Object ref = percentage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n percentage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }", "public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }", "public double getPercentChange() {\n return percentChange;\n }", "double progress(double val)\n\t{\n\t\treturn val * linkDirection;\n\t}", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public com.clarifai.grpc.api.Progress getProgress() {\n if (progressBuilder_ == null) {\n return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n } else {\n return progressBuilder_.getMessage();\n }\n }", "public BigDecimal getPercentageProfitPStd();", "public abstract double getPercentDead();", "public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }", "public int getStateProgress() {\n return theStateProgress;\n }", "public com.google.protobuf.ByteString\n getPercentageBytes() {\n java.lang.Object ref = percentage_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n percentage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double calculateHpPercent();" ]
[ "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.7021855", "0.6972064", "0.69695735", "0.6963376", "0.6961349", "0.6961349", "0.69519264", "0.6912366", "0.6905332", "0.68670744", "0.68601584", "0.6856681", "0.6843879", "0.68405354", "0.6822797", "0.6820152", "0.6814469", "0.6795524", "0.67893696", "0.67743814", "0.675721", "0.6752303", "0.6749008", "0.6746594", "0.6743402", "0.6693431", "0.66931105", "0.6691117", "0.66617143", "0.66596", "0.6642482", "0.6627004", "0.66101974", "0.66075754", "0.6591972", "0.6566072", "0.65271634", "0.6523525", "0.6513207", "0.6509328", "0.6505362", "0.64912593", "0.6490069", "0.6483909", "0.6475215", "0.6470584", "0.646873", "0.6464644", "0.64625746", "0.6450642", "0.64485073", "0.6444139", "0.64273", "0.64263815", "0.64178294", "0.6407835", "0.6404059", "0.64034945", "0.63937503", "0.63908607", "0.63908607", "0.63908607", "0.6389024", "0.6379191", "0.6379191", "0.6379191", "0.63788027", "0.6377055", "0.6372934", "0.63692194", "0.6357762", "0.6357499", "0.634297", "0.63081545", "0.630432", "0.6304077", "0.62928444", "0.6283915", "0.6283172", "0.6280046" ]
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 getStepCount() {\r\n\t\treturn stepCount;\r\n\t}", "int getSequenceStepsCount();", "public int getSteps() {\n\t\treturn this.steps;\n\t}", "public int getSteps() {\n\t\treturn steps;\n\t}", "public int totalSteps() {\n return moves.size();\n }", "public int getStepLength() {\n return OffsetOriginStep.getLength();\n }", "public double getStepLength() {\n\t\treturn m_dStepLength;\n\t}", "public double getSimulationStepDuration() {\n\t\treturn Kernel.getSingleton().getSimulationClock().getSimulationStepDuration();\n\t}", "public int getStep()\n\t{\n\t\treturn step;\n\t}", "public int getNumberOfSimulations(){\n return this.nMonteCarlo;\n }", "public double getStepsCycle() {\n\t\treturn stepsSleep + stepsCS;\n\t}", "public int getStep() {\n return step;\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "public int getRunCount() {\n return runCount;\n }", "public int getStep() {\n\t\treturn step;\n\t}", "public int getStep() {\n return step_;\n }", "public int getStep() {\n return step_;\n }", "public int getStep() {\n return step_;\n }", "public int getCurSteps() {\n\t\treturn nativegetCurSteps();\n\t}", "protected int getStep() {\n\t\treturn step;\n\t}", "public int getStep() {\n return step_;\n }", "public int getStep() {\n return step_;\n }", "public int getStep() {\n return step_;\n }", "int getStep();", "int getStep();", "int getStep();", "public double getStep() {\n\t\treturn step;\n\t}", "public Integer getStep() {\n return step;\n }", "public int getStep () {\n\t\treturn step_;\n\t}", "public int getNumberOfSims() {\n\t\treturn numberOfSims;\n\t}", "int stepsToGo();", "public int getStepNumber() {\n return stepNumber;\n }", "@Override\r\n\tpublic int getSteps() {\n\t\treturn 0;\r\n\t}", "public int getIterations() {\n return iterations;\n }", "public int getIterations() {\n return iterations;\n }", "public final int getIterations()\n {\n return iterations;\n }", "public int getIterations() {\r\n\t\treturn iterations;\r\n\t}", "public int getIterations() {\n return iterations;\n }", "public int getSimulationTime() {\n return clock.getTimeCount();\n }", "public static int getCurrentStepNumber() {\n return threadStepNumber.get();\n }", "public int getIterations() {\n\t\treturn iterations;\n\t}", "double getStepSize();", "public int getToTalNoOfTimeSteps() {\n\t\treturn ToTalNoOfTimeSteps;\n\t}", "public int countSteps(List<Step> steps) {\n return strategy.countSteps(steps);\n }", "public final int getIterations() {\n \t\treturn iterations;\n \t}", "Double getStep();", "public int getNbIterations() {\n\t\treturn this.nbIterations;\n\t}", "public int getNumTimesEntered() {\n return numTimesEntered;\n }", "public int getNumTrials() \n {\n return cumulativeTrials; \n }", "public static int getNumStarted() {\n return numStarted;\n }", "public T getStepSize() {\r\n return this.stepSize;\r\n }", "public int runCount() {\n return testCount;\n }", "abstract int steps();", "public int getNumTimes();", "public long getExpectedNumTimePoints() {\n\t\tlong numTimepoints = 0;\n\t\tdouble endingTime = getTimeBounds().getEndingTime();\n\t\tdouble startingTime = getTimeBounds().getStartingTime();\n\n\t\tif (fieldOutputTimeSpec.isDefault()) {\n\t\t\tint keepEvery = ((DefaultOutputTimeSpec)fieldOutputTimeSpec).getKeepEvery();\n\t\t\tint keepAtMost = ((DefaultOutputTimeSpec)fieldOutputTimeSpec).getKeepAtMost();\n\n\t\t\tif (getSolverDescription().hasVariableTimestep()){\n\t\t\t\tnumTimepoints = keepAtMost;\n\n\t\t\t}else{ // fixed time step\n\t\t\t\tdouble timeStep = getTimeStep().getDefaultTimeStep();\n\t\t\t\tdouble saveInterval = timeStep * keepEvery;\n\t\t\t\tnumTimepoints = (long)((endingTime - startingTime) / saveInterval);\n\n\t\t\t\t//\n\t\t\t\t// keepAtMost will limit the number of points for ODEs.\n\t\t\t\t// for PDEs, keepAtMost is ignored.\n\t\t\t\t//\n\t\t\t\tif (getSolverDescription().supportsAll(SolverDescription.OdeFeatureSet.getSolverFeatures())) {\n\t\t\t\t\tnumTimepoints = Math.min(numTimepoints, keepAtMost);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (fieldOutputTimeSpec.isExplicit()) {\n\t\t\tnumTimepoints = ((ExplicitOutputTimeSpec)fieldOutputTimeSpec).getNumTimePoints();\n\t\t} else if (fieldOutputTimeSpec.isUniform()) {\n\t\t\tdouble outputTimeStep = ((UniformOutputTimeSpec)fieldOutputTimeSpec).getOutputTimeStep();\n\t\t\tnumTimepoints = (long)((endingTime - startingTime)/outputTimeStep);\n\t\t}\n\t\treturn numTimepoints;\n\t}", "public int getTimeTaken() {\n return this.getTreeNode().getBuilding().getTotalTimeTaken();\n }", "public int getRuns() {\n return runs;\n }", "public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }", "public static int getNbCycle() {\n\t\treturn nbCycle;\n\t}", "public int getRunningCount() {\r\n return root.getRunningCount();\r\n }", "public double averageSteps() {\n if (day==0) return 0;\n return (double) totalSteps / day;}", "public int moves()\n {\n return numberOfMoves;\n }", "private int jobLength(){\n LocalDate completedLocalDate = LocalDate.of(this.dateCompleted.getYear(), \n this.dateCompleted.getMonth(), this.dateCompleted.getDay());\n \n LocalDate startedLocalDate = LocalDate.of(this.dateStarted.getYear(), \n this.dateStarted.getMonth(), this.dateStarted.getDay());\n \n return startedLocalDate.until(completedLocalDate).getDays();\n }", "public Integer getNumOfMolsGenerated() {\n return numOfMolsGenerated;\n }", "public int getStep() {\r\n\t\t\treturn this.enabled;\r\n\t\t}", "public int getNumberOfSelfDivisibleNumbers() \r\n\t{\r\n\t\tList <Integer> numOfDiv = getSelfDivisibleNumbers();\r\n\t\tint rtnNum = numOfDiv.size();\r\n\t\treturn rtnNum;\r\n\t}", "public int moves() {\n\n return initialSolvable ? solutionNode.numberOfMovesMade : -1;\n }", "java.math.BigInteger getNumberOfInstallments();", "public int getRun();", "public int getConsecutivePasses() {\n return _consecutivePasses;\n }", "public int getTotalFrames() {\n int frame = 0;\n for (MOFPartPolyAnimEntry entry : getEntryList().getEntries())\n frame += entry.getDuration();\n return frame;\n }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int getTotalNumSyncPoints() {\n return (Integer) getProperty(\"numTotalSyncPoints\");\n }", "private int calStepScore(SlidingBoardManager slidingBoardManager) {\n int step = slidingBoardManager.getSlidingHistory().getSize() - 1;\n\n return Math.round(100 - step / 5);\n }", "public int getTotalRunTime() {\n return totalRunTime;\n }", "public double getNumberOfPayloadRepetitions() {\n\t\tdouble repetitionDelay = workloadConfiguration.getRepetitionDelay();\n\t\tdouble duration = workloadConfiguration.getDuration();\n\t\tdouble numberOfRepetitions = 1;\n\n\t\tif (numberOfRepetitions < (duration / repetitionDelay)) {\n\t\t\tnumberOfRepetitions = (duration / repetitionDelay);\n\t\t}\n\n\t\treturn numberOfRepetitions;\n\t}", "public int getRuns();", "public int getNumberOfMoves() {\r\n return numberOfMoves;\r\n }", "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "public int getStepLineNumber()\n\t{\n\t\treturn this.stepLineNumber;\n\t}", "public long getPropertyVolumeSteps()\n {\n return iPropertyVolumeSteps.getValue();\n }", "public int getStepY() {\n return stepY;\n }", "public Integer getNoOfPass() {\n\t\treturn noOfPass;\n\t}", "public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}", "int getIterations();", "public int getTotalWait() {\n return totalWait;\n }", "public int getTurnCount() {\n return turnEncoder.getCount();\n }", "public double getSimulationStepDuration(TimeUnit desired_unit) {\n\t\tassert(desired_unit!=null);\n\t\treturn Kernel.getSingleton().getSimulationClock().getSimulationStepDuration(desired_unit);\n\t}", "public long getNumInstructions();", "private int getNumberOfMachineUnits() {\r\n\t\tint machineUnitsCount = 0;\r\n\r\n\t\tfor (UnitType unitType : RepairableUnitTypes) {\r\n\t\t\tmachineUnitsCount += this.informationStorage.getCurrentGameInformation().getCurrentUnitCounts()\r\n\t\t\t\t\t.getOrDefault(unitType, 0);\r\n\t\t}\r\n\t\treturn machineUnitsCount;\r\n\t}", "double getStep() {\n\t\t\treturn scale;\n\t\t}", "public int getRunDuration() {\n return runDuration;\n }", "public int getAnswer(){\n return getVectorOne().getSteps() + getVectorTwo().getSteps();\n }", "static final long getTotalStartedCount()\n {\n synchronized (threadStartLock)\n {\n return totalStartedCnt;\n }\n }", "public int getNumOfActionTaken() {\n return numOfActionTaken;\n }" ]
[ "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.66661686", "0.66661686", "0.66661686", "0.6662017", "0.6652007", "0.66268736", "0.66268736", "0.66268736", "0.66243", "0.66243", "0.66243", "0.6622214", "0.66134775", "0.6593245", "0.6559452", "0.6539601", "0.6520864", "0.6505914", "0.6504079", "0.6504079", "0.64483887", "0.6424407", "0.6407429", "0.64067656", "0.63899815", "0.63822454", "0.638118", "0.6360702", "0.63460034", "0.6343249", "0.6322276", "0.63004196", "0.629845", "0.62346864", "0.6223755", "0.6203627", "0.61842614", "0.6109618", "0.6081297", "0.6066367", "0.60519314", "0.60370517", "0.60231733", "0.5999401", "0.5987633", "0.59870106", "0.598309", "0.5972526", "0.59670025", "0.5963752", "0.5954451", "0.59480244", "0.591027", "0.58908796", "0.58860177", "0.58744913", "0.58642966", "0.58626384", "0.58567256", "0.58534014", "0.5844571", "0.5815574", "0.5806938", "0.5801936", "0.5801936", "0.57884705", "0.5771021", "0.5766126", "0.5739682", "0.57289904", "0.5720476", "0.57201546", "0.571924", "0.57159644", "0.5715172", "0.5712274", "0.57074445", "0.5706378", "0.5705459", "0.5700168" ]
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(String[] args) throws Exception {\r\n\t\tSimulatorApp toyRobotSimulator = new SimulatorApp();\t\r\n\t\ttoyRobotSimulator.simulate();\r\n\t}", "public static void main(String[] args) {\n launch(BlaiseGraphicsTestApp.class, args);\n }", "public static void main(final String... args) {\n\n Application.launch();\n }", "public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }", "public static void main(String[] args) {\n Simulation sim = new Simulation();\n //runs it.\n sim.Run();\n }", "public static void main(String[] args) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new LaunchGame().setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(LaunchGame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }", "public static void main(String[] args) throws Exception {\n Path selfPath = Paths.get(TestBrowser.class.getProtectionDomain().getCodeSource().getLocation().toURI());\n ModuleFinder finder = ModuleFinder.of(\n Paths.get(System.getProperty(\"javafx.sdk.path\")),\n selfPath\n );\n\n // Load the application as a named module and invoke it\n ModuleLayer parent = ModuleLayer.boot();\n Configuration cf = parent.configuration().resolve(finder, ModuleFinder.of(), Set.of(\"ReproduceOpenjfxCrash2\"));\n ClassLoader scl = ClassLoader.getSystemClassLoader();\n ModuleLayer layer = parent.defineModulesWithOneLoader(cf, scl);\n Class appClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"javafx.application.Application\");\n Class testClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"eu.doppel_helix.dev.jdk.reproducecrash.TestBrowserImpl\");\n Method launchMethod = appClass.getMethod(\"launch\", Class.class, String[].class);\n launchMethod.invoke(null, new Object[]{testClass, args});\n }", "public static void main(String[] args) {\n\n Application.launch(args);\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}", "public static void main(String[] args) {\n\t\tnew Simulation();\n\n\t}", "public static void main(String[] args) {\n\t\tlaunch();\n\t}", "public static void main(String[] args) {\n\t\tfinal Device lamp = new Device(\"Lamp\", \"Lamp\",\"Lamp\" ,\"img/lamp.png\");\r\n\t\t\r\n\t\t//2. Register the 2 functions\r\n\t\tlamp.registerFunction(\"SwitchOn\", \"Function exposed to server\");\r\n\t\tlamp.registerFunction(\"SwitchOff\", \"Function exposed to server for switching off the device\");\r\n\t\t\r\n\t\t//3. Set the type of communication layer. In this case it is a java implementation of websocket.\r\n\t\t//Depending the environment the driver is running, other implementation of the websocket layer can be injected\r\n\t\tlamp.setWebsocketLayer(new JavaWebsocketLayer(lamp));\r\n\t\t\r\n\t\t//a simple text label to display if lamp is on or off.\r\n\t\t//in a real lamp, instead displaying a label, the microcontroller will send an electric signal to a switch\r\n\t\tfinal JLabel state = new JLabel();\r\n\t\t\r\n\t\t//4. Add function handlers to execute the captured events\r\n\t\t//this implementation of the handler simply diplays Switched on or Switched off\r\n\t\tlamp.addFunctionHandler(new FunctionHandler() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String name, Map<String, String> input) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\t\tif(name.equals(\"SwitchOn\")){\r\n\t\t\t\t\t\tstate.setIcon(new ImageIcon(new URL(\"http://72.13.93.222:8080/hatzouf/img/light-on.png\")));\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tstate.setIcon(new ImageIcon(new URL(\"http://72.13.93.222:8080/hatzouf/img/light-off.png\")));\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//5. This handler is executed when the device is connected and ready for use.\r\n\t\tlamp.onReady(new OnReady() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void ready() {\r\n\t\t\t\tJFrame frame = new JFrame(\"Lamp\");\r\n\t\t\t\tframe.getContentPane().add(state, BorderLayout.NORTH);\r\n\t\t\t\tframe.setSize(300, 275);\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//6. connect the device to the hatzouf server\r\n\t\tlamp.connect(\"ws://72.13.93.222:8080/hatzouf/websockets/iot\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "public static void main(String [] args){\n SmartPhone sm = new SmartPhone();\n sm.run();\n // System.out.println(sm.run());\n }", "public static void main(String[] args) {\n new GameJFrame();\n // new DigitalWatch();\n }", "public static void main(String[] args)\n\t{\n\t\tgo = new GUI();\n\t\tgo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgo.setExtendedState(JFrame.MAXIMIZED_BOTH); // Method to make auto-full screen\n\n\t\tgo.setVisible(true); // Basic frame stuff\n\t\tgo.init();\n\t\tr = new Runner();\n\t}", "void launchApp();", "public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n// Scenario scenario = ScenarioUtils.loadScenario(config);\n// Controler controler = new Controler(scenario);\n// controler.run();\n\n\n// Config config = this.utils.loadConfig(IOUtils.extendUrl(ExamplesUtils.getTestScenarioURL(\"pt-tutorial\"), \"0.config.xml\"));\n config.controler().setLastIteration(1);\n config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n\n\n// try {\n Controler controler = new Controler(config);\n// final EnterVehicleEventCounter enterVehicleEventCounter = new EnterVehicleEventCounter();\n// final StageActivityDurationChecker stageActivityDurationChecker = new StageActivityDurationChecker();\n// controler.addOverridingModule( new AbstractModule(){\n// @Override public void install() {\n// this.addEventHandlerBinding().toInstance( enterVehicleEventCounter );\n// this.addEventHandlerBinding().toInstance( stageActivityDurationChecker );\n// }\n// });\n controler.run();\n }", "@Override\n public void run() {\n logger.debug(\"OImaging.execute() handler called.\");\n\n // reset IRModelManager to fire an IRMODEL changed event to all registered listeners:\n IRModelManager.getInstance().start();\n\n // headless mode:\n final JFrame appFrame = App.getExistingFrame();\n if (appFrame != null) {\n appFrame.setVisible(true);\n }\n }", "public static void main(String[] args){\n try {\n GameClient.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "boolean launch();", "public void run() {\n\t\t\t\tui = new GUI();\n\t\t\t\tui.generateUI();\n\t\t\t\tui.showUI(true);\n\n\t\t\t\t// Start sim ticking - sim is initialized below *before* this is called\n\t\t\t\tsim.newSim();\n\t\t\t\tsim.start();\n\t\t\t}", "public void startSimulation();", "public static void main(String[] args) {\n launch(args);\n\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}", "@Override\n protected final void startApplication() throws Exception {\n if (!checkSimulationDirectory()) {\n // There is no path and it is either not possible to set a path or the user aborted the corresponding dialog.\n System.exit(0);\n }\n \n MessageDialog.getInstance();\n \n try {\n SwingUtilities.invokeAndWait(() -> {\n try{\n initializeComponentContainer();\n } catch(Exception e){\n MessageDialog.getInstance().message(\"Exception while initializing component container: \" + e.getMessage());\n }\n });\n } catch (InterruptedException | InvocationTargetException e) {\n throw new Exception(\"Exception during startup.\", e);\n }\n createMainClass();\n }", "public final void start() {\n logger.info(\"Application started.\");\n try {\n getAttributes();\n\n initSystem();\n\n assertDisplayCreated();\n\n timer = Timer.getTimer();\n \n initGame();\n\n //main loop\n while (!finished && !display.isClosing()) {\n //determine time elapsed since last frame\n updateTime();\n\n //handle input events prior to updating the scene\n // - some applications may want to put this into update of the game state\n InputSystem.update();\n\n //update game state, pass amount of elapsed time\n update(frametime);\n\n //render, do not use interpolation parameter\n render(-1.0f);\n\n //swap buffers\n display.getRenderer().displayBackBuffer();\n\n Thread.yield();\n }\n } catch (Throwable t) {\n logger.logp(Level.SEVERE, this.getClass().toString(), \"start()\", \"Exception in game loop\", t);\n } finally {\n cleanup();\n }\n logger.info(\"Application ending.\");\n\n if (display != null) {\n display.reset();\n }\n quit();\n }", "private void launchApplication() {\n driver.manage().deleteAllCookies();\n driver.get(config.getProperty(\"testSiteUrl\"));\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(Integer.parseInt(config.getProperty(\"implicit.wait\")), TimeUnit.SECONDS);\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] argv) {\r\n\t\tboolean sharedContextTest = false;\r\n\r\n\t\tAppGameContainer container = new AppGameContainer(new ImageCornerTest(), 800, 600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.setDisplayMode(800,600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.start();\r\n\t}", "public static void main (String args[]){\n\t\tJFrame application = new JFrame();\r\n\t\tapplication.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tPendulumDemo gui = new PendulumDemo();\r\n\r\n\t\tapplication.setLayout(new GridLayout(1,2));\r\n\t\tapplication.add(gui.scopePanel);\r\n\t\tapplication.add(gui.graphicsPanel);\r\n\t\tapplication.setSize (1200, 900); // (width, height)\r\n\t\tapplication.setVisible(true);\r\n\r\n\t\tAnimator animator = new Animator(gui);\r\n\t\tanimator.run();\r\n\r\n\t}", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main (String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n SimpleUserInterface app = new SimpleUserInterface();\n app.start();\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "public static void main(String[] arguments){\r\n TicTac frame = new TicTac(); //runs the screen layout class.\r\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\n\t\t// System.out.println(Tile.class.getName());\n\t\tAppGameContainer app = null;\n\t\ttry {\n\t\t\tapp = new AppGameContainer(new GameStart());\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\t// app.setMinimumLogicUpdateInterval(TICK_TIME);\n\t\t\t// app.setMaximumLogicUpdateInterval(TICK_TIME);\n\t\t\tapp.setDisplayMode(WINDOW_WIDTH, WINDOW_HEIGHT, false);\n\t\t\tapp.start();\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "public static void main(String[] args)\n {\n new Launcher();\n }", "public static void main(String[] args)\n {\n launch(args);\n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "public static void main(String[] args){\n\t\t\n\t\ttry{\n\t\t\t//Socket attempts to connect to the same computer, localhost, using the port number 4500\n\t\t\tclient = new Socket(\"localhost\", 4500);\n\t\t\t\n\t\t\t//A PrintWriter is connected to the OutputStream of the client Socket. \n\t\t\t//The boolean determines whether it should auto-flush or not.\n\t\t\tout = new PrintWriter(client.getOutputStream(),true);\n\t\t\t\n\t\t\t//The BufferedReader creates a Buffer for the InputStreamReader, which in turn\n\t\t\t//reads from the InputStream of the client Socket. \n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\t\n\t\t\t//The ObjectInputStream is able to read objects from the Socket\n\t\t\tobjIn = new ObjectInputStream(client.getInputStream());\n\t\t\t\n\n\t\t}catch(FileNotFoundException fnfe){\n\t\t\tfnfe.printStackTrace();\n\t\t\t\n\t\t}catch(ConnectException ce) {\n\t\t\tSystem.out.println(\"Could not connect to the server. Please ensure that the server is active before starting the game.\");\n\t\t\tSystem.exit(1);\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\t\n\t\t//JavaFX requires that this method is called, with args as a parameter, in order to start creating windows\n\t\tlaunch(args);\n\t}", "private void runSimulation() throws Exception{\n\t\tsimulatable.simulate();\n\t\tprintUsage();\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(TamaView.class, args);\n\n\t}", "public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }", "public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n launch(args); \n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static void main(String[] args) throws InterruptedException {\n\t\tLogic logic = new Logic();\n\t\tInterface interfac = new Interface(logic);\n\t\tGraphic graphic = new Graphic(logic);\n\t\t//start of the graphic\n\t\tgraphic.start();\n\t\t//start of the listener\n\t\tinterfac.listen();\n\t\t//terminate lib\n\t\tgraphic.stop();\n\t\tGLFW.glfwTerminate();\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public void start() {\r\n try {\r\n // Using command line args instead \r\n // System.setProperty(\"org.lwjgl.librarypath\", new File(\"lib/lwjgl-2.9.2/native/windows\").getAbsolutePath());\r\n createWindow();\r\n initGL();\r\n render();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }" ]
[ "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.60247874", "0.60240144", "0.6020419", "0.601268", "0.599896", "0.59886986", "0.5976181", "0.59642154", "0.59549737", "0.5939616", "0.593428", "0.5934114", "0.5924931", "0.59201753", "0.5903046", "0.5901268", "0.5897874", "0.5890548", "0.5890548", "0.58899534", "0.5884779", "0.58845526", "0.58845526", "0.58845526", "0.58845526", "0.58845526", "0.5871945", "0.58690476", "0.5868292", "0.5868292", "0.5868292", "0.5868292", "0.5868292", "0.5868292", "0.58673435", "0.58669204", "0.5861188", "0.58610624", "0.5860576", "0.5859745", "0.58536553", "0.5853013", "0.5851917", "0.5848379", "0.58480805", "0.5847916", "0.58473396", "0.58473265", "0.58425957", "0.583388", "0.58331996", "0.5829722", "0.5829722", "0.5829722", "0.5829722", "0.58276176", "0.58276176", "0.58276176", "0.5825527", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362", "0.5822362" ]
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 nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble distance = euclideanDistanceMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumEuclideanDistances += distance;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumEuclideanDistances / nDistances;\n\t}", "void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }", "double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}", "public double averageDayDriveDistance(String day)\n\t{\n\t\tint dayCount = 0; //total days run through\n\t\tString currentDate = \"\";\n\t\tdouble totalDistance = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)\n\t\t{\n\t\t\t//figures out the number of days, then averages the total by that number\n\t\t\tif(day.equals(saveData.get(i).get(\"day\")))\n\t\t\t{\n\t\t\t\tif(currentDate.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\t//if there is no current date, we must have just started; set the variable\n\t\t\t\t\tcurrentDate = saveData.get(i).get(\"date\"); //.get(\"date\") to be replaced\n\t\t\t\t\ttotalDistance += saveData.get(i).get(\"distance\");\n\t\t\t\t}\n\t\t\t\telse if(currentDate.equals(saveData.get(i).get(\"date\")))\n\t\t\t\t{\n\t\t\t\t\t//it's the same date, so add this distance to the total distance\n\t\t\t\t\ttotalDistance += saveData.get(i).get(\"distance\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//it's a different date, so set the currentDate to this one,\n\t\t\t\t\t//increment the days counter;\n\t\t\t\t\tcurrentDate = saveData.get(i).get(\"date\");\n\t\t\t\t\tdayCount++;\n\t\t\t\t\t//add this drive to the total distance\n\t\t\t\t\ttotalDistance += saveData.get(i).get(\"distance\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t//after all the indexes of saveData have been run through\n\t\t//clean up by increment the days counter\n\t\tdayCount++;\n\t\t//get the average by dividing the total distance by the days\n\t\tdouble averageDistancePerDay = this.totalDriveDistance()/dayCount;\n\t}", "public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }", "public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}", "private void computeDistances() {\n for (int i = 0; i < groundTruthInstant.size(); ++i)\n for (int j = 0; j < estimatedInstant.size(); ++j) {\n float currentDist = groundTruthInstant.get(i).getDistanceTo(estimatedInstant.get(j).getPos());\n if (currentDist < distToClosestEstimate[i][0]) {\n distToClosestEstimate[i][0] = currentDist;\n distToClosestEstimate[i][1] = j;\n }\n }\n }", "public double computeAverageInfoDistanceOfObservations() {\r\n\t\tdouble infoDistance = 0.0;\r\n\t\tfor (int b = 0; b < totalObservations; b++) {\r\n\t\t\tdouble marginalProbProducts = 1.0;\r\n\t\t\tfor (int d = 0; d < dimensions; d++) {\r\n\t\t\t\tmarginalProbProducts *= svkeMarginals[d].getProbability(observations[b][d], b);\r\n\t\t\t}\r\n\t\t\tdouble probJoint = mvkeJoint.getProbability(observations[b], b);\r\n\t\t\tdouble logTerm = 0.0;\r\n\t\t\tdouble cont = 0.0;\r\n\t\t\tif (probJoint > 0.0) {\r\n\t\t\t\t// TODO Should probably check that marginalProbProducts has not \r\n\t\t\t\t// gone to zero (this is possible with several multiplications\r\n\t\t\t\t// of 1/N, though is unlikely). I'm not sure what we would do if\r\n\t\t\t\t// it had gone to zero though ... ignore this value?\r\n\t\t\t\t// It's not easy to ignore since we can't say p log p -> 0 here\r\n\t\t\t\t// because marginalProbProducts is not multiplying out the front\r\n\t\t\t\tlogTerm = marginalProbProducts / (probJoint * probJoint);\r\n\t\t\t\tcont = Math.log(logTerm);\r\n\t\t\t}\r\n\t\t\tinfoDistance += cont;\r\n\t\t\tif (debug) {\r\n\t\t\t\tSystem.out.println(b + \": \" + logTerm + \" -> \" + (cont/Math.log(2.0)) +\r\n\t\t\t\t\t\t\" -> sum: \" + (infoDistance/Math.log(2.0)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn infoDistance / (double) totalObservations / Math.log(2.0);\r\n\t}", "private static final double[][] computeDistances(Tree tree, IdGroup idGroup)\n\t{\n\t\treturn computeDistances(tree, idGroup, false, 0.0);\n\t}", "private void calculateDistances(int point) {\n int start = getDistanceIndex(point);\n\n for (int i = 0; i < point; i++) {\n distances[start + i] = getDistance(ntree.get(point), ntree.get(i));\n }\n\n int numPoints = getNumPoints();\n\n for (int i = point + 1; i < numPoints; i++) {\n start = getDistanceIndex(i);\n distances[start + point] = getDistance(ntree.get(point),\n ntree.get(i));\n }\n }", "public static Map<Integer, Double> accumulate(DiskPositionalIndex index, int corpusSize, String query) throws IOException {\n Map<Integer, Double> accumulator = new HashMap<>();\n\n getTokens(query).forEach((token) -> {\n List<Posting> postings = index.getPostings(token);\n\n System.out.println(\"Postings size: \" + postings.size());\n \n //Calculate w(q,t) \n double wQT = 0.0, accu = 0.0, wDT = 0.0;\n \n if (!postings.isEmpty()) {\n wQT = Math.log(1.0 + ((double) corpusSize / (double) postings.size()));\n }\n\n for (Posting p : postings) {\n // Never encountered, add and initialize\n // if (!accumulator.containsKey(p.getDocumentId())) {\n // accumulator.put(p.getDocumentId(), 0.0);\n // }\n \n // Calculate weight of doc = 1 + ln(tf(t,d)) \n // wDT = 1.0 + Math.log((double) p.getPositions().size());\n wDT = p.getTermFrequency();\n \n // Acquire A(d)\n accu = accumulator.getOrDefault(p.getDocumentId(), 0.0); \n \n accumulator.put(p.getDocumentId(), accu + (wQT * wDT));\n }\n });\n \n // Divide all A(d) by L(d)\n for (Integer key : accumulator.keySet()) {\n if (accumulator.get(key) != 0.0) {\n // Accumulator = Accumulator / L(d)\n accumulator.put(key, (double) accumulator.get(key) / index.getDocWeight(key));\n }\n }\n \n return accumulator; \n }", "public double countAveragePath() {\n\t\t\n\t\tint summedPath = 0;\n\t\tdouble averagePath = 0;\n\t\t\n\t\tfor(Solution solution : population) {\n\n\t\t\tsummedPath += solution.countPath(solution.getPossibleSolution());\n\t\t}\n\t\taveragePath = (double) summedPath / (double) population.size();\n\t\t\n\t\tsetAveragePath(averagePath);\n\t\treturn averagePath;\n\t}", "public double getAverageDistanceDriven() {\n \tdouble totalDistance = 0;\n \tdouble n = 0;\n \tfor (int i = 0; i<4; i++) {\n \t\tif (module.get(i).getAbsoluteDistanceDriven() > 0.05) {\n \t\t\ttotalDistance += Math.abs(module.get(i).getAbsoluteDistanceDriven());\n \t\t\tn++;\n \t\t}\n \t}\n \tif (n == 0) {\n \t\t//System.out.println(\"no swerve modules have gone more than .3 feet\");\n \t\tn = 1;\n \t}\n \treturn totalDistance / n;\n }", "private void setDistanceValues(){\n float [] sumDistances = new float[1];\n\n distanceValue =0.0;\n\n for(int i= 0; i < trackingList.size()-1;i++){\n double startLong = trackingList.get(i).getLongtitude();\n double startLat = trackingList.get(i).getLatitude();\n double endLong = trackingList.get(i+1).getLongtitude();\n double endLat = trackingList.get(i+1).getLatitude();\n\n Location.distanceBetween(startLat,startLong,endLat,endLong,sumDistances);\n \n distanceValue += sumDistances[0];\n }\n\n }", "private float getTotal(HashMap<Integer, Integer> distances){\n float result = 0.0f;\n Iterator it = distances.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n result += (1/(Math.pow(2, (Integer)pair.getKey()))) * (Integer)pair.getValue();\n }\n return result;\n }", "private double totalDriveDistance()\n\t{\n\t\tdouble totalDistance = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//grab the total distance\n\t\t\ttotalDistance += saveData.get(i).get(\"distance\"); //.get(\"distance\") to be replaced by whatever method we use to grab a variable from an jsonObject\n\t\t}\n\t\treturn totalDistance;\n\t}", "public double getAverageDistance() {\n return (leftEnc.getDistance() + rightEnc.getDistance()) / 2;\n }", "public double averageDriveDistance()\n\t{\n\t\tdouble averageDistance = this.totalDriveDistance()/saveData.size();\n\t\treturn averageDistance;\n\t}", "public void mainProcess(java.util.ArrayList<double[]> dataPoint, String dist) throws Exception {\n double[][] S = initAP(dataPoint);\r\n// double[][] S = readData(fn);\r\n double[][] A = new double[N][N];\r\n double[][] R = new double[N][N];\r\n //////////////////////////////////////\r\n\tfor(int m=0; m<iter; m++) {\r\n// System.out.println(m);\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n double max = -1e100;\r\n for(int kk=0; kk<k; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n for(int kk=k+1; kk<N; kk++) {\r\n if(S[i][kk]+A[i][kk]>max)\r\n max = S[i][kk]+A[i][kk];\r\n }\r\n R[i][k] = (1-lambda)*(S[i][k] - max) + lambda*R[i][k];\r\n }\r\n }\r\n for(int i=0; i<N; i++) {\r\n for(int k=0; k<N; k++) {\r\n if(i==k) {\r\n double sum = 0.0;\r\n for(int ii=0; ii<i; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=i+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*sum + lambda*A[i][k];\r\n } else {\r\n double sum = 0.0;\r\n int maxik = Math.max(i, k);\r\n int minik = Math.min(i, k);\r\n for(int ii=0; ii<minik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=minik+1; ii<maxik; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n for(int ii=maxik+1; ii<N; ii++) {\r\n sum += Math.max(0.0, R[ii][k]);\r\n }\r\n A[i][k] = (1-lambda)*Math.min(0.0, R[k][k]+sum) + lambda*A[i][k];\r\n }\r\n }\r\n }\r\n }\r\n \r\n//\tdouble E[N][N] = {0};\r\n double[][] E = new double[N][N];\r\n\r\n//\tvector<int> center;\r\n java.util.ArrayList<Integer> center = new java.util.ArrayList<>();\r\n for(int i=0; i<N; i++) {\r\n E[i][i] = R[i][i] + A[i][i];\r\n if(E[i][i]>0) {\r\n center.add(i);\r\n }\r\n }\r\n// int idx[N] = {0};\r\n int idx[] = new int[N];\r\n\r\n\tfor(int i=0; i<N; i++) {\r\n int idxForI = 0;\r\n double maxSim = -1e100;\r\n for(int j=0; j<center.size(); j++) {\r\n int c = center.get(j);\r\n if (S[i][c]>maxSim) {\r\n maxSim = S[i][c];\r\n idxForI = c;\r\n }\r\n }\r\n idx[i] = idxForI;\r\n }\r\n// java.util.HashMap<Integer, String> colorMap = new java.util.HashMap<>();\r\n java.util.HashMap<Integer, Integer> idcMap = new java.util.HashMap<>();\r\n java.util.HashSet<Integer> idSet = new java.util.HashSet<>();\r\n for(int i=0; i<N; i++) {\r\n idcMap.put(i, idx[i]);\r\n idSet.add(idx[i]);\r\n// System.out.println(idx[i]+1);\r\n\t}\r\n java.io.FileWriter out = new java.io.FileWriter(dist);\r\n java.util.HashMap<Integer, String> colorMap = getColorMap(idSet);\r\n for(int i=0; i<N; i++){\r\n double d[] = dataPoint.get(i);\r\n if(idSet.contains(i)){\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(i)+\"\\n\");\r\n }\r\n else{\r\n out.write(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i))+\"\\n\");\r\n }\r\n// System.out.println(i+\"\\t\"+d[0]+\"\\t\"+d[1]+\"\\t\"+colorMap.get(idcMap.get(i)));\r\n }\r\n out.close();\r\n// System.out.println(colorMap);\r\n /////////////////////////////////////////\r\n }", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "int updateCount(double dist);", "public void KNN() {\n\n\t\t\n\t\t// for each point in test data\n\t\tdouble x = 0;\n\t\tdouble y = 0;\n\t\tdouble xy = 0;\n\t\tdouble sum = 0;\n\t\tdouble m = this.Extracted_TestDataset.length;\n\t\tArrayList<ArrayList<Double>> EucledianDistanceUnsorted = new ArrayList<>(this.Extracted_TestDataset.length);\n\t\tArrayList<ArrayList<Double>> EucledianDistanceSorted = new ArrayList<>(this.Extracted_TestDataset.length);\n\t\t//EucledianDistance\n\t\t\n\t\t// Initialize EucledianDistance List\n\t\tfor(int i=0; i < this.Extracted_TestDataset.length; i++) {\n\t\t\tEucledianDistanceUnsorted.add(new ArrayList());\n\t\t}\n\t\t\n\t\tfor(int i=0; i < this.Extracted_TestDataset.length; i++) {\n\t\t\tEucledianDistanceSorted.add(new ArrayList());\n\t\t}\n\t\t\n\t\t// Testing sorting \n\t\t/*\n\t\tfor(int i=0; i < this.Extracted_TestDataset.length; i++) {\n\t\t\tfor(int k=0; k < this.Extracted_TestDataset[i].length; k++) {\n\t\t\t\tdouble min = 0.0; // Set To Your Desired Min Value\n\t\t double max = 10.0; // Set To Your Desired Max Value\n\t\t double ran = (Math.random() * ((max - min) + 1)) + min; // This Will Create \n\t\t \n\t\t double xrounded = Math.round(ran * 100.0) / 100.0; \n\t\t System.out.print(xrounded); \n\t\t //System.out.print(\" , \"); \n\t\t EucledianDistanceUnsorted.get(i).add(xrounded);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(\"\"); \n\t\t\t\n\t\t}\n\t\t*/\n\n\t\t\n\t\t\n\t\t//start at index 1 discard the attribute name row\n\t\tfor ( int p = 1; p < (this.Extracted_TestDataset.length-1) ; p++) {\n\t\t//start at index 1 discard the attribute name row\n\t\tfor ( int i = 1; i < this.Extracted_TrainingDataset.length; i++) {\n\t\t\tsum = 0;\n\t\t\tint k = 0;\n\t\t\t//System.out.println(\"first loop\");\n\t\t\tfor ( ; k < (this.Extracted_TestDataset[0].length-1) ; k++) {\t\t\t\n\t\t\t\t//System.out.println(\"second loop\");\n\t\t\t\t\n\t\t\t\tx = (Double.parseDouble(this.Extracted_TestDataset[p][k]));\n\t\t\t\t\t//System.out.print(\" x value : \");\n\t\t\t\t\t//System.out.print(x);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ty = (Double.parseDouble(this.Extracted_TrainingDataset[i][k]));\n\t\t\t//\tSystem.out.print(\" y value : \");\n\t\t\t//\tSystem.out.println(y);\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\txy = x - y;\n\t\t\t\n\t\t\t\txy = (Math.pow(xy, 2));\n\t\t\t\tsum += xy;\n\t\t\t\t\t\t\n\t\t\t\t//System.out.print(\" sum : \");\n\t\t\t\t//System.out.println(sum);\n\t\t\t\t}\n\n\t\t\tEucledianDistanceUnsorted.get(p).add((Math.sqrt(sum/k)));\n\t\t\t\t//System.out.printf(\" distance value of row %i in col %i : %s %n\", i, k ,EucledianDistanceUnsorted.get(i).get(k));\t\t\n\t\t\t}\n\t\t\n\t\t\t//start at index 1 discard the attribute name row\n\t\t\t/*for ( int i = 0; i < (this.Extracted_TrainingDataset.length-1) ; i++) {\t\t\n\t\t\t\tSystem.out.print(\" distance value of row \");\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tSystem.out.print(\" in col \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\tSystem.out.print(EucledianDistanceUnsorted.get(p).get(i));\n\t\t\t\tSystem.out.println(\"\");\t\n\t\t\t}*/\n\t\t\t\n\t\t System.out.print(\"Count : \");\n\t\t System.out.println(p);\n\t\t}\n\t\n\t\tSystem.out.println(\"About to sort distance\");\n\t\t\n\t\tfor( int i = 1; i < (EucledianDistanceUnsorted.size()-1); i++){\n\t\t\tArrayList<Double> temp = EucledianDistanceUnsorted.get(i);\n\t\t\tCollections.sort(temp);\n\t\t\tfor(int k=0; k < (this.Extracted_TrainingDataset.length- 1); k++) {\n\t\t\t\tEucledianDistanceSorted.get(i).add(temp.get(k));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" Sorted eucledian distance of first k values \");\n\t\tfor(int i=1; i < EucledianDistanceSorted.size()-1; i++) {\n\t\t\tfor(int k=0; k < (this.ValueofK); k++) {\n\t\t\t\tSystem.out.print(EucledianDistanceSorted.get(i).get(k));\n\t\t\t\tSystem.out.print(\" , \");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\" finding class of first k points \");\n\t\t// find majority distance and find index of distance in unsorted distance \n\t\tdouble majority = 0.0;\n\t\tint IndexofDistance = 0;\n\t\tfor(int i=1; i < (EucledianDistanceSorted.size()-1); i++) {\n\t\t\t\n\t\t\t\tmajority = findMajority(EucledianDistanceSorted.get(i), this.ValueofK);\n\t\t\t\tSystem.out.print(\" index : \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t\tSystem.out.print(\" majority : \");\n\t\t\t\tSystem.out.println(majority);\n\t\t\t\tIndexofDistance = findIndexofMajority(majority,EucledianDistanceUnsorted.get(i));\n\n\t\t\t\t//System.out.print(\" test row original class :\");\n\t\t\t\t//System.out.println(this.Extracted_TestDataset[i][this.feature_extraction.size()-1]);\n\t\t\t\tconfusionmatrix.addTrueValue(Extracted_TestDataset[i][this.feature_extraction.size()-1]);\n\t\t\t\t//System.out.print(\" predectived training row classifier : \");\n\t\t\t\t//System.out.println(this.Extracted_TrainingDataset[IndexofDistance][this.feature_extraction.size()-1]);\t\n\t\t\t\tconfusionmatrix.addPrediction(Extracted_TrainingDataset[IndexofDistance][this.feature_extraction.size()-1]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"Total number of predictions: \" + confusionmatrix.TotalNumberOfPredictions());\n\t\t\tSystem.out.println(\"Number of correct predictions: \"+confusionmatrix.Correct());\n\t\t\tSystem.out.println(\"Number of incorrect predictions: \"+confusionmatrix.Incorrect());\n\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"True positive (TP): correct positive prediction: \" + confusionmatrix.TruePositive());\n\t\t\tSystem.out.println(\"False positive (FP): incorrect positive prediction: \" + confusionmatrix.FalsePositive());\n\t\t\tSystem.out.println(\"True negative (TN): correct negative prediction: \" + confusionmatrix.TrueNegative());\n\t\t\tSystem.out.println(\"False negative (FN): incorrect negative prediction: \" +confusionmatrix.FalseNegative()); \n\t\t\tSystem.out.println(\"Error Rate: \"+confusionmatrix.ErrorRate());\n\t\t\tSystem.out.println(\"Accuracy Rate: \"+confusionmatrix.AccuracyRate());\n\t}", "private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }", "public static double totalDistance(ArrayList<Edge> tree) {\n double accumDistance = 0;\n \n \tfor (Edge e : tree) {\n \t\taccumDistance += e.distance();\n \t}\n \n \treturn accumDistance;\n }", "public float influence(ArrayList<String> s)\n {\n HashMap<Integer, Integer> distances = new HashMap<>();\n HashMap<String, Integer> nodeDistances = new HashMap<>();\n\n for(String node : s){\n if(!graphVertexHashMap.containsKey(node)) continue;\n //At the end nodeDistances will contain min distance from all nodes to all other nodes\n getMinDistances(node, distances, nodeDistances);\n }\n distances = new HashMap<>();\n Iterator it = nodeDistances.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n Integer distance = (Integer) entry.getValue();\n if(distances.containsKey(distance)){\n distances.put(distance, distances.get(distance)+1);\n }else{\n distances.put(distance, 1);\n }\n }\n return getTotal(distances);\n\n\n\n// float sum = 0.0f;\n// for(int i =0; i < numVertices; i++){\n// int y = gety(s, i);\n//// System.out.println(\"i is \" + i + \" and nodes at distance are \" + y);\n// sum += (1/(Math.pow(2,i)) * y);\n// }\n// return sum;\n }", "@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }", "private double calcNearestNeighborIndex(ArrayList<Point> pts) {\n int width = layoutPanel.getLayoutSize().width;\n int height = layoutPanel.getLayoutSize().height;\n\n // calculate average nearest neighbor\n double avgNN = 0;\n int n = pts.size();\n for (int i = 0; i < n; i++) {\n double minDist = Float.MAX_VALUE;\n for (int j = 0; j < n; j++) {\n if (i != j) {\n Point pti = pts.get(i);\n Point ptj = pts.get(j);\n double dist = Point2D\n .distanceSq(pti.x, pti.y, ptj.x, ptj.y);\n if (minDist > dist) {\n minDist = dist;\n }\n }\n }\n avgNN += Math.sqrt(minDist);\n }\n avgNN = avgNN / (double) n;\n\n // calculate estimated average neighbor\n double estANN = 1.0 / (2.0 * Math.sqrt((double) n\n / (double) (width * height)));\n\n return avgNN / estANN;\n }", "private void calculateDistances(int pDistancia,int pMetrica,int k)\n\t{\n\t\tDistance dist = null;\n\t\t\n\t\tfor (int i = 0; i < clusterList.size(); i++)\n\t\t{\n\t\t\tfor (int j = i+1; j < clusterList.size(); j++)\n\t\t\t{\n\t\t\t\tdist = new Distance(clusterList.get(i), clusterList.get(j));\n\t\t\t\tdist.calculateDistance(pDistancia, pMetrica, k);\n\t\t\t\tdistanceList.addLast(dist);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(distanceList);\n\t}", "private static void APSP(int[][] distanceData, ArrayList<Integer> connectedVertices) {\n\n for (int k : connectedVertices) {\n //for (int k = 0; k<3 ; k++) {\n System.out.println(\"In loop k = \" + k);\n for (int i : connectedVertices) {\n for (int j : connectedVertices) {\n if (distanceData[i][k] != GraphManager.NO_EDGE && distanceData[k][j] != GraphManager.NO_EDGE) {\n int sum = (distanceData[i][k] + distanceData[k][j]);\n if (distanceData[i][j] == GraphManager.NO_EDGE || sum < distanceData[i][j]) {\n distanceData[i][j] = sum;\n }\n }\n }\n }\n }\n }", "public double averageCosineSimilarity() {\n\n\t\tdouble sumCosineSimilarities = 0;\n\t\tdouble nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble similarity = cosineSimilarityMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumCosineSimilarities += similarity;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\tSystem.out.println(sumCosineSimilarities);\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumCosineSimilarities / nDistances;\n\t}", "public double getAverageHopsNumberPerPath (AbstractGrafo graph) throws ExcecaoGrafo {\n\t\tint numNodes = graph.getNos().tamanho();\n\t\tHashMap<String, Caminho> routeTable = new HashMap<String, Caminho>();\n\t\tList<Double> distances = new ArrayList<Double>();\n\t\tfor (int i = 1 ; i <= numNodes; i++) {\n\n\t\t\tfor (int k = 1 ; k <= numNodes ; k++) {\n\t\t\t\tif (k != i) {\n\t\t\t\t\tNo source = graph.getNo(new Integer(i).toString());\n\t\t\t\t\tNo destination = graph.getNo(new Integer(k).toString());\n\t\t\t\t\tCaminho path = Dijkstra.getMenorCaminho(graph, source, destination);\n\t\t\t\t\tString key = source.getId()+\"-\"+destination.getId();\n\t\t\t\t\tif (!routeTable.containsKey(key)) {\n\t\t\t\t\t\trouteTable.put(key,path);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Iterator<String> it = routeTable.keySet().iterator() ; it.hasNext() ; ) {\n\t\t\t\tString key = it.next();\n\t\t\t\tCaminho path = routeTable.get(key);\n\t\t\t\tdistances.add(path.getDistancia());\n\t\t\t}\n\n\t\t}\n\n\t\treturn this.mean(distances);\n\t}", "public HashMap getClusterDiameter() {\n double maxEuclideanDistance = 0;\n double maxCorrelationDistance = 0;\n\n Set probeIDSet = points.keySet();\n Iterator probeIt = probeIDSet.iterator();\n \n int comparisonIndex = 0;\n \n while (probeIt.hasNext()) {\n int probeID = (Integer) probeIt.next();\n double[] pointA = (double[]) points.get(probeID);\n\n Set probeIDSet2 = points.keySet();\n Iterator probeIt2 = probeIDSet2.iterator();\n while (probeIt2.hasNext()) {\n int probeID2 = (Integer) probeIt2.next();\n double[] pointB = (double[]) points.get(probeID2);\n \n HashMap distances = KMeans.getDistances(pointA, pointB);\n double eucDist = (Double) distances.get(\"euclidean\");\n double correlDist = (Double) distances.get(\"correlation\");\n \n if (comparisonIndex == 0) { // First distance\n maxEuclideanDistance = eucDist;\n maxCorrelationDistance = correlDist;\n } else if (eucDist > maxEuclideanDistance) {\n maxEuclideanDistance = eucDist;\n } else if ( Math.abs(correlDist) < maxCorrelationDistance) {\n maxCorrelationDistance = correlDist;\n }\n comparisonIndex++;\n }\n }\n \n HashMap<String, Double> distances = new HashMap<String, Double>();\n distances.put(\"euclidean\", maxEuclideanDistance);\n distances.put(\"correlation\", maxCorrelationDistance);\n return distances;\n }", "private void getDistance() {\n\n float dist = 0;\n Location location = \n locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n while (location==null) { //If we don't know where we are right now\n Toast.makeText(this, \"No last known location. Aborting...\", \n Toast.LENGTH_LONG).show();\n location = \n locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n\n createPositions();\n\n dist = location.distanceTo(mPositions.get(0).toLocation());\n distanceList.add(dist);\n\n dist = mPositions.get(0).toLocation().distanceTo(mPositions.get(1).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(1).toLocation().distanceTo(mPositions.get(2).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(2).toLocation().distanceTo(mPositions.get(3).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(3).toLocation().distanceTo(mPositions.get(4).toLocation());\n distanceList.add(dist);\n \n }", "private static void calculDistanceTournees(List<Point> points, int nbTournees) {\n long time = System.currentTimeMillis();\n double distance = 0;\n Random rand = new Random(0);\n for(int i=0; i<nbTournees; i++) {\n distance += calculDistanceTourneeAlea(points, rand);\n }\n long deltaTime = System.currentTimeMillis() - time;\n System.out.println(\"Calcul de la moyenne des distances pour \"+nbTournees+ \" tournees\");\n System.out.println(\"La moyenne vaut : \"+distance/nbTournees);\n System.out.println(\"La moyenne est calculee en \"+deltaTime+\" ms\");\n }", "public abstract double getDistance(int[] end);", "private int calcDistance()\n\t{\n\t\tint distance = 0;\n\n\t\t// Generate a sum of all of the difference in locations of each list element\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tdistance += Math.abs(indexOf(unsortedList, sortedList[i]) - i);\n\t\t}\n\n\t\treturn distance;\n\t}", "double average(double[] doubles) {\n double total = 0.0;\n //int count = 0;\n for (double d: doubles) {\n total = total + d;\n //count = count + 1;\n }\n //return total / count;\n return total / doubles.length;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n mNodes = sc.nextInt();\n mEdges = sc.nextInt();\n \n mDistances = new int[mNodes+1][mNodes+1];\n \n for (int i =1; i <= mNodes; i++)\n {\n \n for (int j =1; j <=mNodes;j++)\n {\n mDistances[i][j] = Integer.MAX_VALUE;\n \n }\n }\n \n for (int i =1; i <= mNodes; i++)\n {\n mDistances[i][i] =0;\n }\n \n for (int i = 0 ; i < mEdges; i++)\n {\n int from = sc.nextInt();\n int to = sc.nextInt();\n \n mDistances[from][to] = sc.nextInt();\n \n \n }\n \n \n //FW\n \n for (int k = 1; k <= mNodes; k++)\n {\n \n for (int i = 1; i <= mNodes; i++)\n {\n \n for (int j = 1; j <= mNodes; j++)\n {\n \n if (mDistances[i][k]!= Integer.MAX_VALUE && mDistances[k][j] != Integer.MAX_VALUE )\n {\n if (mDistances[i][j] > mDistances[i][k] + mDistances[k][j])\n {\n \n mDistances[i][j] = mDistances[i][k] + mDistances[k][j];\n }\n \n }\n \n }\n }\n \n }\n \n mQueries = sc.nextInt();\n \n for (int i =0; i < mQueries; i++)\n {\n int dist = mDistances[sc.nextInt()][sc.nextInt()];\n \n if (dist == Integer.MAX_VALUE)\n {\n dist = -1;\n }\n \n System.out.println(dist);\n \n }\n \n \n \n \n \n \n \n \n \n }", "public Instances[] processDistancesAndIndices(Instances instances) throws Exception {\n \n int seriesLength = instances.numAttributes()-(instances.classIndex()>=0?1:0);\n \n if(windowSize < 3){\n throw new Exception(\"Error: window must be at least 3. You have specified \"+windowSize);\n }\n \n if(windowSize > seriesLength){\n throw new Exception(\"Error: window must be smaller than the number of attributes. Window length: \"+windowSize+\", series length: \"+seriesLength);\n }\n \n if(seriesLength/4 < windowSize){\n throw new Exception(\"Error: the series length must be at least 4 times larger than the window size to satisfy the exclusion zone criteria for trivial matches. These instances have a series length of \"+seriesLength+\"; the maximum window size is therefore \"+(seriesLength/4)+\" and you have specified \"+windowSize);\n }\n \n SingleInstanceMatrixProfile mpIns;\n Instances outputDistances = this.determineOutputFormat(instances);\n Instances outputIndices = this.determineOutputFormat(instances);\n Instance outDist, outIdx;\n \n this.distances = new double[instances.numInstances()][];\n this.indices = new int[instances.numInstances()][];\n \n for(int a = 0; a < seriesLength-windowSize+1; a++){\n outputIndices.renameAttribute(a, \"idx_\"+a);\n }\n outputIndices.setRelationName(outputIndices.relationName()+\"_indices\");\n \n for(int ins = 0; ins < instances.numInstances(); ins++){\n mpIns = new SingleInstanceMatrixProfile(instances.get(ins),this.windowSize, this.stride);\n outDist = new DenseInstance(outputDistances.numAttributes());\n outIdx = new DenseInstance(outputIndices.numAttributes());\n \n distances[ins] = mpIns.distances;\n indices[ins] = mpIns.indices;\n \n for(int i = 0; i < mpIns.distances.length; i++){\n outDist.setValue(i, mpIns.distances[i]);\n outIdx.setValue(i, mpIns.indices[i]);\n }\n \n if(instances.classIndex() >=0){\n outDist.setValue(mpIns.distances.length, instances.instance(ins).classValue());\n outIdx.setValue(mpIns.indices.length, instances.instance(ins).classValue());\n }\n \n outputDistances.add(outDist);\n outputIndices.add(outIdx);\n }\n return new Instances[]{outputDistances,outputIndices};\n }", "public Double computeAverage(){\n\t\tdouble total = 0; //double used to keep total value of elements in arr to determine average\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++)//loop through array and add the total\n\t\t{\n\t\t\ttotal += arr[i].doubleValue(); //add current value of element in arr to total's value\n\t\t}\n\t\t\n\t\tDouble result = total/arr.length; //returns the average as a Double\n\t\t\n\t\treturn result;\n\t}", "public static void graph(int n){\n distance = new int[n];\n for(int i=0;i<n;i++)\n distance[i]= Integer.MAX_VALUE ;\n\n adj = new HashMap<>();\n for(int i=0;i<n;i++){\n List<Edge> obj = new ArrayList<>();\n adj.put(i,obj);\n }\n }", "double getDistance();", "double treeNodeTargetFunctionValue(){\n\t\t\t//loop counter variable\n\t\t\tint i;\n\t\t\t\n\t\t\t//stores the cost\n\t\t\tdouble sum = 0.0;\n\n\t\t\tfor(i=0; i<this.n; i++){\n\t\t\t\t//stores the distance\n\t\t\t\tdouble distance = 0.0;\n\n\t\t\t\t//loop counter variable\n\t\t\t\tint l;\n\n\t\t\t\tfor(l=0;l<this.points[i].dimension;l++){\n\t\t\t\t\t//centroid coordinate of the point\n\t\t\t\t\tdouble centroidCoordinatePoint;\n\t\t\t\t\tif(this.points[i].weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l] / this.points[i].weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinatePoint = this.points[i].coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\t//centroid coordinate of the centre\n\t\t\t\t\tdouble centroidCoordinateCentre;\n\t\t\t\t\tif(this.centre.weight != 0.0){\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l] / this.centre.weight;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcentroidCoordinateCentre = this.centre.coordinates[l];\n\t\t\t\t\t}\n\t\t\t\t\tdistance += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tsum += distance*this.points[i].weight;\t\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "double average();", "public double findDensity() {\n\t\tdouble temp = 0.0;\n\t\tfor (int i = 0; i < neighbors.size(); i++) { //calculate desnity using point and k nearest neighbors\n\t\t\tPoint t = neighbors.get(i);\n\t\t\tArrayList<Double> pa = t.getList();\n\t\t\tArrayList<Double> pb = p.getList();\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j < pa.size(); j++) {\n\t\t\t\tsum += Math.pow(pa.get(j)- pb.get(j), 2); //use euclidian distance\n\t\t\t}\n\t\t\ttemp += Math.sqrt(sum);\n\t\t}\n\t\treturn ((neighbors.size())/temp);\n\t}", "public static void ITdistances()\n\t{\n\t\t//System.err.println(\"Position\");\n\n\t\tclade = clad[k];\n\n\t\tclade.tipDistance = 0;\n\t\tclade.intDistance = 0;\n\t\tclade.tipDisNested = 0;\n\t\tclade.intDisNested = 0;\n\t\tclade.indTipClades = 0;\n\t\tclade.indIntClades = 0;\n\n\n\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t{ \n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (clade.Position[i] == tip)\n\t\t\t\t\tclade.indTipClades += clade.rowTotal[i];\n\t\t\t\telse\n\t\t\t\t\tclade.indIntClades += clade.rowTotal[i];\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\t// weigthing within class\n\t\t\t\tclade.tipDistance += clade.Position[i] * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.tipDisNested += clade.Position[i] * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\tclade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\t\n\t\t\t\t\n\t\t\t\t// unweighted\n\t\t\t\t//clade.tipDistance += clade.Position[i] * clade.Dc[i] / (double) clade.check;\n\t\t\t\t//clade.tipDisNested += clade.Position[i] * clade.Dn[i] / (double) clade.check;\n\t\t\t\t//clade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] / (double) (clade.numSubClades - clade.check);\n\t\t\t\t//clade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] / (double) (clade.numSubClades - clade.check);\t\n\t\t\t}\n\n\t\t clade.tipIntDistance = clade.intDistance - clade.tipDistance;\n\t\t clade.tipIntDisNested = clade.intDisNested - clade.tipDisNested;\n\t\t if(verbose){\n\t\t\tlogfile.println(\"\\nIT \" + clade.cladeName + \" indTipClades = \" + clade.indTipClades\n\t\t\t\t+ \" indIntClades + \" + clade.indIntClades);\n\t\t\tlogfile.println(\"\\nITc \" + clade.cladeName + \" meanInt = \" + clade.intDistance\n\t\t\t\t+ \" meanTip = \" + clade.tipDistance);\n\t\t\tlogfile.println(\"ITn \" + clade.cladeName + \" meanInt = \" + clade.intDisNested\n\t\t\t\t+ \" meanTip = \" + clade.tipDisNested);\n\t\t }\n\t\t}\n\n\t\t//System.err.println(\"IT clade \" + clade.cladeName + \" meanInt = \" + clade.intDistance + \" meanTip = \" + clade.tipDistance);\n\n\t}", "Execution getAverageExecutions();", "public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "public Transition[] computeDistances(){\n\t\tSystem.out.println(\"Computing Transitions...\");\n\t\tTransition[] instanceTransitions = new Transition[nbBd*(nbBd-1)*4];\n\t\t//i sera l'indice de la cellule du tableau\n\t\tint i=0;\n\t\tfor (Strip aStrip : tabStrips){\n\t\t\tfor (Strip anotherStrip : tabStrips)\n\t\t\t\tif (aStrip != anotherStrip){\n\t\t\t\t\tdouble dist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t}//i != j\n\t\t\t//calcul de indMiddleTMin au fur et a mesure en utilisant des coefficients \n\t\t\t//pour eviter de depasser la taille maximale des int \n\t\t\tint divider = ((2*i) / ((nbBd-1) * 4));\n\t\t\tindMiddleTMin = ((indMiddleTMin * (divider - 2)) + (aStrip.indTMin0 + aStrip.indTMin1)) / divider;\n\t\t}//for\n\t\treturn instanceTransitions;\n\t}", "public int getTotal(){\n\t\tif (getDistance() < N*1000){\n\t\t\treturn firstNKmCost;\n\t\t} else {\n\t\t\treturn firstNKmCost + (getDistance() - N * 1000 ) * costPerKm / 1000;\n\t\t}\n\t}", "public ArrayList<Double>[] imputeDistributed(InstanceAttributes atts) {\r\n\t\tInstance neighbor;\r\n\t\tdouble dist, maxdist, candidateDist;\r\n\t\tint actual;\r\n\t\tint[] N = new int[nneigh];\r\n\t\tdouble[] Ndist = new double[nneigh];\r\n\t\tint ndatos2 = IStest.getNumInstances();\r\n\t\tndatos = IS.getNumInstances();\r\n\t\tnvariables = atts.getNumAttributes();\r\n\t\tnentradas = atts.getInputNumAttributes();\r\n\t\tnsalidas = atts.getOutputNumAttributes();\r\n\r\n\t\tArrayList<Double>[] result = (ArrayList<Double>[]) new ArrayList[ndatos2];\r\n\t\tArrayList<Double> distWithMVsIndex = new ArrayList<Double>();\r\n\t\tArrayList<Double> MVsIndex = new ArrayList<Double>();\r\n\t\tint probando = 0;\r\n\t\ttry {\r\n\r\n\t\t\tfor (int i = 0; i < ndatos2; i++) {\r\n\t\t\t\tInstance inst = IStest.getInstance(i);\r\n\r\n\t\t\t\t// since exists MVs, first we must compute the nearest\r\n\t\t\t\t// Neighbors for our instance\r\n\t\t\t\tmaxdist = Double.MAX_VALUE;\r\n\t\t\t\tfor (int n = 0; n < nneigh; n++) {\r\n\t\t\t\t\tNdist[n] = Double.MAX_VALUE;\r\n\t\t\t\t\tN[n] = -1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tMVsIndex = MVsIndex(inst); // TODO - hacerlo en la primera\r\n\t\t\t\t\t\t\t\t\t\t\t// iteracion de k dentro de\r\n\t\t\t\t\t\t\t\t\t\t\t// 'distance'\r\n\t\t\t\tfor (int k = 0; k < ndatos; k++) {\r\n\t\t\t\t\tneighbor = IS.getInstance(k);\r\n\t\t\t\t\tdist = distance(inst, neighbor, atts);\r\n\t\t\t\t\tif (dist > 0) { // Leave one out + dont have the same\r\n\t\t\t\t\t\t\t\t\t// missing attributes\r\n\t\t\t\t\t\tif (dist < maxdist) {\r\n\t\t\t\t\t\t\tprobando++;\r\n\t\t\t\t\t\t\tactual = -1;\r\n\t\t\t\t\t\t\tcandidateDist = Ndist[0];\r\n\t\t\t\t\t\t\tfor (int n = 0; n < nneigh; n++) {\r\n\r\n\t\t\t\t\t\t\t\tif (dist < Ndist[n]) {\r\n\t\t\t\t\t\t\t\t\tif (actual != -1) {\r\n\t\t\t\t\t\t\t\t\t\tif (Ndist[n] > Ndist[actual]) {\r\n\t\t\t\t\t\t\t\t\t\t\tcandidateDist = Ndist[actual];\r\n\t\t\t\t\t\t\t\t\t\t\tactual = n;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\t\t\t\tactual = n;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (actual != -1) {\r\n\t\t\t\t\t\t\t\tN[actual] = k;\r\n\t\t\t\t\t\t\t\tNdist[actual] = dist;\r\n\t\t\t\t\t\t\t\tmaxdist = Math.max(candidateDist, dist);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tresult[i] = new ArrayList<Double>();\r\n\t\t\t\tfor (int g = 0; g < nneigh; g++) { // Add the distance to the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\r\n\t\t\t\t\tif (N[g] != -1)\r\n\t\t\t\t\t\tresult[i].add((double) Ndist[g]);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tresult[i].add(Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdouble size = MVsIndex.size();\r\n\t\t\t\tfor (int t = 0; t < size; t++) {\r\n\t\t\t\t\t// Add the index of the missing value\r\n\t\t\t\t\tresult[i].add((double) MVsIndex.get(t));\r\n\r\n\t\t\t\t\tfor (int g = 0; g < nneigh; g++) {\r\n\t\t\t\t\t\t// Add the value of the neighbor for this feature\r\n\t\t\t\t\t\tif (N[g] != -1)\r\n\t\t\t\t\t\t\tresult[i].add((double) IS.getInstance(N[g])\r\n\t\t\t\t\t\t\t\t\t.getAllInputValues()[t]);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tresult[i].add((double) IS.getInstance(0)\r\n\t\t\t\t\t\t\t\t\t.getAllInputValues()[t]);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Dataset exception = \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t\treturn result;\r\n\r\n\t}", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "public int[] getDistances(){\n\t\treturn distances;\n\t}", "public abstract double calculateDistance(double[] x1, double[] x2);", "public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}", "public static double averageOfNumbers(int n) {\n Scanner keyedInput = new Scanner(System.in);\n\n double total = 0;\n double[] values = new double[n];\n\n System.out.println(\"Please enter your values:\");\n for (int i = 0; i < n; i = i + 1) {\n values[i] = keyedInput.nextDouble();\n total = total + values[i];\n }\n double a = (double) Math.round((total / n) * 100) / 100;\n return a;\n }", "abstract ArrayList<Pair<Integer,Double>> adjacentNodes(int i);", "public double getFinalDistance(){\n return valori.get(end_node);\n }", "public ArrayList<ArrayList<Example>> kmeanlearn(int k, int n, boolean dist) {\n kmean = new KMean(new ArrayList<Example>(learningData.getExamples().subList(n+1, learningData.getExamples().size())), k);\n kmean.kmeanAlgorithm(dist);\n return kmean.getCluster();\n }", "public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }", "private double getAverage(Queue<Integer> q) {\r\n double average = 0;\r\n\r\n Iterator<Integer> it = q.iterator();\r\n while(it.hasNext()) {\r\n int current = it.next();\r\n average += current;\r\n if(!it.hasNext()) // last element\r\n average += current * LAST_MOVE_WEIGHT;\r\n }\r\n\r\n average /= MEMORY_SIZE + LAST_MOVE_WEIGHT;\r\n\r\n return average;\r\n }", "public double calculateDistance(int index1, int index2) {\n //Initialize city hashmaps\n HashMap<String, Object> portland = new HashMap<String, Object>();\n portland.put(\"cityIndex\", 1);\n portland.put(\"x\", 50);\n portland.put(\"y\", 50);\n HashMap<String, Object> sedona = new HashMap<String, Object>();\n sedona.put(\"cityIndex\", 2);\n sedona.put(\"x\", 100);\n sedona.put(\"y\", 500);\n HashMap<String, Object> syracuse = new HashMap<String, Object>();\n syracuse.put(\"cityIndex\", 3);\n syracuse.put(\"x\", 800);\n syracuse.put(\"y\", 50);\n HashMap<String, Object> denver = new HashMap<String, Object>();\n denver.put(\"cityIndex\", 4);\n denver.put(\"x\", 300);\n denver.put(\"y\", 250);\n HashMap<String, Object> miami = new HashMap<String, Object>();\n miami.put(\"cityIndex\", 5);\n miami.put(\"x\", 800);\n miami.put(\"y\", 750);\n HashMap<String, Object> madison = new HashMap<String, Object>();\n madison.put(\"cityIndex\", 6);\n madison.put(\"x\", 550);\n madison.put(\"y\", 150);\n HashMap<String, Object> dallas = new HashMap<String, Object>();\n dallas.put(\"cityIndex\", 7);\n dallas.put(\"x\", 350);\n dallas.put(\"y\", 750);\n\n //put hashmaps into an array\n HashMap[] cityArray = {portland, sedona, syracuse, denver, miami, madison, dallas};\n int x1 = 0;\n int x2 = 0;\n int y1 = 0;\n int y2 = 0;\n\n //grab appropriate x and y values\n for(HashMap city: cityArray) {\n if(city.containsValue(index1)) {\n x1 = (int)city.get(\"x\");\n y1 = (int)city.get(\"y\");\n }\n if(city.containsValue(index2)) {\n x2 = (int)city.get(\"x\");\n y2 = (int)city.get(\"y\");\n }\n }\n\n //calculate and return distance\n double distance = Math.sqrt(Math.pow((x1-x2), 2) + Math.pow((y1-y2), 2));\n return distance;\n }", "public double[] obtenerDistancias (List<NaveDTO> naveDTOS){\n logger.debug(\"MensajeService::obtenerDistancias()\");\n double[] array = new double[naveDTOS.size()];\n for (int i = 0; i<naveDTOS.size(); i++){\n array[i] = naveDTOS.get(i).getDistance();\n }\n return array;\n }", "public void printDistance(int runNum, String dir){\n\n List<String[]> destinations = parseFileByName(dir+\"/destinations.\"+readExtention);\n List<Point2D> destination = new ArrayList<>();\n List<List<Double>> distances = new ArrayList<>();\n for(String[] strings : destinations)\n destination.add(new Point2D(Double.parseDouble(strings[0]),Double.parseDouble(strings[1])));\n\n for(int i = 0; i < runNum; i++) {\n List<String[]> receiverContent = parseFileByName(dir+\"/receivers_placement_\"+i+\".\"+readExtention);\n List<Point2D> receiverValues = new ArrayList<>();\n for(String[] strings : receiverContent)\n receiverValues.add(new Point2D(Double.parseDouble(strings[1]),Double.parseDouble(strings[2])));\n List<Double> distanceFromDestination = new ArrayList<>();\n for(Point2D receiverPosition : receiverValues)\n distanceFromDestination.add(receiverPosition.distance(destination.get(i)));\n distances.add(distanceFromDestination);\n }\n\n try {\n PrintWriter resWriter = new PrintWriter(dir+\"/A_results/distances\"+\".\"+writeExtention, \"UTF-8\");\n for(int i = 0;i < distances.get(0).size(); i++){\n String s = \"\";\n for(List<Double> distanceFromDestination : distances)\n s = s + distanceFromDestination.get(i) + \",\";\n int n = i+1;\n\n int nLastChar = numberOfTests%26;\n\n char lastChar = 'A';\n\n lastChar+=nLastChar-1;\n int nFirstChar = 0;\n if(numberOfTests>26){\n nFirstChar= numberOfTests/26;\n }\n\n String avg;\n String var;\n\n if(nFirstChar==0){\n avg = \"=AVERAGE(A\"+n+(\":\"+lastChar)+n+\"),\";\n var = \"=VAR(A\"+n+(\":\"+lastChar)+n+\")\";\n }\n else {\n char firstChar = 'A';\n firstChar += nFirstChar;\n avg = \"=AVERAGE(A\"+n+(\":\"+firstChar+\"\"+lastChar)+n+\"),\";\n var = \"=VAR(A\"+n+(\":A\"+firstChar+\"\"+lastChar)+n+\")\";\n }\n\n s += avg + var;\n resWriter.println(s);\n resWriter.flush();\n\n }\n\n resWriter.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }", "private double average(LinkedList<Double> lastSums2) {\n\t\tOptionalDouble average = lastSums2.stream().mapToDouble(a -> a).average();\n\t\treturn average.getAsDouble();\n\t}", "public double getAverage(){\n return getTotal()/array.length;\n }", "public void computeAverageOfRepeats() {\n\t\t\n\t\texperimentsAvg_ = new ArrayList<Experiment>();\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\texperimentsAvg_.add(experiments_.get(i).computeAverageOfRepeats());\n\t}", "public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 m max\n double sumOfAngels = 0;\n // ArrayList<Double> angels=new ArrayList<Double>();\n ArrayList<Double> differences = new ArrayList<Double>();\n\n ArrayList<Double> distances = new ArrayList<Double>();\n\n IDirectPosition p1 = lsInitiale.coord().get(0);\n IDirectPosition p2 = lsInitiale.coord().get(1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double angel = Math.atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n angel = (angel + Math.PI) * 180 / Math.PI;\n\n // angels.add(angel);\n\n for (int i = 1; i < lsInitiale.coord().size() - 1; i++) {\n\n p1 = lsInitiale.coord().get(i);\n p2 = lsInitiale.coord().get(i + 1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double newAngel = Math\n .atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n // give the value that varie from 0 to 360-epsilon\n newAngel = (newAngel + Math.PI) * 180 / Math.PI;\n\n // angels.add(newAngel);\n\n while (sumOfDistances > length && differences.size() > 0) {\n sumOfDistances -= distances.get(0);\n\n sumOfAngels -= differences.get(0);\n\n distances.remove(0);\n // System.out.println(\"olddiff=\" + differences.get(0));\n differences.remove(0);\n\n }\n\n double diff = newAngel - angel;\n\n if (diff > 180)\n diff = -360 + diff;// for the case of angel=10 and newAngel=350;\n else if (diff < -180)\n diff = 360 + diff;\n\n differences.add(diff);\n sumOfAngels += diff;\n angel = newAngel;\n // System.out.println(\"sumOfAngels=\" + sumOfAngels);\n // System.out.println(\"angel=\" + newAngel);\n // System.out.println(\"diff=\" + diff);\n\n /*\n * for(int k=0;k<angels.size();k++){ double diff2=newAngel-angels.get(k));\n * if(diff2>180)diff2=360-diff2;// for the case of angel=10 and\n * newAngel=350; else if(diff2<-180)diff2=-360-diff2;\n * if(Math.abs(newAngel->200) {\n * \n * }\n * \n * \n * }\n */\n\n if (Math.abs(sumOfAngels) > 100) {\n\n double maxOfDiff = 0;\n int indexOfMaxOfDiff = -1;\n for (int k = 0; k < differences.size(); k++) {\n if (differences.get(k) > maxOfDiff) {\n maxOfDiff = differences.get(k);\n indexOfMaxOfDiff = k;\n\n }\n\n }\n double maxDistance = -1;\n int maxDistancePointIndex = -1;\n // if(i+differences.size()-indexOfMaxOfDiff-1>=jddPtsInflexion.size())\n for (int jj = 0; jj < differences.size(); jj++) {\n // jddPtsInflexion.add(lsInitiale.coord().get(i+differences.size()-indexOfMaxOfDiff-2));\n if (i + jj - indexOfMaxOfDiff >= 0\n && i + jj - indexOfMaxOfDiff < lsInitiale.coord().size()) {\n int currIndex = i + jj - indexOfMaxOfDiff;\n double distance = lsInitiale.coord().get(currIndex).distance2D(\n lsLisse.coord().get(currIndex));\n if (distance > maxDistance) {\n maxDistance = distance;\n maxDistancePointIndex = currIndex;\n }\n\n }\n\n }\n\n if (maxDistancePointIndex >= 0)\n this.jddPtsInflexion.add(lsInitiale.coord()\n .get(maxDistancePointIndex));\n\n differences.clear();\n sumOfDistances = distances.get(distances.size() - 1);\n distances.clear();\n sumOfAngels = 0;\n i++;\n\n }\n\n }\n\n }", "private void generateMap () {\n for (int i = 0 ; i < n ; i++) {\n mapCoordinate[i] = new CoordinateInfo(100 * random.nextFloat(), 100 * random.nextFloat());\n\n for (int j = 0 ; j <= i ; j++) {\n mapDistance[i][j] = mapDistance[j][i] = getDistance(mapCoordinate[i], mapCoordinate[j]);\n }\n }\n }", "private static int[] getDistributedArray(int n, int times, Random r) {\n int avg = n / 2;\n int v;\n if (n <= 50) {\n v = n;\n } else if (n <= 100) {\n v = (int) (n * 1.5);\n } else if (n <= 200) {\n v = n * 2;\n } else {\n v = n * 3;\n }\n int count = n * times;\n int[] a = new int[count];\n for (int i = 0; i < count; ) {\n int x = (int) (Math.sqrt(v) * r.nextGaussian() + avg);\n if (x >= 0 && x < n) {\n a[i++] = x;\n }\n }\n return a;\n }", "public void sumAte()\r\n {\r\n meanArk = 0;\r\n varArk = 0;\r\n double sumA = 0;\r\n double sumA2 = 0;\r\n float nArk = 0;\r\n for (SignatureSample s:keys) {\r\n nArk++;\r\n sumA += s.arklen;\r\n sumA2 += s.arklen * s.arklen;\r\n }\r\n meanArk = sumA / nArk;\r\n varArk = Math.sqrt((sumA2/nArk) - (meanArk*meanArk));\r\n }", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "public double getAverage(){\r\n\t\tdouble sum=0;\r\n\t\tfor(Iterator<T> it=this.iterator();it.hasNext();){\r\n\t\t\tsum+=it.next().doubleValue();\r\n\t\t}\r\n\t\treturn sum/this.size();\r\n\t}", "public int getTotalDistance() {\n return totalDistance;\n }", "private void initDistancesWithPDScore(final String[][] fastaInfo, final int windowSize) {\n\t\tdistanceName = \"PD\" + (windowSize == 0 ? \"\" : \" \" + windowSize + \"-window\");\n\t\t\n\t\t//Compute in parallel\n\t int threads = Runtime.getRuntime().availableProcessors();\n\t ExecutorService service = Executors.newFixedThreadPool(threads);\n\n\t\tfinal long[] lastDraw = new long[] {0};\n\t\tfinal int totalDistances = nodes.length * (nodes.length - 1) / 2;\n\t\tfinal int[] distancesComplete = new int[] {0};\n\t\t\n\t for (int _i = 0; _i < nodes.length; _i++) {\n\t \tfinal Integer i = _i;\n\t Runnable callable = new Runnable() {\n\t public void run() {\n\t \tint k = i;\n\n\t \t\t\tfloat[] dist = new float[nodes.length];\n\t \t\t\tfor (int p = 0; p < nodes.length; p++) {\n\t \t\t\t\tif ((System.nanoTime()-lastDraw[0])>.5e9f) {\n\t \t\t\t\t\tlastDraw[0] = System.nanoTime();\n\t \t\t\t\t\tif (headless) {\n\t \t\t\t\t\t\tSystem.err.println(\"Calculating PDscores: \"+nf((distancesComplete[0]/(float)totalDistances)*100, 0, 2)+\"%\");\n\t\t \t\t\t\t} else {\n\t\t \t\t\t\t\tg.beginDraw();\n\t\t \t\t\t\t\tbackground(0);\n\t\t \t\t\t\t\tfill(255);\n\t\t \t\t\t\t\ttextFont(txt);\n\t\t \t\t\t\t\ttextAlign(LEFT, TOP);\n\t\t \t\t\t\t\ttextSize(txtFontSizeMedium * UIScaling);\n\t\t \t\t\t\t\ttext(\"Calculating PDscores: \"+nf((distancesComplete[0]/(float)totalDistances)*100, 0, 2)+\"%\", 5, 5);\n\t\t \t\t\t\t\tg.endDraw();\n\t\t \t\t\t\t\trepaint();\n\t \t\t\t\t\t}\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\tif (p==k) continue;\n\t \t\t\t\tif (p < k) {\n\t \t\t\t\t\t//Symmetry:\n\t \t\t\t\t\tcontinue;\n\t \t\t\t\t}\n\t \t\t\t\tdistancesComplete[0]++;\n\t \t\t\t\tif (windowSize == 0) {\n\t \t\t\t\t\tif (fastaInfo[1][p].length() != fastaInfo[1][k].length()) {\n\t \t\t\t\t\t\tSystem.err.println(\"WARNING: PDscore computation assumed aligned inputs, but \" + fastaInfo[0][p] +\", \" +fastaInfo[0][k] +\" have different lengths.\");\n\t \t\t\t\t\t\n\t \t\t\t\t\t}\n\t \t\t\t\t\tdist[p]=(float)PDScore.PDScore(fastaInfo[1][p], fastaInfo[1][k]);\n\t \t\t\t\t} else {\n\t \t\t\t\t\tif (fastaInfo[1][k].contains(\"-\")) {\n\t \t\t\t\t\t\tSystem.err.println(\"Warning: Sequence \" + fastaInfo[0][k] + \" contains dashes, windows PDscore is best used on raw sequence (no dashes)\");\n\t \t\t\t\t\t}\n\t \t\t\t\t\tdist[p]=(float)PDScore.PDScoreWindowed(fastaInfo[1][p], fastaInfo[1][k], windowSize);\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tnodes[k].distances = dist;\n\t }\n\t };\n\t service.execute(callable);\n\t }\n\n\t service.shutdown();\n\t try {\n\t \tservice.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);\n\t } catch (InterruptedException e) {\n\t \tSystem.exit(1);\n\t }\n\t //Handle symmetry:\n\t for(int k = 0; k < nodes.length; k++) {\n\t \tfor(int p = 0; p < k; p++) {\n\t \t\tnodes[k].distances[p] = nodes[p].distances[k];\n\t \t}\n\t }\n\t}", "public void generateAverageDistanceTraveledPerQuestion(String csvName, String trajFileName, String fileName, double ignoreBefore) {\n Scanner csv = null;\n try {\n csv = new Scanner(new File(csvName)); //csv of answer list\n FileWriter writer = new FileWriter(fileName + \".csv\");\n HashMap<String, ArrayList<AnswerTrajectory>> csvTraj = new HashMap<String, ArrayList<AnswerTrajectory>>(); //hash map that keys on trajectory id, storing all answer list trajectories in an array list\n HashMap<String, ArrayList<Trajectory>> trajectories = readTrajectories(trajFileName); //load the trajectory data into a hash map keyed by ID\n csv.nextLine();\n String currentId = \"\";\n ArrayList<AnswerTrajectory> anstj = new ArrayList<AnswerTrajectory>();\n ArrayList<String> Ids = new ArrayList<String>();\n\n while (csv.hasNextLine()) { //go through each answer entry and add trajectories of the answer list for each unique device id\n String[] line = csv.nextLine().split(\",\");\n if (currentId.equals(\"\")) {\n currentId = line[12];\n } else if (!currentId.equals(line[12])) {\n csvTraj.put(currentId, anstj);\n Ids.add(currentId); //if the id is new, then add it to the list of all known ids\n anstj = new ArrayList<AnswerTrajectory>();\n currentId = line[12];\n }\n anstj.add(new AnswerTrajectory(Double.parseDouble(line[13]), Double.parseDouble(line[14]), line[12], Double.parseDouble(line[9]), Integer.parseInt(line[0]), Integer.parseInt(line[16])));\n }\n double[] totalDists = new double[20]; //keeping track of the distances\n int[] totalAnswers = new int[20]; //keeping track of the total number of times a question was answered\n ArrayList<Trajectory> alltj = new ArrayList<Trajectory>();\n for (String s : Ids) //for each device ID determine the corresponding answer list\n {\n //System.out.println(s);\n anstj = csvTraj.get(s); //get the hashmap arraylist that holds the answer list for this device\n alltj = trajectories.get(s); //get all the trajectories under this Id\n\n if (anstj == null || alltj == null)\n System.out.println(\"Could not find trajectory data for deviceId: \" + s);\n\n else {\n Collections.sort(anstj, AnswerTrajectory.TSComparator); //sort answer list by by time\n Collections.sort(alltj, Trajectory.TSComparator); //sort trajectory data by time\n\n int questionIndex = 0;\n double currentQuestionTimeStamp = anstj.get(questionIndex).getTimeStamp(); //after trajectory data points breach this time, update the current question\n\n for (int i = 0; i < alltj.size() - 1; i++) { //pull two trajectory points at a time\n Trajectory t1 = alltj.get(i);\n Trajectory t2 = alltj.get(i + 1);\n double timeStamp = t1.getTimeStamp() * 1000.0; //determine the time of each trajectory (trajectory data time stamps are in seconds, but the answer list data is in milliseconds)\n if (timeStamp < ignoreBefore) //do not account for trajectories that are before a certain time (event start)\n {\n\n } else {\n double timeStamp2 = t2.getTimeStamp() * 1000.0;\n if (timeStamp2 > currentQuestionTimeStamp && questionIndex == anstj.size() - 1) { //if the second trajectory is beyond the last question, stop\n totalAnswers[questionIndex]++;\n i = alltj.size();\n } else {\n if (timeStamp2 > currentQuestionTimeStamp) { //if the second trajectory is beyond the question, use the answer list trajectory instead\n\n double t1x, t1y, t2x, t2y;\n t1x = t1.getX();\n t1y = t1.getY();\n t2x = anstj.get(questionIndex).getX();\n t2y = anstj.get(questionIndex).getY();\n double dist = Math.sqrt((t1x - t2x) * (t1x - t2x) + (t1y - t2y) * (t1y - t2y));\n totalDists[questionIndex] += dist;\n totalAnswers[questionIndex]++;\n questionIndex++;\n currentQuestionTimeStamp = anstj.get(questionIndex).getTimeStamp(); //update the current question\n } else { //use the two trajectories to determine the distance\n double t1x, t1y, t2x, t2y;\n t1x = t1.getX();\n t1y = t1.getY();\n t2x = t2.getX();\n t2y = t2.getY();\n double dist = Math.sqrt((t1x - t2x) * (t1x - t2x) + (t1y - t2y) * (t1y - t2y));\n totalDists[questionIndex] += dist;\n }\n }\n }\n }\n }\n }\n writer.append(\"Question,AverageDistance\\n\");\n for (int i = 0; i < totalDists.length; i++) {\n writer.append((i + 1) + \",\" + (totalDists[i] / ((double) totalAnswers[i])) + \"\\n\"); //write to the .csv file\n }\n writer.flush();\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (csv != null)\n csv.close();\n }\n }", "private void baseAlgorithm() {\n\t\tlong start = System.nanoTime();\n\t\tinitCentroids();\n\t\tint counter = 0;\n\t\twhile (counter < 1000\n\t\t\t\t&& (lastCentroids == null || !SeriesComparator.equalClustering(lastCentroids, centroids))) {\n\t\t\tresetClusters();\n\t\t\tassignPoints();\n\t\t\tlastCentroids = new ArrayList<Point2D>(centroids);\n\t\t\tcalculateNewMean();\n\t\t\tbasicIterations++;\n\t\t\tcounter++;\n\t\t}\n\t\tconvertToClustering();\n\t\tbasicRuntime = System.nanoTime() - start;\n\t}", "public int getTotDistance(){\r\n\t \treturn this.totDistance;\r\n\t }", "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public Dimension getAverageLocation() {\n\tint nodes = nodeCount() - lockedNodes;\n\tDimension result = new Dimension();\n\tresult.setSize(averageX / nodes, averageY / nodes);\n\n\treturn result;\n }", "private void set_distance() {\n int[] k = new int[getQueue().length];\n distance = 0.0;\n for (int i = 1; i < getQueue().length; i++) {\n distance += getPoints().get(way[i]).distance(getPoints().get(way[i - 1]));\n }\n distance += getPoints().get(getQueue()[getPoints().size() - 1]).distance(getPoints().get(0));\n enterd = true;\n }", "@Override\n\tpublic void postProcessDistances(double[] distances) {\n\t\t\n\t}", "private void process() {\n\tint i = 0;\n\tIOUtils.log(\"In process\");\n\tfor (Map.Entry<Integer, double[]> entry : vecSpaceMap.entrySet()) {\n\t i++;\n\t if (i % 1000 == 0)\n\t\tIOUtils.log(this.getName() + \" : \" + i + \" : \" + entry.getKey()\n\t\t\t+ \" : \" + this.getId());\n\t double[] cent = null;\n\t double sim = 0;\n\t for (double[] c : clusters.keySet()) {\n\t\t// IOUtils.log(\"before\" + c);\n\t\tdouble csim = cosSim(entry.getValue(), c);\n\t\tif (csim > sim) {\n\t\t sim = csim;\n\t\t cent = c;\n\t\t}\n\t }\n\t if (cent != null && entry.getKey() != null) {\n\t\ttry {\n\t\t clusters.get(cent).add(entry.getKey());\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t }\n\t}\n }", "public double getAverageChainLength(){\r\n if (totalInsertionsLookups < 1){\r\n return 0;\r\n }\r\n return (double) totalChainLengths / (double) totalInsertionsLookups;\r\n }", "private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }", "public static long calculateTotalDistance(ObservableArrayList<LatLng> points) {\n double result = 0;\n\n for (int i = 1; i < points.size(); i++) {\n result += distance(points.get(i), points.get(i - 1), 'K');\n }\n\n return (long) (result * 1000);\n }", "private void calculateNDCG(List<ScoreRetrieval> results,List<QuerieDocRelevance> querieRelevance){\n List<Double> ndcgResultsQuery = new ArrayList<>();\n List<Double> realdcgResults = new ArrayList<>();\n List<Double> idealDcgResults = new ArrayList<>();\n ScoreRetrieval resultT = results.get(0);\n Optional<QuerieDocRelevance> docMatch = querieRelevance.stream().filter(q -> resultT.getDocId()==q.getDocID()).findFirst();\n QuerieDocRelevance doc = docMatch.orElse(null); \n \n \n Collections.sort(querieRelevance);\n \n idealDcgResults.add((double) querieRelevance.get(0).getRelevance());\n \n if (doc != null) {\n realdcgResults.add((double)doc.getRelevance());\n } else {\n realdcgResults.add(0.0);\n }\n \n if(!(realdcgResults.isEmpty()) && !(idealDcgResults.isEmpty())){\n ndcgResultsQuery.add(realdcgResults.get(0)/idealDcgResults.get(0));\n }\n \n \n for(int i = 1;i<results.size() && i<querieRelevance.size();i++){\n ScoreRetrieval result = results.get(i);\n docMatch = querieRelevance.stream().filter(q -> result.getDocId()==q.getDocID()).findFirst();\n doc = docMatch.orElse(null);\n \n if(doc != null){\n realdcgResults.add(realdcgResults.get(i-1)+(double)doc.getRelevance()/(Math.log(i+1)/Math.log(2)));\n }else{\n realdcgResults.add(realdcgResults.get(i-1));\n }\n \n\n idealDcgResults.add(idealDcgResults.get(i-1)+(double) querieRelevance.get(i).getRelevance()/(Math.log(i+1)/Math.log(2)));\n\n \n ndcgResultsQuery.add(realdcgResults.get(i)/idealDcgResults.get(i));\n \n } \n \n \n ndcgResults.add(ndcgResultsQuery);\n \n }", "public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);", "public List<Integer> getIterations() {\n int totalit = 0;\n int largestit = 0;\n int averageit = 0;\n for (Integer i : recGraphs) {\n totalit += i;\n averageit += i / recGraphs.size();\n if (i > largestit) {\n largestit = i;\n }\n }\n List<Integer> list = new ArrayList<>();\n list.add(totalit);\n list.add(largestit);\n list.add(averageit);\n return list;\n }", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "public static Map<Cell, Map<Cell, Number>> getDistances() {\n\t\treturn distances;\n\t}", "private void copyDistances(int i, double[] dist) {\n IntStream.range(0, dist.length).forEach(k -> dist[k] = this.distanceList.get(k)[i]);\n }", "public static void calculateAverage(double[] inputArray, int limit)\r\n\t{\r\n\t\tIMovingAverage<Double> movingAvg = new MovingAverageImpl<Double>(limit);\r\n\t\tfor(double element : inputArray)\r\n\t\t{\r\n\t\t\tmovingAvg.add(element);\r\n\t\t\tSystem.out.println(\"Moving average is = \" +movingAvg.getAverage());\r\n\t\t}\r\n\t\tSystem.out.println(\"*********************************************************\");\r\n\t}", "int sizeOfDecisionSightDistanceArray();", "private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}", "private int[] getAveragePace(){\n timeElapsed = SystemClock.elapsedRealtime() - timer.getBase();\n int seconds = (int)timeElapsed / 1000;\n\n double totalKilometer = totalDistanceMeters / 1000;\n double secondPerKilometer = seconds / totalKilometer;\n int minute = (int)(Math.floor(secondPerKilometer/60));\n int second = (int)secondPerKilometer % 60;\n\n return new int[] {minute,second};\n }", "public static double getAverage(int start, double[] d) {\n double average = 0;\n for (int i = 0; i < 110; i++) {\n average = average + d[i];\n }\n return average / 110;\n }" ]
[ "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.54709035", "0.5454838", "0.5448565", "0.543036", "0.54235214", "0.54172987", "0.5394279", "0.53775716", "0.5373641", "0.5372138", "0.5366793", "0.5365895", "0.5363841", "0.5355694", "0.53454953", "0.53395784", "0.5334917", "0.53165454", "0.5268572", "0.52326226", "0.52010876", "0.5182648", "0.5180774", "0.51787436", "0.51759905", "0.5166273", "0.51632255", "0.5158226", "0.51571965", "0.5156138", "0.51429206", "0.51399314", "0.5127745", "0.5117899", "0.51145273", "0.5111206", "0.51100004", "0.5105315", "0.5103643", "0.5099485", "0.5095079", "0.50946873", "0.50915045", "0.5091086", "0.5087028", "0.50836986", "0.5082542", "0.5078111", "0.5077791", "0.506606", "0.5065248", "0.50539654", "0.5050601", "0.50435823", "0.50419974", "0.5041435", "0.50342077", "0.5023795", "0.5020034", "0.5011276", "0.50088924", "0.5002391", "0.49988228", "0.49983108", "0.49954665", "0.49948972", "0.49919432", "0.49916112", "0.49702182", "0.49655375", "0.49652985", "0.49652964", "0.4957783", "0.4954775", "0.49497905", "0.49446824", "0.49416947", "0.49411833", "0.49410433", "0.49372628" ]
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) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "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.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
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\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "private void cancel() {\n\t\tfinish();\n\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "public boolean cancel();", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onCancelButtonClick() {\n close();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "public void onDialogCancelled(DialogActivity dialog)\n {\n cancel();\n }", "void onCancelClicked();", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "public void onClick(DialogInterface dialog, int arg1) {\n dialog.cancel();\n }", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "public void cancel()\n\t{\n\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "public void cancel(){\n cancelled = true;\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onCancel();", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\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.7785849", "0.7781991", "0.7781991", "0.7781991", "0.7775402", "0.7774749", "0.7774749", "0.77683115", "0.77681756", "0.77668333", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7759365", "0.7731582", "0.7724297", "0.7720925", "0.7720103", "0.76955104", "0.7678485", "0.7654357", "0.7654357", "0.764555", "0.76443124", "0.7634409", "0.7633464", "0.7621916", "0.7621163", "0.7603697", "0.7603203", "0.7600248", "0.7598492", "0.7591874", "0.7591874", "0.7591339", "0.7590508", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7588744", "0.75886345", "0.7560806", "0.7550736", "0.7540379", "0.7539729", "0.7539729", "0.7534361", "0.7531358", "0.75296545", "0.7524118", "0.7523424", "0.75232726", "0.752038", "0.75199866", "0.7512266", "0.75083005", "0.7500499", "0.7497863", "0.7495073", "0.7493796", "0.7492944", "0.74797153", "0.74698204", "0.7465173", "0.74630636", "0.7460028", "0.7460028", "0.7458466", "0.7455514", "0.74514836", "0.7442903", "0.74414104", "0.7436282", "0.7436282", "0.74358857", "0.74198526" ]
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 }", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "private void readFromXMLFile(XMLStreamReader reader) throws XMLStreamException {\n while (reader.hasNext())\n {\n int eventType= reader.next();\n switch (eventType){\n case XMLStreamReader.START_ELEMENT:\n String elemName=reader.getLocalName();\n if (elemName.equals(\"student\"))\n {\n try {\n super.save(readStudent(reader));\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "@Test\n public void testRead_Reader() {\n //System.out.println(\"read\");\n Reader source = new StringReader(testXMLDoc);\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.read(source);\n //System.out.println(\"XML read OK\");\n source = new StringReader(testTurtleDoc);\n instance.read(source);\n //System.out.println(\"Turtle read OK\");\n }", "@Test(expected = XmlException.class)\n\tpublic void testReadFileXxml() throws XmlException {\n\t\tString[][] cities = rcx.readFileXml(\"ConfigurazionePartita.xml\");\n\t\tassertEquals(cities.length, 15);\n\n\t\tfor (int i = 0; i < cities.length; i++) {// controllo che l'array sia\n\t\t\t\t\t\t\t\t\t\t\t\t\t// pieno\n\t\t\tassertNotEquals(cities[i][0], \"\");\n\t\t\tassertNotEquals(cities[i][1], \"\");\n\t\t\tassertNotEquals(cities[i][2], \"\");\n\t\t\tassertNotEquals(cities[i][3], \"\");\n\t\t\tassertNotEquals(cities[i][5], \"\");\n\t\t}\n\t\tassertNotEquals(rcx.readFileXml(\"ConfigurazionePartitas.xml\").length, 15);// file\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// inesistente\n\t}", "public void readXML(Reader inReader)\n\t{\n\t\tXmlUtil util = new XmlUtil();\n\t\tElement root = util.getXml(inReader, \"UTF-8\");\n\t\tpopulate(root);\n\t}", "private void parse() throws XMLStreamException {\n while (reader.hasNext()) {\n if (reader.next() == START_ELEMENT) {\n handleElement();\n }\n }\n }", "private static void staxReader(File file) throws XMLStreamException, FileNotFoundException, FactoryConfigurationError, IOException {\n\n FileInputStream fis = new FileInputStream(file);\n Page[] ns0pages = StaxPageParser.pagesFromFile(fis);\n\n// reporter(ns0pages);\n }", "public interface IXMLDataProvider {\r\n \r\n /**\r\n * Returns the root node of the XML file.\r\n * @return\tthe root node of the XML file\r\n * @throws TestDataException\tthrown, when parsing errors occur\r\n */\r\n public Node getRootNode() throws Exception;\r\n \r\n /**\r\n * Returns the number of XML data nodes matching the given node name\r\n * @param parent the parent node where to look for child nodes with the specified name\r\n * @param nodeName\tthe node name\r\n * @return\tthe number of nodes in the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public int countNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns an array containing all nodes matching thi given node name\r\n * @param parent\tthe parent node where to look for nodes with the specified node name\r\n * @param nodeName\tthe name of the node\r\n * @return\tan array containing all node names, if there are no nodes matching the geven name, NULL is returned\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public Node [] getNodesByName(Node parent, String nodeName) throws Exception;\r\n \r\n /**\r\n * Returns the node value of a given node.\r\n * @param node\tthe requested node\r\n * @return\ta string representing the node value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getNodeValue(Node node) throws Exception;\r\n \r\n \r\n /**\r\n * Returns the attribute value of a given attribute name within the provided node.\r\n * @param node\tthe node where to look for the attribute\r\n * @param attributeName\tthe name of the attribute to look for\r\n * @return\ta string representing the attribute value\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public String getAttributeValue(Node node, String attributeName) throws Exception;\r\n \r\n public int getNumAttributes(Node node) throws Exception ;\r\n \r\n /**\r\n * Parses an XML file specified by the given file name.\r\n * @param fileName\tthe file name of the XML file\r\n * @throws TestDataException\tusually thrown when parsing errors occur\r\n */\r\n public void parse(String fileName) throws Exception;\r\n}", "@Test\n public void testFromXMLFile() {\n }", "public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }", "void read(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException;", "private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }", "@Test\n\tpublic void testRead(){\n\t\ttry{\n\t\t\tXMLReader reader = new XMLReader(\"testWrite.xml\");\n\t\t\tassert (reader.readObject() instanceof GameWorld);\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\tfail(\"XMLReader, testWrite.xml not found\");\n\t\t}\n\t}", "public void testCreateFile() throws Exception {\n File input = new File(\"src/test/resources/reader/filesample.xml\");\n final URL testdata = input.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of files\", 2, creator.filesCreated.size());\n MockContentCreator.FileDescription file = creator.filesCreated.get(0);\n try {\n file.data.available();\n TestCase.fail(\"Did not close inputstream\");\n } catch (IOException ignore) {\n // Expected\n }\n assertEquals(\"mimeType mismatch\", \"application/test\", file.mimeType);\n assertEquals(\"lastModified mismatch\", XmlReader.FileDescription.DATE_FORMAT.parse(\"1977-06-01T07:00:00+0100\"), new Date(file.lastModified));\n assertEquals(\"Could not read file\", \"This is a test file.\", file.content);\n\n }", "public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }", "public void readXMLFile(File file) {\n\t\treadXMLFile(file, -1, 0);\n\t}", "public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}", "@Test\n public void testTaxpayerInfoFromXml() throws FileNotFoundException {\n\n Database.processTaxpayersDataFromFilesIntoDatabase(databaseInstance.getTaxpayersInfoFilesPath(), xmlTestFilenameList);\n\n // Get the taxpayer from the Database\n Taxpayer actualTaxpayerInfoXml = databaseInstance.getTaxpayerFromArrayList(0);\n\n // Test user info from xml file\n Taxpayer expectedTaxpayerInfoFromXml = new Taxpayer(\"Nikos Zisis\", \"130456094\",\n ApplicationConstants.SINGLE, \"40000.0\");\n\n Receipt expectedTaxpayerReceiptFromXml =\n new Receipt(ApplicationConstants.OTHER_RECEIPT, \"1\", \"25/2/2014\", \"2000.0\",\n \"Omega Watches\", \"Greece\", \"Ioannina\", \"Kaloudi\", \"4\");\n\n expectedTaxpayerInfoFromXml.setReceipts( new ArrayList<>( Collections.singletonList(expectedTaxpayerReceiptFromXml)));\n expectedTaxpayerInfoFromXml.calculateTaxpayerTaxIncreaseOrDecreaseBasedOnReceipts();\n\n assertEquals(expectedTaxpayerReceiptFromXml.toString(), actualTaxpayerInfoXml.getReceipts().get(0).toString());\n assertEquals(expectedTaxpayerInfoFromXml.toString(), actualTaxpayerInfoXml.toString());\n }", "public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }", "public void testRead() throws Exception\n {//��װ����\n InputStream inputStream=getInstrumentation().getTargetContext().getAssets().open(\"new_file.xml\");\n\n\n Log.v(\"abcd\", \"\"+inputStream);\n List<Person> personsList = ReadXmlByPullService.ReadXmlByPull(inputStream);\n Log.v(\"abcd\", personsList.get(0).getName());\n\n for (Iterator iterator = personsList.iterator(); iterator.hasNext();) {\n Person person = (Person) iterator.next();\n Log.v(PERSONSTRING, person.toString());\n }\n\n }", "XMLDocument load(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;", "private static Document initializeXML(String filePath) throws Exception {\n\t\ttry {\n\t\t\tlogger.info(\"Initializing the xml file :\" + filePath);\n\t\t\txmlDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new File(filePath));\n\t\t\txmlDocument.getDocumentElement().normalize();\n\t\t\treturn xmlDocument;\n\t\t} catch (Exception e) {\n\n\t\t\tlogger.error(\"Error while reading from XML. File Path : \" + filePath + \" \\n\" + e.getMessage());\n\t\t\tthrow (new Exception(e.getMessage()));\n\n\t\t}\n\t}", "public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "private NodeList getNodeListFromFile(String xmlFileName) throws ParserConfigurationException, SAXException, IOException {\r\n\t\ttry{\r\n\t\t\t//sample XMLParser code, nothing to change\r\n\t\t\tFile fXmlFile = new File(xmlFileName);\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\r\n\t\t\tdoc.getDocumentElement().normalize();\r\n\t\t\treturn doc.getElementsByTagName(\"element\");\r\n\t\t} catch ( Throwable throwable ) {\r\n\t\t System.out.println(throwable.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Test\n public void testCanReadXml() throws Exception {\n final String xml = new TestJenkins().jobs().iterator().next().builds()\n .iterator().next().xml();\n MatcherAssert.assertThat(\n xml.startsWith(\"<build>\"), new IsEqual<>(true)\n );\n MatcherAssert.assertThat(\n xml.contains(\"<displayName>#1</displayName>\"),\n new IsEqual<>(true)\n );\n MatcherAssert.assertThat(\n xml.endsWith(\"</build>\"), new IsEqual<>(true)\n );\n }", "public static Node readXML(String filename)\r\n\t{\r\n\t\t\r\n\t\tDocument doc=null;\r\n\t\t\r\n\t\tDocumentBuilder db = null;\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\r\n\t try {\r\n\t \tdbf.setIgnoringElementContentWhitespace(true);\r\n\t db = dbf.newDocumentBuilder();\r\n\t \tdoc = db.parse(new File(filename));\r\n\r\n\t\t\t//******* ALBERO DOM *********/\r\n\t\t\t\r\n\t\t\t// Elemento corrispondente al DOCTYPE\r\n\t\t Node child = doc.getFirstChild();\r\n\t\t // Elemento corrispondente al primo elemento del documento\r\n\t\t child = child.getNextSibling();\r\n\t\t \r\n\t\t return child;\r\n\t }\t\r\n\t\tcatch (IOException se){\r\n\t\t\tSystem.err.println(\"Il file \" + filename + \" non e' stato trovato\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcatch (SAXException se){\r\n\t\t\tSystem.err.println(\"Non � possibile fare il parser\");\r\n\t\t\treturn null;\r\n\t\t}\t\r\n\t\tcatch (ParserConfigurationException pce){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public XMLReader()\r\n {\r\n \r\n String filePathHead = \"\";\r\n\r\n Path inputPath = Paths.get(\"src\\\\dataFiles\");\r\n\r\n try\r\n {\r\n filePathHead = inputPath.toRealPath().toString();\r\n System.out.println(\"PATH: \" + inputPath.toRealPath().toString());\r\n }\r\n catch (NoSuchFileException x)\r\n {\r\n System.err.format(\"%s: no such\" + \" file or directory%n\", filePathHead);\r\n // Logic for case when file doesn't exist.\r\n }\r\n catch (IOException x)\r\n {\r\n System.err.format(\"%s%n\", x);\r\n // Logic for other sort of file error.\r\n }\r\n }", "public void readResult() {\n File dirXml = new File(System.getProperty(\"user.dir\") + \"/target/classes/\");\n /// Get Parent Directory\n String parentDirectory = dirXml.getParent();\n File folder = new File(parentDirectory + \"/jbehave\");\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles != null) {\n for (File listOfFile : listOfFiles) {\n if (listOfFile.isFile()) {\n String filePath = folder.getPath() + \"/\" + listOfFile.getName();\n System.out.println(\"File \" + filePath);\n if (filePath.contains(\".xml\") && !filePath.contains(\"AfterStories\") && !filePath.contains(\n \"BeforeStories\")) {\n readXML(filePath);\n }\n }\n }\n }\n }", "public static void parseXML(String filename) {\n SAXBuilder builder = new SAXBuilder();\n \n //reading XML document\n Document xml = null;\n try {\n xml = builder.build(new File(filename));\n } catch (JDOMException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n //getting root element from XML document\n Element root = xml.getRootElement();\n if (root != null)\n {\n\t Element queryNode = root.getChild(\"query\");\n\t if (queryNode != null)\n\t {\n\t\t Element rcNode = queryNode.getChild(\"recentchanges\");\n\t\t \n\t\t List<Element> rcList = rcNode.getChildren();\n\t\t \n\t\t \n\t\t \n\t\t //Iterating over all childs in XML\n\t\t Iterator<Element> itr = rcList.iterator();\n\t\t while(itr.hasNext()){\n\t\t \tElement rc = itr.next();\n\t\t \tString user = rc.getAttributeValue(\"user\");\n\t\t \tString userId = rc.getAttributeValue(\"userid\");\n\t\t \tString pageId = rc.getAttributeValue(\"pageid\");\n\t\t \tString title = rc.getAttributeValue(\"title\");\n\t\t \tString timestamp = rc.getAttributeValue(\"timestamp\");\n\t\t \tString comments = rc.getAttributeValue(\"comment\");\n\t\t \tString type = rc.getAttributeValue(\"type\");\n\t\t \tString oldRevId = rc.getAttributeValue(\"old_revid\");\n\t\t \tString newRevId = rc.getAttributeValue(\"revid\");\n\t\t \tString recentChangeId = rc.getAttributeValue(\"rcid\");\n\t\t \t\n\t\t// \t //reading attribute from Element using JDOM\n\t\t// System.out.println(\"User: \" + user + \" | User_ID: \" + userId + \" | Page_ID: \" + pageId + \n\t\t// \t\t\" | Title: \" + title + \" | Timestamp: \" + timestamp + \" | Recent_Change_ID: \" + recentChangeId + \" | Old_Rev_ID: \" + oldRevId + \n\t\t// \t\t\" | New_Rev_ID: \" + newRevId + \" | Type: \" + type); \n\t\t \t\n\t\t \ttry {\n\t\t\t\t\t\tcluster.writeWikiResults(user, userId, timestamp, pageId, title, recentChangeId, oldRevId, newRevId, type);\n\t\t\t\t\t\t System.out.println(count++);\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t }\n } \n }", "private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}", "public boolean loadData() {\n try {\n SAXReader reader = new SAXReader();\n Document xmlDoc = reader.read(xmlFile);\n\n Element rootNode = xmlDoc.getRootElement();\n\n rootTreeIterate(rootNode);\n\n } catch (DocumentException ex) {\n logger.error(\"Document loading error:\", ex);\n return false;\n }\n\n return true;\n }", "void readXML(Element elem) throws XMLSyntaxError;", "public static void testXmlImport() {\n\n }", "Map<String, String> Read_File(XmlPullParser xmlPullParser, List<Tags_To_Read> tags, String account_Name) throws NullPointerException, XML_Reader_Exception;", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException {\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\r\n\t\t//Create object of DocumentBuilder using DocumentBuilderFactory - to get the Document object for XML\r\n\t\tDocumentBuilder builder = documentBuilderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\t//Create object of Document by parsing the input XML - to be able to obtain the NodeList for traversal.\r\n\t\tDocument document = builder.parse(\"D://employees.xml\");\r\n\t\t//ClassLoader.getSystemResourceAsStream(\"employees.xml\")\r\n\t\t\r\n\t\t//Create object of NodeList from the Document object - to be able to identify individual nodes (items)\r\n\t\tNodeList nodeList = document.getChildNodes();\r\n\t\t\r\n\t\tList<Employee> empList = new ArrayList<Employee>();\r\n\r\n\t\t//Looping over nodeList\r\n\t\tfor(int i=0;i<nodeList.getLength();i++)\r\n\t\t{\r\n\t\t\t//Picking up a node/item from the list\r\n\t\t\tNode node = nodeList.item(i);\r\n\t\t\t\r\n\t\t\tif(node instanceof Element)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t//emp.id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\r\n\t\t\t\t\r\n\t\t\t\tNodeList internalNodeList = node.getChildNodes();\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j < internalNodeList.getLength(); j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tEmployee emp = new Employee();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode iNode = internalNodeList.item(j);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(iNode instanceof Element)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString iNodeText = iNode.getLastChild().getTextContent().trim();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tswitch(iNodeText)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase \"firstName\":\r\n\t\t\t\t\t\t\temp.firstName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"lastName\":\r\n\t\t\t\t\t\t\temp.lastName = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"location\":\r\n\t\t\t\t\t\t\temp.location = iNodeText;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tempList.add(emp);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(Employee emp : empList)\r\n\t\t{\r\n\t\t\tSystem.out.println(emp);\r\n\t\t}\r\n\t}", "@Test\n public void simpleXmlParsingTest() throws ParserConfigurationException, SAXException, IOException {\n String simpleInput = \"<test></test>\";\n TestTreeNode root = TestingUtils.parseXmlTree(simpleInput);\n\n assertThat(root, notNullValue());\n assertThat(root.getLabel().get(), is(\"test\"));\n assertThat(root.getChildren().isPresent(), is(false));\n }", "public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException{\n\t File inputFile = new File(\"C:\\\\Users\\\\msamiull\\\\workspace\\\\jgraphx-master\\\\t.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(inputFile);\r\n \r\n\t\tdoc.getDocumentElement().normalize();\r\n System.out.println(\"Main element :\"+ doc.getDocumentElement().getNodeName());\r\n// NodeList nodeList = doc.getElementsByTagName(\"root\");\r\n \r\n NodeList nodeList = doc.getElementsByTagName(\"iOOBN\");\r\n// NamedNodeMap attribList = doc.getAttributes();\r\n \r\n// nonRecursiveParserXML(nList, doc);\r\n\r\n ArrayList<String> tagList = new ArrayList<String>();\r\n// tagList.add(\"mxCell\");\r\n// tagList.add(\"mxGeometry\");\r\n// tagList.add(\"mxPoint\");\r\n tagList.add(\"Node\");\r\n tagList.add(\"state\");\r\n tagList.add(\"tuple\"); // purposely i raplced \"datarow\" by \"tuple\" so that my parser can consider state first before tuple/data\r\n tagList.add(\"parent\");\r\n \r\n recursiveParserXML(nodeList, tagList);\r\n\r\n }", "public void runExample(InputStream file)\n {\n\tparseXmlFile(file);\n\n\t// get each employee element and create a Employee object\n\tparseDocument();\n\n\t// Iterate through the list and print the data\n\t// printData();\n\t//Log.d(Constants.TAG, \"XMLReader::runExample Exiting!\");\n }", "public void saxReader() throws SAXException, IOException, WoodsException{\n\t\tXMLReader reader = XMLReaderFactory.createXMLReader();\n\t\treader.setContentHandler(new DatabaseContentHandler());\n\t\t\n\t\ttry{\n\t\t\treader.parse(\"database.xml\"); \n\t\t} catch(FileNotFoundException e){\n\t\t\tthrow new WoodsException(\"XML file was not found.\");\n\t\t}\n\t}", "private void parseXmlFile(InputStream file)\n {\n\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n\ttry\n\t{\n\t // Using factory get an instance of document builder\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Creating a new Document Builder.\");\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\n\t // parse using builder to get DOM representation of the XML file\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Attempting to parse the file.\");\n\t // This line causes the program to crash when attempting to read the SVG file, which is in XML format.\n\t dom = db.parse(file);\n\t //Log.d(Constants.TAG, \"XMLReader::parseXmlFile - Finished parsing the file.\");\n\t}\n\tcatch (ParserConfigurationException pce)\n\t{\n\t Log.d(Constants.TAG, \"ParserConfigurationException MSG: \" + pce.getMessage());\n\n\t pce.printStackTrace();\n\t}\n\tcatch (SAXException se)\n\t{\n\t Log.d(Constants.TAG, \"SAXException MSG: \" + se.getMessage());\n\n\t se.printStackTrace();\n\t}\n\tcatch (IOException ioe)\n\t{\n\t Log.d(Constants.TAG, \"IOException MSG: \" + ioe.getMessage());\n\n\t ioe.printStackTrace();\n\t}\n\tcatch (Exception e)\n\t{\n\t Log.d(Constants.TAG, \"Exception MSG: \" + e.getMessage());\n\t e.printStackTrace();\n\t}\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseXmlFile() Exiting!\");\n }", "private static Document read (File file) throws MalformedURLException, DocumentException {\r\n\t\tSAXReader reader = new SAXReader();\r\n\t\tDocument document = reader.read(file);\r\n\t\treturn document;\r\n\t}", "void processElement(File documentPath) \n\t\t\tthrows XMLFormatException;", "public void readFromFile() {\n\n\t}", "public void getXmlFromStream (BufferedReader reader){\n\n String tmpDate = null;\n String strDate = null;\n Date date = null;\n\n try{\n XmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n XmlPullParser xpp = factory.newPullParser();\n\n // point the parser to our file.\n xpp.setInput(reader);\n // get initial eventType\n int eventType = xpp.getEventType();\n\n // process tag while not reaching the end of document\n while(eventType != XmlPullParser.END_DOCUMENT) {\n switch(eventType) {\n // at start of document: START_DOCUMENT\n case XmlPullParser.START_DOCUMENT:\n //study = new Study();\n break;\n\n // at start of a tag: START_TAG\n case XmlPullParser.START_TAG:\n // get tag name\n String tagName = xpp.getName();\n\n // if <Cube>, get attribute: 'currency'\n if(tagName.equalsIgnoreCase(KEY_CUBE)) {\n if(strDate == null){\n strDate = xpp.getAttributeValue(null, KEY_DATE);\n }\n\n String currency = xpp.getAttributeValue(null, KEY_CURRENCY);\n String rate = xpp.getAttributeValue(null, KEY_RATE);\n if(currency != null) {\n\n // Create new object\n date = createDate(strDate); // Create date\n double doubleRate = Double.parseDouble(rate); // Convert string to double\n cubes.add(new CubeXML(new Date(),currency, doubleRate)); // Create object and store in list\n }\n }\n break;\n }\n // jump to next event\n eventType = xpp.next();\n }\n\n // Add euro\n cubes.add(new CubeXML(date, \"Euro\",1));\n\n } catch (XmlPullParserException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) throws ParserConfigurationException {\n\t\tDocumentBuilder dBuilder;\n\t\tDocument doc = null;\n\t\tdBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\ttry {\n\t\t\tdoc = dBuilder.parse(new File(filepath));\n\t\t} catch (SAXException | IOException e) {\n\t\t\tSystem.out.println(\"Invalid File / Xml\");\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Root element is: <\" + doc.getDocumentElement().getNodeName() + \">\");\n\n\t\tNodeList childNodes = doc.getDocumentElement().getChildNodes();\n\t\tfor (int i = 0; i < childNodes.getLength(); i++) {\n\t\t\tNode node = childNodes.item(i);\n\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tString name = node.getNodeName();\n\t\t\t\tString value = node.getTextContent();\n\t\t\t\tSystem.out.println(\"Node name: '\" + name + \"' has text content: \" + value);\n\t\t\t}\n\t\t}\n\n\t\t// Validate XML against schema.xsd\n\t\tSchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\n\t\t// Validate will throw exception only if xml is not valid against the schema\n\t\ttry {\n\t\t\tSchema schema = factory.newSchema(new File(schemapath));\n\t\t\tValidator validator = schema.newValidator();\n\t\t\tvalidator.validate(new StreamSource(new File(filepath)));\n\t\t\tSystem.out.println(\"XML is valid. No exception was thrown\");\n\t\t} catch (SAXException | IOException e) {\n\t\t\tSystem.out.println(\"Invalid XML. Exception found: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void testRead_LemonModel_Reader() {\n //System.out.println(\"read\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n LemonModel lm = instance.create(URI.create(\"file:test\"));\n Reader ds = new StringReader(testXMLDoc);\n instance.read(lm, ds);\n }", "public static NodeList readXML(String filename, String id)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\r\n\t \r\n\t\t \r\n\t\treturn list;\r\n\t}", "public void process(final String filename) throws JDOMException, IOException {\n\n // Parsing our XML file being located below \"resources\"\n final Document docInput = builder.build(\n getClass().getClassLoader().getResource(filename)\n );\n\n // Accessing the document's root element <catalog>\n final Element docRoot = docInput.getRootElement();\n\n // Accessing the <item> children of parent element <catalog>\n docRoot.getChildren().stream().\n map(item -> \"Article: \" + item.getText() +\n \", order number: \" + item.getAttributeValue(\"orderNo\")).\n forEach(System.out::println);\n }", "@Test\n public void testFromXml() throws Exception\n {\n Element root = XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"kml\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Folder\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"folder description\"))),\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Document\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"document description\"))))\n .toDOM().getDocumentElement();\n\n KmlFile file = KmlFile.fromXml(root.getOwnerDocument());\n\n List<Feature<?>> features = file.getFeatures();\n\n assertEquals(\"number of features\", 2, features.size());\n assertEquals(\"first feature type\", Folder.class, features.get(0).getClass());\n assertEquals(\"first feature attribute\", \"folder description\", features.get(0).getDescription());\n assertEquals(\"second feature type\", Document.class, features.get(1).getClass());\n assertEquals(\"second feature attribute\", \"document description\", features.get(1).getDescription());\n }", "static String test1(File in) throws Exception {\n\t\tXmlStringTester dt = new XmlStringTester(in);\n\t\treturn dt.getString(dt.doc);\n\t}", "public XsdReaderTest(String testName) {\r\n\t\tsuper(testName);\r\n\t}", "static void processFile(File xmlFile) {\n Document doc = null;\n try {\n doc = builder.parse(xmlFile);\n }\n catch (IOException e) {\n e.printStackTrace();\n System.exit(3);\n }\n catch (SAXException e) {\n System.out.println(\"Parsing error on file \" + xmlFile);\n System.out.println(\" (not supposed to happen with supplied XML files)\");\n e.printStackTrace();\n System.exit(3);\n }\n \n /* At this point 'doc' contains a DOM representation of an 'Items' XML\n * file. Use doc.getDocumentElement() to get the root Element. */\n System.out.println(\"Successfully parsed - \" + xmlFile);\n \n /* Fill in code here (you will probably need to write auxiliary\n methods). */\n \n Element[] elems = getElementsByTagNameNR(doc.getDocumentElement(), \"Item\");\n for(Element e : elems) {\n\n String itemId = e.getAttribute(\"ItemID\");\n String name = getElementTextByTagNameNR(e, \"Name\");\n String currently = strip(getElementTextByTagNameNR(e, \"Currently\"));\n String buy_price = strip(getElementTextByTagNameNR(e, \"Buy_Price\"));\n String first_bid = strip(getElementTextByTagNameNR(e, \"First_Bid\"));\n String number_of_bids = getElementTextByTagNameNR(e, \"Number_of_Bids\");\n String country = getElementTextByTagNameNR(e, \"Country\");\n String started = changeTime(getElementTextByTagNameNR(e, \"Started\"));\n String ends = changeTime(getElementTextByTagNameNR(e, \"Ends\"));\n Element seller = getElementByTagNameNR(e, \"Seller\");\n String sellerId = seller.getAttribute(\"UserID\");\n String sellerRatings = seller.getAttribute(\"Rating\");\n String location = getElementTextByTagNameNR(e, \"Location\");\n Element locate = getElementByTagNameNR(e, \"Location\");\n String latitude = locate.getAttribute(\"Latitude\");\n String longitude = locate.getAttribute(\"Longitude\");\n String description = getElementTextByTagNameNR(e, \"Description\");\n if(description.length() > 4000)\n description = description.substring(0, 4001);\n\n // add the record to the list\n items.add(itemRecord(itemId, name, currently, buy_price, first_bid, number_of_bids, country,\n started, ends, sellerId, location, latitude, longitude, description));\n\n // add the category infomation and belongsTo information\n Element[] cates = getElementsByTagNameNR(e, \"Category\");\n for(Element c : cates) {\n String cate = getElementText(c);\n if(category.containsKey(cate) == false) {\n int cnt = category.size();\n category.put(cate, cnt);\n }\n int index = category.get(cate);\n String caterecord = itemId + columnSeparator + index;\n belongsTo.add(caterecord);\n }\n\n // add the user information\n if(users.containsKey(sellerId)) {\n users.get(sellerId).sellRating = sellerRatings;\n }\n else {\n User u = new User(sellerId);\n u.sellRating = sellerRatings;\n users.put(sellerId, u);\n }\n\n // add the bid infromation and bider inforamtion\n Element[] ebids = getElementsByTagNameNR(getElementByTagNameNR(e, \"Bids\"), \"Bid\");\n for(Element b : ebids) {\n Element bidder = getElementByTagNameNR(b, \"Bidder\");\n String bidderId = bidder.getAttribute(\"UserID\");\n String bidderRating = bidder.getAttribute(\"Rating\");\n String bidderloc = getElementTextByTagNameNR(bidder, \"Location\");\n String biddercoun = getElementTextByTagNameNR(bidder, \"Country\");\n String amount = strip(getElementTextByTagNameNR(b, \"Amount\"));\n String time = changeTime(getElementTextByTagNameNR(b, \"Time\"));\n\n\n if(users.containsKey(bidderId) == false) {\n User u = new User(bidderId);\n users.put(bidderId, u);\n }\n users.get(bidderId).location = bidderloc;\n users.get(bidderId).country = biddercoun;\n users.get(bidderId).bidRating = bidderRating;\n bids.add(bidRecord(itemId, bidderId, time, amount));\n }\n\n }\n \n \n /**************************************************************/\n \n }", "public static Document loadXmlFile(String fname) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(fname);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }", "@Override\n\tprotected void setUp() throws Exception {\n\t\tResource input = new ByteArrayResource(xml.getBytes());\n\t\teventReader = StaxUtils.createXmlInputFactory().createXMLEventReader(\n\t\t\t\tinput.getInputStream());\n\t\tfragmentReader = new DefaultFragmentEventReader(eventReader);\n\t}", "private void parseNodes() throws ParserException{\n NodeList fileNodesList = root.getElementsByTagName(\"file\");\n NodeList nodeNodesList = root.getElementsByTagName(\"node\");\n NodeXML tmp;\n for(int i=0; i<nodeNodesList.getLength(); i++){\n tmp = getNode((Element) nodeNodesList.item(i));\n mapForAccess.put(tmp.hostname,tmp);\n if(tmp.isMaster) {\n master = tmp;\n }\n else {\n slaves.add(tmp);\n }\n }\n }", "private void testProXml(){\n\t}", "public abstract T readFromXml(XmlPullParser parser, int version, Context context)\n throws IOException, XmlPullParserException;", "private static Document parseXmlFile(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n } catch (SAXException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public static void main(String[] args) throws Exception {\r\n //Get Document Builder\r\n boolean isAccordian=false;\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder builder = factory.newDocumentBuilder();\r\n\r\n //Build Document\r\n Document document = builder.parse(new File(\"C:\\\\users\\\\amiraj2\\\\Desktop\\\\configurations.xml\"));\r\n\r\n //Normalize the XML Structure; It's just too important !!\r\n document.getDocumentElement().normalize();\r\n\r\n //Here comes the root node\r\n Element root = document.getDocumentElement();\r\n //// System.out.println(root.getNodeName());\r\n\r\n visitChildNodesOfRoot(document);\r\n\r\n //// System.out.println(\"============================\");\r\n }", "public void testImportXML() throws RepositoryException, IOException{\n String path = \"path\";\n InputStream stream = new ByteArrayInputStream(new byte[0]);\n session.importXML(path, stream, 0);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.importXML(path, stream, 0);\n }", "public static void main(String[] args) throws JDOMException, IOException, IllegalArgumentException, FeedException {\n\t\tInputStream in = new BufferedInputStream(\n\t new FileInputStream(args[0]));\n\t SAXBuilder builder = new SAXBuilder();\n\t Document doc = builder.build(in);\n\t \n\t \n\t Element root = doc.getRootElement();\n\t System.out.println(root);\n\t System.out.println(root.getName());\n\t System.out.println(root.getChildren());\n\t \n\t //java.util.List αντικείμενο που περιέχει 3 Element αντικείμενα\n\t \n\t}", "public void parseXML(String xmlString) {\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); \n Document document = null; \n try { \n //DOM parser instance \n DocumentBuilder builder = builderFactory.newDocumentBuilder(); \n \n //parse an XML file into a DOM tree, in this case, change the filepath to xml String \n document = builder.parse(new File(filePath));\n \n //get root element, which is <Airports>\n Element rootElement = document.getDocumentElement(); \n \n //traverse child elements. retrieve all the <Airport>\n NodeList nodes = rootElement.getChildNodes(); \n for (int i=0; i < nodes.getLength(); i++) \n { \n Node node = nodes.item(i); \n if (node.getNodeType() == Node.ELEMENT_NODE) { \n Element airport = (Element) node; \n \n //process child element \n String code = airport.getAttribute(\"Code\");\n String name = airport.getAttribute(\"Name\"); \n \n // child node of airport\n NodeList airportChildren = airport.getChildNodes();\n \n // value of longitude & latitude\n String longitude = airportChildren.item(1).getTextContent();\n String latitude = airportChildren.item(2).getTextContent();\n \n Location location = new Location(longitude, latitude);\n airportList.add(new Airport(code, name, location));\n } \n } \n \n // another approach to traverse all the listNode by tagName \n /*NodeList nodeList = rootElement.getElementsByTagName(\"book\"); \n if(nodeList != null) \n { \n for (int i = 0 ; i < nodeList.getLength(); i++) \n { \n Element element = (Element)nodeList.item(i); \n String id = element.getAttribute(\"id\"); \n } \n }*/\n // add the DOM object to the airportList\n } catch (ParserConfigurationException e) { \n e.printStackTrace(); \n } catch (SAXException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n } \n }", "public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void loadFromXml(File configFile) throws XMLQroxyConfigException {\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n saxParser.parse(configFile, this);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new XMLQroxyConfigException(\"Error while parsing the config file: \" + e.getMessage(), e);\n }\n }", "protected void readFromXMLImpl(XMLStreamReader in)\n throws XMLStreamException {\n aiObjects.clear();\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name, got: \" + in.getLocalName());\n }\n final String nextIDStr = in.getAttributeValue(null, \"nextID\");\n if (nextIDStr != null) {\n nextID = Integer.parseInt(nextIDStr);\n }\n \n String lastTag = \"\";\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n final String tagName = in.getLocalName();\n final String oid = in.getAttributeValue(null, ID_ATTRIBUTE);\n try {\n if (oid != null && aiObjects.containsKey(oid)) {\n getAIObject(oid).readFromXML(in);\n } else if (tagName.equals(AIUnit.getXMLElementTagName())) {\n new AIUnit(this, in);\n } else if (tagName.equals(AIPlayer.getXMLElementTagName())) {\n Player p = (Player) getGame().getFreeColGameObject(oid);\n if (p != null) {\n if (p.isIndian()) {\n new NativeAIPlayer(this, in);\n } else if (p.isREF()) {\n new REFAIPlayer(this, in);\n } else if (p.isEuropean()) {\n new EuropeanAIPlayer(this, in);\n } else {\n logger.warning(\"Bogus AIPlayer: \" + p);\n in.nextTag();\n }\n }\n } else if (tagName.equals(\"colonialAIPlayer\")) {\n // TODO: remove 0.10.1 compatibility code\n new EuropeanAIPlayer(this, in);\n // end TODO\n } else if (tagName.equals(AIColony.getXMLElementTagName())) {\n new AIColony(this, in);\n } else if (tagName.equals(AIGoods.getXMLElementTagName())) {\n new AIGoods(this, in);\n } else if (tagName.equals(WorkerWish.getXMLElementTagName())) {\n new WorkerWish(this, in);\n } else if (tagName.equals(GoodsWish.getXMLElementTagName())) {\n new GoodsWish(this, in);\n } else if (tagName.equals(TileImprovementPlan.getXMLElementTagName())) {\n new TileImprovementPlan(this, in);\n } else {\n logger.warning(\"Unknown AI-object read: \" + tagName + \"(\" + lastTag + \")\");\n }\n lastTag = in.getLocalName();\n } catch (Exception e) {\n StringWriter sw = new StringWriter();\n e.printStackTrace(new PrintWriter(sw));\n logger.warning(\"Exception while reading an AIObject(\" + tagName\n + \", \" + oid + \"): \" + sw.toString());\n while (!in.getLocalName().equals(tagName) && !in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n if (!in.getLocalName().equals(getXMLElementTagName())) {\n in.nextTag();\n }\n }\n }\n \n if (!in.getLocalName().equals(getXMLElementTagName())) {\n logger.warning(\"Expected element name (2), got: \" + in.getLocalName());\n }\n \n // This should not be necessary - but just in case:\n findNewObjects(false);\n }", "public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}", "public void readFromXML(XMLStreamReader in) throws XMLStreamException {\n readFromXMLImpl(in);\n }", "public Element readFromGameFile(String fileName) {\n\n Element element = null;\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Game\");\n Node nNode = nList.item(0);\n element = (Element) nNode;\n\n } catch (Exception e) {\n element = null;\n e.printStackTrace();\n }\n\n return element;\n }", "private Account loadTestData(String dataFile) throws ParserConfigurationException, \n SAXException, IOException {\n try {\n // getting parser\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n SAXParser parser = factory.newSAXParser();\n XMLReader reader = parser.getXMLReader();\n \n // getting loader\n InvoiceXMLLoaderCH loader = new InvoiceXMLLoaderCH();\n \n // getting input file\n InputSource input = new InputSource(this.getClass().getResourceAsStream(dataFile));\n \n // setting content handler and parsing file\n reader.setContentHandler(loader);\n reader.parse(input);\n \n return (Account) loader.getAccountList().get(0);\n \n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n throw e;\n } catch (SAXException e) {\n e.printStackTrace();\n throw e;\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n }", "public Document loadDomFromFile(String fileName){\n\t\tSAXReader reader = new SAXReader();\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tInputStream inputStream = new FileInputStream(fileName);\n\t\t\tdoc = reader.read(inputStream);\n\t\t} catch (DocumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn doc;\n\t}", "@Override\n\tpublic void importXML(String nodePath, ByteArrayInputStream bis,\n\t\t\tint typeImport) throws Exception {\n\n\t}", "public static void readXmlSettings() throws SAXException, IOException,\r\n\tParserConfigurationException {\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory\r\n\t\t\t\t.newInstance();\r\n\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t\tDocument xmlBaseSettings = docBuilder.parse(new File(\"config.xml\"));\r\n\t}", "XMLIn(String legendFile, RFO r)\n\t\t{\n\t\t\tsuper();\n\t\t\trfo = r;\n\t\t\telement = \"\";\n\t\t\tlocation = \"\";\n\t\t\tfiletype = \"\";\n\t\t\tmaterial = \"\";\n\t\t\tmElements = new double[16];\n\t\t\tsetMToIdentity();\t\t\t\n\t\t\t\n\t\t\tXMLReader xr = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\txr = XMLReaderFactory.createXMLReader();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLIn() 1: \" + e);\n\t\t\t}\n\t\t\t\n\t\t\txr.setContentHandler(this);\n\t\t\txr.setErrorHandler(this);\n\t\t\ttry\n\t\t\t{\n\t\t\t\txr.parse(new InputSource(legendFile));\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLIn() 2: \" + e);\n\t\t\t}\n\n\t\t}", "public CommandProcessXML(String filePath){\n _xmlFile = new File(filePath);\n _dbFactory = DocumentBuilderFactory.newInstance();\n }", "public static Staff readFromXml() throws JAXBException {\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n return (Staff)jaxbUnmarshaller.unmarshal(new File(\"test.xml\"));\n }", "public static void main(String[] args) throws Exception {\n\t\tSystem.out.println(\"-----\");\n\t\t// 创建SAXReader解析器\n\t\tSAXReader reader = new SAXReader();\n Document document = reader.read(\"src//dom4j//student.xml\");\n \n // 获取根元素\n Element root = document.getRootElement();\n \n // 获取指定元素,返回集合\n List <Element> list = root.elements(\"student\");\n // 遍历\n for (Element element : list) {\n\t\t\tString name = element.elementText(\"name\");\n\t\t\tString age = element.elementText(\"age\");\n\t\t\tString num = element.attributeValue(\"number\");\n\t\t\tSystem.out.println(name);\n\t\t\tSystem.out.println(age);\n\t\t\tSystem.out.println(num);\n\t\t}\n \n test();\n\t}", "@Test\n\tpublic void testBadRead(){\n\t\ttry{\n\t\t\tXMLReader reader = new XMLReader(\"nonExistent\");\n\t\t\treader.close();\n\t\t\tfail(\"XMLReader should not have been able to read nonexistent file\");\n\t\t} catch (FileNotFoundException e){\n\t\t}\n\t}", "protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;", "public Document setUpDocumentToParse() throws ParserConfigurationException, SAXException, IOException{\n\t\tFile file = new File (dataFilePath);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\n\t\treturn document;\n\t}", "public fileReaderTest()\n {\n }", "private void parseDocument()\n {\n\tElement docEle = dom.getDocumentElement();\n\n\t// get a nodelist of <employee> elements\n\tNodeList nl = docEle.getElementsByTagName(\"path\");\n\tif (nl != null && nl.getLength() > 0)\n\t{\n\t for (int i = 0; i < nl.getLength(); i++)\n\t {// System.out.println(i);\n\n\t\t// get the employee element\n\t\tElement el = (Element) nl.item(i);\n\n\t\t// get the Employee object\n\t\tmakeRoom(el);\n\n\t }\n\n\t //Log.d(\"NUMROOMS\", \"numRooms = \" + numDetectedRooms + \" \" + \"numHallways = \" + numDetectedHallways);\n\t}\n\t// This will read in the numbers. This is possibly useful for giving the rooms their correct numbers.\n\t// Find all of the glyphs within the room using it's coordinates and the ID designated by roomsMap.\n\t// Organize their coordinates from left to right and translate the filename to what number they are.\n\t// These numbers from left to right are the room number.\n\n\t/*\n\t * NodeList glyphs = docEle.getElementsByTagName(\"use\"); if (nl != null && glyphs.getLength() > 0) { for (int i = 0; i < glyphs.getLength(); i++) {\n\t * \n\t * //get the employee element Element el = (Element) glyphs.item(i); //System.out.println(el.getAttribute(\"id\")); String x = el.getAttribute(\"x\"); String y = el.getAttribute(\"y\");\n\t * \n\t * //Create a new Employee with the value read from the xml nodes\n\t * \n\t * myGlyphs.add(new Point((int)Double.parseDouble(x), (int)(Double.parseDouble(y))));\n\t * \n\t * } }\n\t */\n\n\t//Log.d(Constants.TAG, \"XMLReader::parseDocument() Exiting!\");\n }", "public void testStartElement() throws Exception {\n //Add the namespace for GraphPropertiesConverter\n ConfigManager.getInstance()\n .add(\"test_files\" + File.separator\n + \"RenameConverter.xml\");\n\n //Add configuration for XMIReader\n TestHelper.loadSingleXMLConfig(XMIReader.class.getName(),\n \"test_files\" + File.separator + \"reader_config.xml\");\n TestHelper.loadSingleXMLConfig(ModelElementFactory.class.getName(),\n \"test_files\" + File.separator + \"factory_config.xml\");\n\n XMIReader reader = new XMIReader();\n\n //Set up diagram interchange xmi handler config\n DiagramInterchangeXMIHandler handler = (DiagramInterchangeXMIHandler) reader.getHandler(\n \"UML:Diagram\");\n handler.setModelElementFactory(new ModelElementFactory(\n ModelElementFactory.class.getName()));\n\n XMIHandler converterHandler = TestHelper.createXMIConverterHandler(handler,\n reader);\n TestHelper.addConverter(converterHandler, new RenameConverter());\n reader.addHandler(\"UML:Diagram\", converterHandler);\n\n //It should process successfully\n reader.parse(new File(\"test_files\" + File.separator + \"RenameTest.xmi\"));\n }", "@Test\n public void shouldBeAbleToImportAndExportXMLWithComments() throws Exception\n {\n Node root = load(XML_WITH_COMMENT);\n \n Assert.assertNotNull(\"Obtaining comment should not be null\",root.getSingle(\"#comment\"));\n Assert.assertNotNull(\"Obtaining child should not be null\",root.getSingle(\"child\"));\n \n System.out.println(export(root));\n }", "@Test\n public void testGetTagValues(){\n Element element = mock(Element.class);\n when(xmlFileReader.getTagValue(\"String\", element)).thenReturn(\"String\");\n }", "@Override\n protected void readChildren(XMLStreamReader in) throws XMLStreamException {\n while (in.nextTag() != XMLStreamConstants.END_ELEMENT) {\n readChild(in);\n }\n }", "@Override\n public void buildListDevices(final String fileName) {\n XMLStreamReader reader;\n String name;\n try (FileInputStream inputStream\n = new FileInputStream(new File(fileName))) {\n reader = inputFactory.createXMLStreamReader(inputStream);\n\n while (reader.hasNext()) {\n int type = reader.next();\n if (type == XMLStreamConstants.START_ELEMENT) {\n name = reader.getLocalName();\n parseSpecificDevice(name, reader);\n }\n }\n\n LOGGER.info(\"Parsing by DOM parser was successfully done!\");\n } catch (XMLStreamException ex) {\n LOGGER.error(\"StAX parsing error!\");\n } catch (FileNotFoundException ex) {\n LOGGER.error(\"File \" + fileName + \" not found!\");\n } catch (ParsingException e) {\n LOGGER.error(e.getMessage());\n } catch (IOException e) {\n LOGGER.error(\"Exception with file.\");\n }\n }", "XMLStreamReader createXMLStreamReader(XMLDocument document) throws XMLStreamException;", "public interface XML_Reader {\n /**\n * The enum Tags to read from XML file. Covers all Concrete Classes that are broken up into sections\n */\n public enum Tags_To_Read {\n //Login Tags\n Account_Name, Password,\n //Medical Tags\n Bags, Urine, Hydration, WellBeing, Location, Entry_Time, Medical_State,\n //Account Tags\n Gamification, Notification, State, Name, Last_Daily_Review_Date, Last_Export_Date,\n //Tags used for multiple entries retrieved, for use when getting last 24hours or all data to export. The number of entries will be recorded and returned the Map\n //Under the Key \"Entries\". This is for the Medical Data Only currently due to functionality.\n Last_Entry, Daily_Data, Export_Data,\n //Tag for number of entries returned with the medical reader\n Entries_Retrieved,\n\n }\n\n /**\n * Public Method Call to read information specified in the file linked to the XMLPullParser and return results as\n * String pairs in a Map object\n *\n * @param xmlPullParser Represents the XML Reader Object used to read users data file stored on the device\n * @param tags the tags to read from the XML file specified\n * @param account_Name Name of the account for login purposes, Set to Null if not using Login_Reader Functionality\n * @return a Map with string pair values, with Tag name attached to the value read in, if empty it will be \"\";\n * @throws NullPointerException if XmlPullParser Object is Null, No Tags Given, or account_Name Null\n * @throws XML_Reader_Exception if an XMLPullParserException or IOException occurs when trying to read and parse\n * the login data file\n */\n\n Map<String, String> Read_File(XmlPullParser xmlPullParser, List<Tags_To_Read> tags, String account_Name) throws NullPointerException, XML_Reader_Exception;\n}", "public void testParse() throws Exception { \n // DTD parser test \n \n InputSource input = new InputSource(new StringReader(\"<!ELEMENT x ANY>\"));\n input.setSystemId(\"StringReader\");\n \n XMLReader peer = XMLReaderFactory.createXMLReader();\n \n TestDeclHandler dtdHandler = new TestDeclHandler();\n peer.setProperty(\"http://xml.org/sax/properties/declaration-handler\", dtdHandler);\n SAXEntityParser parser = new SAXEntityParser(peer, false);\n parser.parse(input);\n\n // Add your test code below by replacing the default call to fail.\n assertTrue(\"DTD entity parser did not detected 'x' decl!\", dtdHandler.pass);\n\n // Reentrance test\n \n boolean exceptionThrown = false;\n try {\n parser.parse(new InputSource(new StringReader(\"\")));\n } \n catch (IllegalStateException ex) {\n exceptionThrown = true;\n } \n finally {\n assertTrue(\"Parser may not be reused!\", exceptionThrown);\n }\n \n }", "public Document parse (String filePath) {\n Document document = null;\n try {\n /* DOM parser instance */\n DocumentBuilder builder = builderFactory.newDocumentBuilder();\n /* parse an XML file into a DOM tree */\n document = builder.parse(filePath);\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return document;\n }", "public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list)\n throws XMLStreamException {\n xmlDescription.parse(reader, PathAddress.EMPTY_ADDRESS, list);\n }", "public XmlPullParser getLocalXML(String filename) throws IOException {\r\n\t\ttry {\r\n\t\t\tin = mContext.getAssets().open(filename);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tXmlPullParser parser = Xml.newPullParser();\r\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\r\n\t\t\tparser.setInput(in, null);\r\n\t\t\tparser.nextTag();\r\n\t\t\treturn parser;\r\n\t\t} catch (XmlPullParserException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "@Test\r\n public void testReadFile() {\r\n System.out.println(\"readFile and updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n \r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n instance.readFile();\r\n instance.parse();\r\n boolean assemblersFound = !((Applications)(((InparseManager)instance).getParseResults())).getAssemblers().isEmpty();\r\n assertEquals(true,assemblersFound);\r\n }", "@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }", "public static void main(String[] args)\n throws FileNotFoundException, XMLStreamException {\n XMLInputFactory factory = XMLInputFactory.newInstance();\n // Create XML event reader 1\n XMLEventReader r1 = \n factory.createXMLEventReader(new FileReader(\"prodList1.xml\"));\n // Create XML event reader 2\n XMLEventReader r2 = \n factory.createXMLEventReader(new FileReader(\"prodList2.xml\"));\n // Create the output factory\n XMLOutputFactory xmlof = XMLOutputFactory.newInstance();\n // Create XML event writer\n XMLEventWriter xmlw = xmlof.createXMLEventWriter(System.out);\n // Read to first <product> element in document 1\n // and output to result document\n String pid1 = readToNextElement(r1, xmlw, false);\n // Read to first <product> element in document 1\n // without writing to result document\n String pid2 = readToNextElement(r2, null, false);\n // Loop over both XML input streams\n while (pid1 != null || pid2 != null) {\n // Compare merge criteria\n if (pid2 == null || (pid1 != null && pid1.compareTo(pid2) <= 0))\n // Continue in document 1\n pid1 = readToNextElement(r1, xmlw, pid2 == null);\n else\n // Continue in document 2\n pid2 = readToNextElement(r2, xmlw, pid1 == null);\n }\n xmlw.close();\n }", "@Test\r\n public void testAnyRootNamespace() throws Exception {\r\n BeanReader in = factory.createReader(\"stream1\", new InputStreamReader(\r\n getClass().getResourceAsStream(\"ns1_in.xml\")));\r\n \r\n StringWriter s = new StringWriter();\r\n BeanWriter out = factory.createWriter(\"stream1\", s);\r\n try {\r\n Person person = (Person) in.read();\r\n assertEquals(\"John\", person.getFirstName());\r\n \r\n out.write(person);\r\n out.close();\r\n \r\n assertEquals(load(\"ns1_out.xml\"), s.toString());\r\n }\r\n finally {\r\n in.close();\r\n }\r\n }", "XmlStringTester(File in) throws Exception {\n\t\txml = Files.readFile(in).toString();\n\t\txml = SchemEditUtils.expandAmpersands(xml);\n\t\tdoc = Dom4jUtils.getXmlDocument(xml);\n\t\tstringWriter = getStringWriter();\n\t}", "public void parse() throws ParserConfigurationException, SAXException, IOException, XMLStreamException {\n\t\tString currentElem = null;\n\t\tCard card = null;\n\t\tType type = null;\n\t\tAuthor author = null;\n\n\t\tXMLInputFactory xmlFactory = XMLInputFactory.newInstance();\n\t\tXMLEventReader xmlReader = xmlFactory.createXMLEventReader(new StreamSource(xmlFileName));\n\n\t\twhile (xmlReader.hasNext()) {\n\t\t\tXMLEvent event = xmlReader.nextEvent();\n\n\t\t\tif (event.isCharacters() && event.asCharacters().isWhiteSpace()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (event.isStartElement()) {\n\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\tcurrentElem = startElement.getName().getLocalPart();\n\n\t\t\t\tif (currentElem.equals(\"OldCards\")) {\n\t\t\t\t\toldCards = new OldCards();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Card\")) {\n\t\t\t\t\tcard = new Card();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Type\")) {\n\t\t\t\t\ttype = new Type();\n\t\t\t\t\tAttribute attribute = startElement.getAttributeByName(new QName(\"send\"));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\ttype.setSend(Boolean.parseBoolean(attribute.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Author\")) {\n\t\t\t\t\tauthor = new Author();\n\t\t\t\t\tAttribute attribute = startElement.getAttributeByName(new QName(\"famous\"));\n\t\t\t\t\tif (attribute != null) {\n\t\t\t\t\t\tauthor.setFamous(Boolean.parseBoolean(attribute.getValue()));\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (event.isCharacters()) {\n\t\t\t\tCharacters characters = event.asCharacters();\n\n\t\t\t\tif (currentElem.equals(\"Thema\")) {\n\t\t\t\t\tcard.setThema(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Type\")) {\n\t\t\t\t\ttype.setType(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (currentElem.equals(\"Country\")) {\n\t\t\t\t\tcard.setCountry(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (currentElem.equals(\"Year\")) {\n\t\t\t\t\tcard.setYear(Integer.parseInt(characters.getData()));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (currentElem.equals(\"Author\")) {\n\t\t\t\t\tauthor.setName(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (currentElem.equals(\"Valuable\")) {\n\t\t\t\t\tcard.setValuable(characters.getData());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (event.isEndElement()) {\n\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\tString localName = endElement.getName().getLocalPart();\n\n\t\t\t\tif (localName.equals(\"Card\")) {\n\t\t\t\t\toldCards.getCards().add(card);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (localName.equals(\"Type\")) {\n\t\t\t\t\tcard.setType(type);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (localName.equals(\"Author\")) {\n\t\t\t\t\tcard.getAuthors().add(author);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\txmlReader.close();\n\t}" ]
[ "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.60472447", "0.60212445", "0.6017965", "0.6014563", "0.6013093", "0.5999829", "0.5991801", "0.59685004", "0.5948585", "0.59421015", "0.59316516", "0.5911612", "0.5904635", "0.5873577", "0.5843486", "0.57748663", "0.57700324", "0.5762341", "0.5755274", "0.5731071", "0.5715096", "0.57046527", "0.56880736", "0.56721073", "0.56657135", "0.56644994", "0.56550586", "0.5638891", "0.5632357", "0.5615452", "0.5611989", "0.56037134", "0.5602782", "0.5597435", "0.55873877", "0.5516833", "0.5512342", "0.5510806", "0.5498449", "0.5494676", "0.5492734", "0.5486698", "0.5483788", "0.5480395", "0.54559606", "0.54490876", "0.5445505", "0.543851", "0.54300916", "0.54173714", "0.5413405", "0.5407936", "0.54066926", "0.5400604", "0.53997415", "0.53937316", "0.5389284", "0.5388722", "0.53776264", "0.5370592", "0.53675973", "0.5367397", "0.5365207", "0.53484297", "0.5344014", "0.53424764", "0.5329663", "0.532436", "0.5312575", "0.5299674", "0.52864635", "0.52765024", "0.5270515", "0.52675897", "0.52641255", "0.52639914", "0.5262373", "0.52437097", "0.5243389", "0.52432853" ]
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 }", "boolean hasTagValue();", "public String getFromTag();", "public abstract String getTag();", "public String getTagVal() {\n return tagVal;\n }", "public String getTag();", "public void testGetTagList() throws IOException {\n\n part.setBasedata(\"http://localhost/~luisdanielibanesgonzalez/datasets/MiniBase.nt\");\n part.reload();\n\n List<TrioMonoid> tags = part.getTagList();\n assertEquals(16,tags.size());\n for(TrioMonoid tm : tags){\n assertEquals(1,tm.getTokens().size());\n assertEquals(1,tm.getCoeffs().size());\n assertEquals(new Long(1),tm.getCoeffs().get(0));\n System.out.println(tm.toString());\n }\n\n \n }", "java.util.concurrent.Future<GetTagValuesResult> getTagValuesAsync(GetTagValuesRequest getTagValuesRequest);", "@Test\n public void listProdTags() {\n }", "public String tagAsString();", "protected synchronized String getStringValue(String tag) {\n String value = \"\";\n if (actualProperties != null) {\n value = actualProperties.getProperty(tag, \"\");\n }\n return value;\n }", "public Object getValue() {\n return tags.toString();\n }", "public String getTagValue() {\n return tagValue;\n }", "@Test\n public void testGetVerifiedAssociatedTags() {\n String insertedTagList = \" #awesome, #dry, #newTag \";\n List<Tag> verifiedTags = tagServ.getVerifiedAssociatedTags(insertedTagList);\n List<Tag> allTags = tagServ.getAllTags();\n Assert.assertEquals(5, allTags.size());\n Assert.assertEquals(3, verifiedTags.size());\n }", "public java.util.List<String> getTagValues() {\n if (tagValues == null) {\n tagValues = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n tagValues.setAutoConstruct(true);\n }\n return tagValues;\n }", "@Test\n public void testAttributeManagement() {\n Tag tag = new BaseTag(\"testtag\");\n String attributeName = \"testAttr\";\n String attributeValue = \"testValue\";\n tag.addAttribute(attributeName, attributeValue);\n assertEquals(\"Wrong attribute value returned\", attributeValue, tag.getAttribute(attributeName));\n assertNotNull(\"No attribute map\", tag.getAttributes());\n assertEquals(\"Wrong attribute map size\", 1, tag.getAttributes().size());\n assertEquals(\"Wrong attribute in map\", attributeValue, tag.getAttributes().get(attributeName));\n tag.removeAttribute(attributeName);\n assertNull(\"Attribute was not removed\", tag.getAttribute(attributeName));\n }", "private String getValue(String def, Element doc, String tag) {\r\n String value = def;\r\n NodeList nl;\r\n nl = doc.getElementsByTagName(tag);\r\n if (nl.getLength() > 0 && nl.item(0).hasChildNodes()) {\r\n value = nl.item(0).getFirstChild().getNodeValue();\r\n }\r\n return value;\r\n }", "@Test\n public void testGetDescription() {\n VirusAttribute virusAttribute = new VirusAttribute(\"att\", \"desc\", 30);\n String result = virusAttribute.getDescription();\n assertEquals(\"desc\", result);\n }", "@Test\n public void testGetStbsByTag() {\n MockHouseService houseService = new MockHouseService();\n HouseRestController controller = new HouseRestController();\n MetaStbBuilder metaStbBuilder = new MetaStbBuilder();\n metaStbBuilder.tags(new String[] { \"validTag\" });\n MetaStb stb = metaStbBuilder.stb();\n houseService.upsertStb(stb);\n ReflectionTestUtils.setField(controller, \"service\", houseService);\n Map<String, Object>[] stbs = controller.getStbsByTag(\"validTag\", null);\n Assert.assertNotNull(stbs, \"No result found on quering with tag value\");\n Assert.assertTrue(stbs[0].get(MetaStb.TAGS).toString().contains(\"validTag\"),\n \" Expected tag not found in the MetaStbs returned\");\n }", "String getTag() {\n return tag;\n }", "@Test\n public void testGetValue()\n {\n System.out.println(\"getValue\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n assertEquals(Syntax.LABEL, token.getSyntax());\n assertEquals(1, token.getLine());\n assertEquals(1, token.getPosition());\n assertEquals(Vocabulary.COMPONENT, token.getValue());\n }", "public TagInfo[] getTags() {\n/* 164 */ return this.tags;\n/* */ }", "@Test\n public void aHashtagShouldBeAbleToGetAllFields()\n {\n assertEquals(\"Hashtag failed to return name correctly.\", tag.getName(), \"FF\");\n assertNotNull(\"Hashtag failed to return containedBy collection correctly.\", tag.getContainedBy());\n }", "@Test\n public void value() {\n assertEquals(\"4\", onPage.get(\"select\").withName(\"plain_select\").value());\n // Get the first selected value for a multiple select\n assertEquals(\"2\", onPage.get(\"select\").withName(\"multiple_select\").value());\n // Get the value of the option\n assertEquals(\"1\", onPage.get(\"select\").withName(\"plain_select\").get(\"option\").value());\n assertEquals(\" The textarea content. \", onPage.get(\"textarea\").value());\n assertEquals(\"Enter keywords here\", onPage.get(\"#keywords\").value());\n // Checkboxes and radiobuttons simply return the value of the first element,\n // not the first checked element\n assertEquals(\"google\", onPage.get(\"input\").withName(\"site\").value());\n }", "private String getTextValue(String def, Element doc, String tag) {\n String value = def;\n NodeList nl;\n nl = doc.getElementsByTagName(tag);\n if (nl.getLength() > 0 && nl.item(0).hasChildNodes()) {\n value = nl.item(0).getFirstChild().getNodeValue();\n }\n return value;\n }", "public void testGetAttributeNames() {\n String result[] = { \"some node\" };\n sessionControl.expectAndReturn(session.getAttributeNames(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getAttributeNames(), result);\n }", "@Test\n\tpublic void testGetTag() throws FOMException, JSONException, FluidException, IOException {\n\t\tNamespace testNamespace = new Namespace(this.fdb, \"\", this.fdb.getUsername());\n\t\tString newName = UUID.randomUUID().toString();\n\t\tTag newTag = testNamespace.createTag(newName, \"This is a test tag\", true);\n\t\t// if we successfully created a tag we'll be able to get it from FluidDB\n\t\tTag gotTag = testNamespace.getTag(newName);\n\t\tassertEquals(newTag.getId(), gotTag.getId());\n\t\tgotTag.delete();\n\t}", "@Nullable\r\n default Map<String, String> getTags() {\r\n throw new IllegalArgumentException(\"getTags is unsupported\");\r\n }", "Tag getInternal();", "public String getTag()\n {\n return this.tag;\n }", "public String getTag() {\r\n return tag;\r\n }", "public int tag () { return MyTag; }", "public Object getTagValue(String tagName){\n\t\t\n\t\treturn getPicture().getMainDisplay().\n\t\t\tgetAnimationsHandler().getData(tagName);\n\t}", "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "public Map<String, Object> getTagMap();", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "boolean isSetTag();", "private static String[] getTagValue(String sTag, Element eElement) \n\t{\n\t\t\n\t\tString[] returnStrings = new String[3];\n\t\tNodeList nList = eElement.getElementsByTagName(sTag);\n \n\t\tif (nList.getLength()>0)\n {\n \t//for every element containing the tag name we get their childs\n\t\t\tfor( int i = 0; i < nList.getLength(); i++)\n {\n \tNodeList auxList = nList.item(i).getChildNodes();\n //we get the value of every child and put it into the returning array. We suppose there is only one child\n\t\t\t\tif (auxList.getLength()>0)\n\t\t\t\t\tfor (int j = 0; j < auxList.getLength(); j++)\n \t\t\treturnStrings[i] = auxList.item(j).getNodeValue();\n }\n }\n\t\treturn returnStrings;\n\t}", "public Object getTag(String tagName);", "@Test\r\n public void testSetTagNap() {\r\n System.out.println(\"setPaths\");\r\n XmlRoot instance = root;\r\n XmlTagMap expResult = new XmlTagMap();\r\n\r\n root.setTagMap(expResult);\r\n\r\n XmlTagMap result = instance.getTagMap();\r\n assertEquals(expResult, result);\r\n\r\n }", "public String getTag() {\n return this.tag;\n }", "@Test\n public void testGetAtt_name() {\n VirusAttribute virusAttribute = new VirusAttribute(\"att\", \"desc\", 30);\n String result = virusAttribute.getAtt_name();\n assertEquals(\"att\", result);\n }", "@Test\n public void testGetValue()\n {\n // single default value\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"one default\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)\"one default\"));\n \n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"default 1\", \"default 2\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)Arrays.asList(new String[]{\"default 1\", \"default 2\"})));\n \n // set a value\n m_SUT.setValue(\"test non-default\");\n assertThat(m_SUT.getValue(), is((Object)\"test non-default\"));\n \n //test empty default value array\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getValue(), is((Object)\"\"));\n \n //ensure that returned type corresponds to given attribute definition type (boolean)\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"true\"}));\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n Boolean myBool = (Boolean)m_SUT.getValue();\n assertThat(myBool, is(true));\n \n //for good measure, verify bad boolean type will result in exception\n when(m_AttributeModel.getDefaultValues()).thenReturn(Arrays.asList(new String[]{\"not a bool\"}));\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n try\n {\n fail(\"illegal argument exception expected. Value is: \"+ m_SUT.getValue());\n }\n catch (IllegalArgumentException e)\n {\n assertThat(e.getMessage(), containsString(\"cannot be parsed to a boolean\"));\n }\n }", "@Test\n\tpublic void testFindAndProject() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<String> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\treturn object.getText().differentFrom(null);\n\t\t\t\t\t}\n\t\t\t\t}).projectOn(new ProjectionBuilder<String, Tag, TagInformer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String project(TagInformer informer, ValueFetcher fetcher) {\n\t\t\t\t\t\treturn fetcher.getValue(informer.getText());\n\t\t\t\t\t}\n\t\t\t\t}).getAll();\n\t\tassertThat(values, IsCollectionContaining.hasItems(A, B, C));\n\t}", "public String getTag() {\n return tag;\n }", "public void testTag() throws Exception {\n IProject project = createProject(\"testTag\", new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" });\n \n tag(asResourceMapping(new IResource[] { project }, IResource.DEPTH_ONE), new CVSTag(\"v1\", CVSTag.VERSION));\n tag(asResourceMapping(new IResource[] { project.getFolder(\"folder1\") }, IResource.DEPTH_ONE), new CVSTag(\"v2\", CVSTag.VERSION));\n tag(asResourceMapping(new IResource[] { project.getFile(\"folder1/subfolder1/c.txt\") }, IResource.DEPTH_ZERO), new CVSTag(\"v3\", CVSTag.VERSION));\n tag(asResourceMapping(new IResource[] { project}, IResource.DEPTH_INFINITE), new CVSTag(\"v4\", CVSTag.VERSION));\n }", "@Test\r\n\tpublic void testValues(){\n\t\tEntityType[] values = EntityType.values();\r\n\t\tassertNotNull(values);\r\n\t}", "public String getTags() {\n return this.tags;\n }", "public List<ITag> getTags ();", "public List getTags();", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public String getTag()\n\t{\n\t\treturn tag;\n\t}", "public java.lang.String getTagValue() {\n java.lang.Object ref = tagValue_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tagValue_ = s;\n }\n return s;\n }\n }", "public void testBlogEntryHasTagsAndMediaIsHtml() throws Exception {\n Category category = new Category(\"/java\", \"Java\");\n category.setBlog(blog);\n category.setTags(\"java\");\n blogEntry.addCategory(category);\n blogEntry.setExcerpt(\"Excerpt - here is some text\");\n blogEntry.setBody(\"Body - here is some text\");\n blogEntry.setTags(\"junit, automated unit testing\");\n context.setMedia(ContentDecoratorContext.HTML_PAGE);\n decorator.decorate(context, blogEntry);\n\n StringBuffer tags = new StringBuffer();\n tags.append(\"<div class=\\\"tags\\\"><span>Technorati Tags : </span>\");\n tags.append(\"<a href=\\\"http://technorati.com/tag/automatedunittesting\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">automatedunittesting</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/java\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">java</a>, \");\n tags.append(\"<a href=\\\"http://technorati.com/tag/junit\\\" target=\\\"_blank\\\" rel=\\\"tag\\\">junit</a>\");\n tags.append(\"</div>\");\n\n assertEquals(\"Excerpt - here is some text\" + tags, blogEntry.getExcerpt());\n assertEquals(\"Body - here is some text\" + tags, blogEntry.getBody());\n }", "@Test\r\n public void testGetPaths() {\r\n System.out.println(\"getPaths\");\r\n XmlRoot instance = root;\r\n XmlTagMap expResult = null;\r\n XmlTagMap result = instance.getTagMap();\r\n assertNotEquals(expResult, result);\r\n\r\n expResult = new XmlTagMap();\r\n root.setTagMap(expResult);\r\n result = instance.getTagMap();\r\n assertEquals(expResult, result);\r\n\r\n }", "@Test\n public void Tags_27914_execute() throws Exception {\n VoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n // Navigating to accounts and creating a new account record with tag\n sugar().navbar.selectMenuItem(sugar().accounts, \"createAccount\");\n sugar().accounts.createDrawer.getEditField(\"name\").set(data.get(1).get(\"name\"));\n sugar().accounts.createDrawer.getEditField(\"tags\").set(data.get(1).get(\"tags\"));\n sugar().accounts.createDrawer.save();\n\n // Navigate to one account record\n sugar().accounts.listView.clickRecord(2);\n sugar().accounts.recordView.edit();\n // TODO: VOOD-1985\n VoodooControl tagField = new VoodooControl(\"input\", \"css\", \".fld_tag.edit input[type='text']\");\n VoodooControl tagOptionField = new VoodooControl(\"ul\", \"css\", \"#select2-drop .select2-results\");\n\n // Type in some tags value in the Tags field\n tagField.set(testName);\n VoodooUtils.waitForReady();\n // verify that the drop down will display what typed with \"(new tag)\" to let user know that it is a new tag in the system\n tagOptionField.assertElementContains(testName + \" (New Tag)\", true);\n\n // Type in a substring of existing tag\n tagField.set(data.get(0).get(\"tags\").substring(0, 1));\n VoodooUtils.waitForReady();\n // Verify that It will display tags in the system that include a substring of what was typed\n tagOptionField.assertElementContains(data.get(0).get(\"tags\"), true);\n tagOptionField.assertElementContains(data.get(1).get(\"tags\"), true);\n\n // Type in a existing tag\n tagField.set(data.get(1).get(\"tags\"));\n VoodooUtils.waitForReady();\n // Verify that It will display existing tags that are exact matches\n tagOptionField.assertElementContains(data.get(1).get(\"tags\"), true);\n\n VoodooUtils.voodoo.log.info(testName + \"complete.\");\n }", "@Test\n public void testValueGetter() {\n final List<ConfigDocument> docs = Arrays.asList(new ConfigDocument(DS_1), new ConfigDocument(DS_2), new ConfigDocument(DS_3), new ConfigDocument(RANDOM));\n final ConfigSearchResult<?> result = new ConfigSearchResult<>(docs);\n assertEquals(result.getValues(), Arrays.asList(DS_1, DS_2, DS_3, RANDOM));\n }", "int getTagNo();", "@Override\n public int getTag() {\n return this.tag;\n }", "@Test\n public void testAddNullAttribute() {\n Tag tag = new BaseTag(\"testtag\");\n String attributeName = \"testAttr\";\n tag.addAttribute(attributeName, null);\n assertNull(\"Wrong attribute value returned\", tag.getAttribute(attributeName));\n assertNotNull(\"No attribute map\", tag.getAttributes());\n assertEquals(\"Wrong attribute map size\", 0, tag.getAttributes().size());\n }", "@Test\n\tpublic void testGetResponseValues() throws Throwable {\n\t\tGetResponse testedObject = new GetResponse();\n\t\ttestedObject.setMainJob(\"mainJob22\");\n\t\tSonarAnalysisInfo sonar = new SonarAnalysisInfo();\n\t\ttestedObject.setSonar(sonar);\n\t\tList<TestAnalysis> functionalTest = new ArrayList<TestAnalysis>();\n\t\ttestedObject.setFunctionalTest(functionalTest);\n\t\ttestedObject.setDashboard(\"dashboard21\");\n\t\ttestedObject.setPipelineStatus(\"pipelineStatus\");\n\t\tList<Performance> performanceTest = new ArrayList<Performance>();\n\t\ttestedObject.setPerformanceTest(performanceTest);\n\t\t\n\t\tassertEquals(\"pipelineStatus\",testedObject.getPipelineStatus());\n\t\tassertEquals(performanceTest, testedObject.getPerformanceTest());\n\t\tassertEquals(\"mainJob22\",testedObject.getMainJob());\n\t\tassertEquals(\"dashboard21\",testedObject.getDashboard());\n\t\tassertEquals(sonar, testedObject.getSonar());\n\t\tassertEquals(functionalTest, testedObject.getFunctionalTest());\n\t}", "public static void enter_values(TagBasedEncoder<?> encoder) {\n encoder.addEntryT(bool_test_tag, bool_test_value);\n encoder.addEntryT(\"confuse???123123\", 1234123+\"WeirdTag ValueSwear\");\n encoder.addEntryT(str_test_tag, str_test_value);\n encoder.addEntryT(\"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(\"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(int_test_tag, int_test_value);\n encoder.addEntryT(\"WeirdTag confuse\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(\"confuse???\", 1234123+\"WeirdTagVa lueSwear\");\n encoder.addEntryT(weird_long_tag, weird_long_value);\n encoder.addEntryT(empty_tag_test_tag, empty_tag_test_value);\n encoder.addEntryT(empty_val_test_tag, empty_val_test_value);\n encoder.addEntryT(\"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(empty_strarr_test_tag, empty_strarr_test_value); //empty is not written into the system.\n encoder.addEntryT(strarr_test_tag, strarr_test_value);\n encoder.addEntryT(empty_intarr_test_tag, empty_intarr_test_value); //empty is not written into the system.\n encoder.addEntryT(intarr_test_tag, intarr_test_value);\n encoder.addEntryT(\"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(strarr2d_test_tag, strarr2d_test_value);\n encoder.addEntryT(\"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n }", "protected void initTag()\n {\n }", "UniqueTagList getTags();", "@Test\n\tpublic void testFindByTwoPossibleNamesWithSyntheticAccessor() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<Tag> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\tStringFieldInformer field = object.getText();\n\t\t\t\t\t\treturn Expressions.or(field.equalsTo(A), field\n\t\t\t\t\t\t\t\t.equalsTo(B));\n\t\t\t\t\t}\n\t\t\t\t}).getAll();\n\t\tassertThat(values, IsInstanceOf.instanceOf(List.class));\n\t\tList<Tag> valuesAscollection = (List<Tag>) values;\n\t\tassertThat(valuesAscollection.size(), Is.is(2));\n\t\t// Here, beware to elements insertion order, due to collection class\n\t\tassertThat(valuesAscollection.get(0), Is.is(a));\n\t\tassertThat(valuesAscollection.get(1), Is.is(b));\n\t}", "public Map getUserDefinedTags()\n {\n return m_Tags;\n }", "public String getStandardTag();", "public Object getTags() {\n return this.tags;\n }", "private String[] findTagDataFields () {\n List<String> fieldVals = Util.newList();\n for (Field f : getClass().getFields()) {\n if (f.getName().startsWith(\"TAG_\")) { // grab TAG field\n try {\n fieldVals.add((String)f.get(this));\n } catch (IllegalArgumentException e) { // ignore\n } catch (IllegalAccessException e) { // ignore\n }\n }\n }\n return fieldVals.toArray(new String[0]);\n }", "com.google.protobuf.ByteString\n getTagValueBytes();", "public String tag()\r\n {\r\n return this.tag;\r\n }", "public String getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "Attributes getAttributes();", "@Test\n public void getValuesTest() {\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //mins\n assertTrue(envelope[0] == getMinimum(envelope, 0));\n assertTrue(envelope[1] == getMinimum(envelope, 1));\n assertTrue(envelope[2] == getMinimum(envelope, 2));\n\n //maxs\n assertTrue(envelope[3] == getMaximum(envelope, 0));\n assertTrue(envelope[4] == getMaximum(envelope, 1));\n assertTrue(envelope[5] == getMaximum(envelope, 2));\n\n //spans\n assertTrue(4 == getSpan(envelope, 0));\n assertTrue(2 == getSpan(envelope, 1));\n assertTrue(0 == getSpan(envelope, 2));\n }", "public java.lang.String getTagValue() {\n java.lang.Object ref = tagValue_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n tagValue_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Test\n\tpublic void testThatIfDataIsNullGeoIpTaggerIsNullSafe() {\n\n\t\tfinal SettingValue settings = context.mock(SettingValue.class);\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(settings).getBooleanValue();\n\t\t\t\twill(returnValue(Boolean.TRUE));\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tSettingsReader settingsReader = new CachedSettingsReaderImpl() {\n\t\t\t@Override\n\t\t\tpublic SettingValue getSettingValue(final String path) {\n\t\t\t\tif (\"COMMERCE/SYSTEM/GEOIP/enable\".equals(path)) {\n\t\t\t\t\treturn \tsettings;\n\t\t\t\t}\n\t\t\t\t return null;\n\t\t\t}\n\t\t};\n\t\t\n\t\tlistener = new GeoIpTagger();\n\t\tlistener.setSettingsReader(settingsReader);\n\t\t\n\t\tgeoIpService = new GeoIpService() {\n\t\t\tpublic GeoIpLocation resolveIpAddress(final String ipAddress) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void setProvider(final GeoIpProvider provider) {\n\t\t\t\t// Does nothing.\n\t\t\t}\n\n\t\t};\n\n\t\tlistener.setGeoProviderService(geoIpService);\n\n\t\tcontext.checking(new Expectations() {\n\t\t\t{\n\t\t\t\tallowing(session).getCustomerTagSet();\n\t\t\t\twill(returnValue(tagSet));\n\n\t\t\t}\n\t\t});\n\n\t\tlistener.execute(session, requestFacade);\n\n\t\tassertNullTag(GeoIpTagger.GEOIP_ZIP_OR_POST_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_COUNTRY_CODE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_STATE_OR_PROVINCE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONNECTION_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_ROUTING_TYPE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CITY, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_FIRST_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_SECOND_LEVEL_DOMAIN, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_GMT_TIME_ZONE, tagSet);\n\t\tassertNullTag(GeoIpTagger.GEOIP_CONTINENT, tagSet);\n\n\n\t}", "private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }", "public int getTag() {\n return tag;\n }", "public static void enter_values(TupleTagBasedEncoder<?> encoder) {\n encoder.addEntryT(super_tag_1, bool_test_tag, bool_test_value);\n encoder.addEntryT(super_tag_1,\"confuse???123123\", 1234123+\"WeirdTag ValueSwear\");\n encoder.addEntryT(super_tag_2, str_test_tag, str_test_value);\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_1, int_test_tag, int_test_value);\n encoder.addEntryT(super_tag_4, \"WeirdTag confuse\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, \"confuse???\", 1234123+\"WeirdTagVa lueSwear\");\n encoder.addEntryT(super_tag_2, weird_long_tag, weird_long_value);\n encoder.addEntryT(super_tag_4, empty_tag_test_tag, empty_tag_test_value);\n encoder.addEntryT(super_tag_2, empty_val_test_tag, empty_val_test_value);\n encoder.addEntryT(super_tag_2, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_4, empty_strarr_test_tag, empty_strarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_2, strarr_test_tag, strarr_test_value);\n encoder.addEntryT(super_tag_2, empty_intarr_test_tag, empty_intarr_test_value); //empty is not written into the system.\n encoder.addEntryT(super_tag_4, intarr_test_tag, intarr_test_value);\n encoder.addEntryT(super_tag_3, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n encoder.addEntryT(super_tag_2, strarr2d_test_tag, strarr2d_test_value);\n encoder.addEntryT(super_tag_4, \"confuse???1231235\", 1234123+\"WeirdTa gValueSwear\");\n }", "@Test\n public void testValue() {\n System.out.println(\"value\");\n String[] expResults = {\"deleted\"};\n StatusType[] verbTypes = {StatusType.DELETED};\n for (int index1 = 0; index1 < verbTypes.length; index1++) {\n String result = verbTypes[index1].value();\n assertEquals(expResults[index1], result);\n }\n }", "public int getHasTag() {\n return hasTag_;\n }", "boolean hasTags();", "public int getTagNumber() {\n return tagNumber;\n }", "TemplateModel[] getValues();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "public Set<String> getTags(){return tags;}", "org.apache.xmlbeans.XmlString xgetTag();" ]
[ "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.5713937", "0.5689698", "0.5655474", "0.56151944", "0.5612779", "0.5611313", "0.55950236", "0.55890083", "0.55244714", "0.5516791", "0.55053484", "0.54878575", "0.54857165", "0.5466358", "0.54615533", "0.5457882", "0.5453846", "0.5446742", "0.54457045", "0.54457045", "0.5403648", "0.5402156", "0.53903246", "0.5385044", "0.53726333", "0.5363725", "0.53616506", "0.5355354", "0.53303576", "0.53197765", "0.531505", "0.5311937", "0.53115386", "0.53047204", "0.529948", "0.529948", "0.52892643", "0.5288014", "0.5285733", "0.5284461", "0.5273597", "0.5269504", "0.5259125", "0.52549773", "0.5249972", "0.52493745", "0.5247314", "0.52380025", "0.52370745", "0.52327317", "0.52304184", "0.52291137", "0.5226534", "0.5221921", "0.5214843", "0.5210528", "0.5210528", "0.52010584", "0.5198602", "0.5198302", "0.5193035", "0.5180741", "0.5179332", "0.5170998", "0.51686776", "0.5166902", "0.51582557", "0.5154553", "0.51544297", "0.5152035", "0.5152035", "0.5152035", "0.5152035", "0.5152035", "0.5152035", "0.5152035", "0.5152035", "0.51500934", "0.5149437" ]
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 container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
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 goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "private void goToLoginPage() {\n\n startActivity(new Intent(this,LoginActivity.class));\n finish();\n }", "public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "public void goLoginActivity()\n {\n Intent intent = new Intent(this, LoginActivity.class);\n this.startActivity(intent);\n }", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "protected void login() {\n\t\t\r\n\t}", "private void goToLogin()\n {\n Intent intent = new Intent(getActivity(), Login_Page.class);\n getActivity().startActivity(intent);\n }", "public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void navigateToLogin() {\n\n //The following object represents the action from sign in to edu.uw.tcss450.ui.register.\n RegisterFragmentDirections.ActionRegisterFragmentToSignInFragment directions =\n RegisterFragmentDirections.actionRegisterFragmentToSignInFragment();\n directions.setEmail(binding.registerEmail.getText().toString());\n directions.setPassword(binding.registerPassword.getText().toString());\n\n //Use the navigate method to perform the navigation.\n Navigation.findNavController(getView()).navigate(directions);\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "public void goToLoginPage(ActionEvent event) throws IOException{\n\t\t//this should return to the Login Page\n\t\tParent user_page = FXMLLoader.load(getClass().getResource(\"/view/LoginPage.fxml\"));\n\t\tScene userpage_scene = new Scene(user_page);\n\t\tStage app_stage = (Stage) ((Node) (event.getSource())).getScene().getWindow();\n\t\tapp_stage.setScene(userpage_scene);\n\t\tapp_stage.setTitle(\"Login Page\");\n\t\tapp_stage.show();\n\t}", "@Given(\"open dev login page\")\n public void openDevLoginPage() {\n open(variables.URL_Login);\n }", "@Override\n public void navigateToLogin() {\n startActivity(new Intent(this, LoginActivity.class));\n finish();\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "public abstract void navigateToLogin();", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Given(\"^User should logged in to URL$\")\n\tpublic void user_should_logged_in_to_URL() throws Throwable {\n\t\thomepage.clickloginifdisplayed();\n\t\twait.WaitForElement(loginpage.getLoginemail(), 60);\n\t\tloginpage.ValidLogin();\n\t}", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "protected Response login() {\n return login(\"\");\n }", "private void checkToLogin() {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivityForResult(intent, ConstantValue.LOG_IN_CODE);\n }", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "public LoginPageActions Navigate_LoginPage()\n\t{\n\t\t\n\t\tUIActions.fn_click(HomePageObjects.customerAccount);\n\t\treturn new LoginPageActions();\n\t}", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void returnToLoginActivity() {\n Intent returnToLogin = new Intent(this, Login.class);\n startActivity(returnToLogin);\n finish();\n }", "public void returnToLogin() {\n // Ako smo kliknuli na Login, kreiramo Intent za\n // prijelaz na Login aktivnost\n Intent i = new Intent(this, LoginActivity.class);\n // U slucaju povratka na Login zelimo izbrisati \"povijest\" navigiranja,\n // tako da nas \"Back\" gumb ne vrati prethodnu aktivnost\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Prelazimo na Login aktivnost\n startActivity(i);\n // Zavrsavamo trenutnu aktivnost i oslobadjamo resurse\n finish();\n }", "public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }", "public static void login() {\n\t\trender();\n\t}", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public final void navigateFromLogin() {\n SharedPrefsHelper sharedPrefsHelper2 = this.sharedPrefsHelper;\n if (sharedPrefsHelper2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"sharedPrefsHelper\");\n }\n String str = sharedPrefsHelper2.get(Constants_MVVM.FCM_REGISTERED_TOKEN, \"\");\n if (str.length() > 0) {\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n loginViewModel.registerFCMToken(this.username, this.password, str);\n }\n setResult(-1);\n finish();\n }", "public void loginPressed(View view) {\n startActivity(new Intent(this, Login.class));\n }", "public void returnToLogin(View view){\r\n startActivity(new Intent(SignUpActivity.this, LoginActivity.class));\r\n finish();\r\n }", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private void redirectLoginScreen() {\n Log.d(TAG, \"redirectLoginScreen: redirecting to login screen.\");\n Intent intent = new Intent(Register.this, LogIn.class);\n startActivity(intent);\n finish();\n }", "private void Login()\n {\n Intent loginIntent = new Intent (LoginActivity.this, VVPActivity.class);\n startActivity(loginIntent);\n finish();\n }", "public void goToLoginActivity(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public void login(View view)\n { \n String user= username.getText().toString();\n String pwd = password.getText().toString();\n \n //TODO: check the username and password list in the database and then fetch the profile based on the profileID\n ArrayList<String> columns = new ArrayList<String>();\n\t\tcolumns.add(\"userName\");\n\t\tcolumns.add(\"password\");\n ArrayList<ArrayList<Object>> data = db.getAllRowsAsArrays(\"user_accounts\",columns);\n boolean loginCheck = false;\n\t\tfor (int position=0; position < data.size(); position++)\n \t{\n \t\tArrayList<Object> row = data.get(position);\n \t\tif(user.equals(row.get(0).toString()) && pwd.equals(row.get(1).toString()))\n \t\t{\n \t\t\tloginCheck = true;\n \t\t\tbreak;\n \t\t}\n \t}\n\t\t\n if(loginCheck)\n {\n \t Toast.makeText(getApplicationContext(), \"Redirecting...\", \n\t Toast.LENGTH_SHORT).show();\n\t Intent i = new Intent(LoginView.this, PickPages.class);\n\t startActivity(i);\n\t }\t\n\t else{\n\t Toast.makeText(getApplicationContext(), \"Wrong Credentials\",\n\t Toast.LENGTH_SHORT).show();\n\t password.setText(\"\");\n\t //attempts.setBackgroundColor(Color.RED);\t\n\t //counter--;\n\t //attempts.setText(Integer.toString(counter));\n\t //if(counter==0){\n\t // login.setEnabled(false);\n\t //}\n\t }\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "@Override\n public void run(){\n Intent homeIntent = new Intent(MainActivity.this,login_page.class);//splashes to the login page.\n startActivity(homeIntent);\n finish();\n }", "public void login(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }", "public void backToLogin(MouseEvent mouseEvent) throws IOException {\n new PageLoader().load(\"Login\");\n }", "private static void getLoginPage() throws IOException {\n get(\"/login\", (request, response) -> {\n Map<String, Object> attributes = new HashMap<>();\n attributes.put(\"title\", \"Login\");\n\n return SessionModelAndView.create(request.session(), attributes, \"index.jade\");\n }, new JadeEngine());\n }", "@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "private void goLogin(){\n Intent intent = new Intent(Menu.this, MainActivity.class);\n startActivity(intent);\n }", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "public String redirectToLogin() {\r\n\t\treturn \"/login.xhtml?faces-redirect=true\";\r\n\t}", "public void loginLink(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }", "public HomePage clickOnLogin() {\n// Actions action = new Actions(driver);\n// action.moveToElement(login).build().perform();\n// closeAd.click();\n login.isDisplayed();\n login.click();\n return this;\n }", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "public void Login()throws Exception{\r\n if(eMailField.getText().equals(\"user\") && PasswordField.getText().equals(\"pass\")){\r\n displayMainMenu();\r\n }\r\n else{\r\n System.out.println(\"Username or Password Does not match\");\r\n }\r\n }", "protected String getLoginPage() {\r\n return loginPage;\r\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void login(ActionEvent event) throws IOException {\n\t\t//if user is admin, open admin screen\n\t\tif(username.getText().toLowerCase().equals(\"admin\")) {\n\t\t\t//open admin screen\n\t\t\tMain.changeScene(\"/view/admin.fxml\", \"Administrator Dashboard\");\t\t\t\n\t\t}\n\t\t//if user is blank, throw error\n\t\telse if(username.getText().isEmpty()){\n\t\t\tinvalidUserError.setVisible(true);\n\t\t}\n\t\t//otherwise make sure user exists and if they do set current user and change screen, if not throw error.\n\t\telse {\n\t\t\tfor(User user : UserState.getAllUsers()) {\n\t\t\t\tif(user.getUserName().toLowerCase().equals(username.getText().toLowerCase())) {\n\t\t\t\t\tUserState.setCurrentUser(user);\n\t\t\t\t\tMain.changeScene(\"/view/userhome.fxml\", \"User Home\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tinvalidUserError.setVisible(true);\n\t\t\tusername.setText(\"\");\n\t\t}\n\t}", "public void login(ActionEvent e) throws IOException {\r\n\t\t\r\n \tString username = loginuser.getText().trim();\r\n \t//if user is admin, change to userlist screen\r\n \tif (username.equals(\"admin\")) {\r\n \tPhotos.userlistscreen();\r\n \t} else {\r\n \t\tUser user = currentAdmin.findUser(username);\r\n \t\t//if user is found, log into that user and show the album view for that user specifically\r\n \t\tif (user!=null) {\r\n \t\t\tAlbumController.currentUser = (NonAdmin) user;\r\n \t\t\tCopyController.currentUser = (NonAdmin) user;\r\n \t\t\tMoveController.currentUser = (NonAdmin) user;\r\n \t\t\tPhotos.albumscreen(user);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n \t\t\talert.setTitle(\"Error\");\r\n \t\t\talert.setHeaderText(\"Invalid username\");\r\n \t\t\talert.setContentText(\"Please try again\");\r\n \t\t\talert.showAndWait();\r\n \t\t\tloginuser.setText(\"\");\r\n \t\t}\r\n \t}\r\n\t}", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void clickOnLoginLink() {\r\n\t\t\r\n\t\tSelenium.click(lnkLogIn());\r\n\t}", "@GetMapping(\"/login\")\n public String viewLoginPage() {\n\n return \"login/login\";\n }", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "public void onLoginClick(View view) {\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n }", "@When(\"I click on log in\")\n\tpublic void i_click_on_log_in() {\n\t\tlogger.info(\"Clicking on Sign in\");\n\t\thomepage.login.click();\n\t\tBrowserUtilities.waitFor(2);\n\n\t}", "public LoginPage openLoginPage() {\n\t\twebDriver.get(authorUrl);\n\t\tbobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOfElementLocated(By.id(\"login-box\")));\n\t\treturn this;\n\t}", "@Given(\"^user is on the login page$\")\n public void userIsOnTheLoginPage() throws Throwable {\n }", "public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void performLogin(View view) {\r\n // Do something in response to button\r\n\r\n Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://dev.m.gatech.edu/login/private?url=gtclicker://loggedin&sessionTransfer=window\"));\r\n startActivity(myIntent);\r\n }", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }" ]
[ "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.7132252", "0.71171415", "0.7110724", "0.71057504", "0.7085365", "0.7066085", "0.70596343", "0.70420253", "0.7012819", "0.70081466", "0.7005412", "0.69981444", "0.69957376", "0.69938797", "0.69834155", "0.69718987", "0.6962755", "0.6958157", "0.6948271", "0.6921559", "0.6882001", "0.68741477", "0.68641555", "0.6854874", "0.683522", "0.6829412", "0.6813184", "0.68110645", "0.6809584", "0.6796735", "0.67817485", "0.677318", "0.6756896", "0.67531294", "0.67497814", "0.67385536", "0.673473", "0.67224514", "0.67210513", "0.6709076", "0.67066246", "0.669884", "0.6698794", "0.66752964", "0.66744906", "0.66731584", "0.6649787", "0.66485006", "0.66468894", "0.6640994", "0.66379595", "0.66320884", "0.6626417", "0.6622278", "0.6621221", "0.6619499", "0.66167146", "0.6614136", "0.6607556", "0.6607519", "0.6602177", "0.66016996", "0.6599418", "0.6594261", "0.6591983", "0.6588229", "0.6583362", "0.6564501", "0.65604484", "0.6554211", "0.6553677", "0.65434414", "0.653764", "0.653706", "0.65364003", "0.65317744", "0.65270185", "0.6510724", "0.64984256", "0.6498217" ]
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(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "private void goToLoginPage() {\n\n startActivity(new Intent(this,LoginActivity.class));\n finish();\n }", "void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }", "private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}", "public void doLoginClod()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(\"/clodwar/index.xhtml\");\r\n }", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "private void launchLoginScreen() {\n NavGraphDirections.GotoLoginUrlGlobalAction action = gotoLoginUrlGlobalAction(authenticatorUtils.buildAuthUrl());\n\n navController.navigate(action);\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "public void navigateToLogin() {\n\n //The following object represents the action from sign in to edu.uw.tcss450.ui.register.\n RegisterFragmentDirections.ActionRegisterFragmentToSignInFragment directions =\n RegisterFragmentDirections.actionRegisterFragmentToSignInFragment();\n directions.setEmail(binding.registerEmail.getText().toString());\n directions.setPassword(binding.registerPassword.getText().toString());\n\n //Use the navigate method to perform the navigation.\n Navigation.findNavController(getView()).navigate(directions);\n }", "public abstract void navigateToLogin();", "@Override\n public void navigateToLogin() {\n startActivity(new Intent(this, LoginActivity.class));\n finish();\n }", "public void doLogin()\r\n {\r\n this.executeLoginAttemp(this.loginForForm, this.passwordForForm);\r\n String navigateResult = this.navigateAfterLoginAttemp();\r\n if (!navigateResult.equals(\"/\")) redirectSession(navigateResult);\r\n }", "public void switchToLogin() {\r\n\t\tlayout.show(this, \"loginPane\");\r\n\t\tloginPane.resetPassFields();\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "public void returnToLogin() {\n // Ako smo kliknuli na Login, kreiramo Intent za\n // prijelaz na Login aktivnost\n Intent i = new Intent(this, LoginActivity.class);\n // U slucaju povratka na Login zelimo izbrisati \"povijest\" navigiranja,\n // tako da nas \"Back\" gumb ne vrati prethodnu aktivnost\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Prelazimo na Login aktivnost\n startActivity(i);\n // Zavrsavamo trenutnu aktivnost i oslobadjamo resurse\n finish();\n }", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "public void goLoginActivity()\n {\n Intent intent = new Intent(this, LoginActivity.class);\n this.startActivity(intent);\n }", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "private void redirectLoginScreen() {\n Log.d(TAG, \"redirectLoginScreen: redirecting to login screen.\");\n Intent intent = new Intent(Register.this, LogIn.class);\n startActivity(intent);\n finish();\n }", "public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }", "public void goToLoginPage(ActionEvent event) throws IOException{\n\t\t//this should return to the Login Page\n\t\tParent user_page = FXMLLoader.load(getClass().getResource(\"/view/LoginPage.fxml\"));\n\t\tScene userpage_scene = new Scene(user_page);\n\t\tStage app_stage = (Stage) ((Node) (event.getSource())).getScene().getWindow();\n\t\tapp_stage.setScene(userpage_scene);\n\t\tapp_stage.setTitle(\"Login Page\");\n\t\tapp_stage.show();\n\t}", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "public void backToLogin(MouseEvent mouseEvent) throws IOException {\n new PageLoader().load(\"Login\");\n }", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "protected void login() {\n\t\t\r\n\t}", "private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}", "public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }", "public LoginPageActions Navigate_LoginPage()\n\t{\n\t\t\n\t\tUIActions.fn_click(HomePageObjects.customerAccount);\n\t\treturn new LoginPageActions();\n\t}", "private void returnToLoginActivity() {\n Intent returnToLogin = new Intent(this, Login.class);\n startActivity(returnToLogin);\n finish();\n }", "public void returnToLogin(View view){\r\n startActivity(new Intent(SignUpActivity.this, LoginActivity.class));\r\n finish();\r\n }", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "@Given(\"open dev login page\")\n public void openDevLoginPage() {\n open(variables.URL_Login);\n }", "public final void navigateFromLogin() {\n SharedPrefsHelper sharedPrefsHelper2 = this.sharedPrefsHelper;\n if (sharedPrefsHelper2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"sharedPrefsHelper\");\n }\n String str = sharedPrefsHelper2.get(Constants_MVVM.FCM_REGISTERED_TOKEN, \"\");\n if (str.length() > 0) {\n LoginViewModel loginViewModel = this.viewModel;\n if (loginViewModel == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"viewModel\");\n }\n loginViewModel.registerFCMToken(this.username, this.password, str);\n }\n setResult(-1);\n finish();\n }", "@Override\r\n\tpublic void clickOnLoginLink() {\r\n\t\t\r\n\t\tSelenium.click(lnkLogIn());\r\n\t}", "@RequestMapping(value = \"/newlogin\")\r\n\tpublic String dispatchTodefaultEntryPoint() {\r\n\t\tlogger.entry();\r\n\r\n\t\tsaveUserLoginInformation();\r\n\r\n\t\t// String defaultHome = \"redirect:/home\";\r\n\r\n\t\t// if (Utils.isUserInRole(getInternalUserRoles())) {\r\n\t\t//\r\n\t\t// } else {\r\n\t\t// throw new AccessDeniedException(\"User Role not found\");\r\n\t\t// }\r\n\r\n\t\tString homePage = \"forward:/\" + getHomePageByRole();\r\n\r\n\t\tlogger.exit();\r\n\r\n\t\treturn homePage;\r\n\t}", "public String redirectToLogin() {\r\n\t\treturn \"/login.xhtml?faces-redirect=true\";\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Given(\"^User should logged in to URL$\")\n\tpublic void user_should_logged_in_to_URL() throws Throwable {\n\t\thomepage.clickloginifdisplayed();\n\t\twait.WaitForElement(loginpage.getLoginemail(), 60);\n\t\tloginpage.ValidLogin();\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "private void checkToLogin() {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivityForResult(intent, ConstantValue.LOG_IN_CODE);\n }", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public HomePage clickOnLogin() {\n// Actions action = new Actions(driver);\n// action.moveToElement(login).build().perform();\n// closeAd.click();\n login.isDisplayed();\n login.click();\n return this;\n }", "public void login() {\n\t\tloggedIn = true;\n\t}", "public String redirectToLogin() {\r\n\t\treturn \"/login.jsf?faces-redirect=true\";\r\n\t}", "@Given(\"^user is on the login page$\")\n public void userIsOnTheLoginPage() throws Throwable {\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void clickOnLoginButton() {\n\t\tutil.clickOnElement(this.loginPageLocators.getLoginButtonElement());\n\t}", "private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "@Override\n public void run(){\n Intent homeIntent = new Intent(MainActivity.this,login_page.class);//splashes to the login page.\n startActivity(homeIntent);\n finish();\n }", "public void goToLoginActivity(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }", "@Override public void showSuccessfulLogin() {\n //Set the view state\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowSuccessfulLogin();\n\n getActivity().finish();\n //Ici qu'on fait la redirection pour la prochaine View\n Intent homepage = new Intent(getActivity(), DashboardActivity.class);\n startActivity(homepage);\n }", "public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}", "public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }", "public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }", "public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void clickLogin(){\n\t\tdriver.findElement(login).click();\n\t}", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "@Override\r\n\tpublic void login_admin() {\n\t\trender(\"admin/login.jsp\");\r\n\t}", "public void loginPressed(View view) {\n startActivity(new Intent(this, Login.class));\n }", "public void clickLogin(){\n\t\t\tdriver.findElement(login).click();\n\t}", "public void redirectToHomePageNotLoggedIn() {\r\n\t\t\r\n\t\twebAppDriver.get(baseUrl);//+\"?optimizely_x8236533790=0\"\r\n\t\t/*try {\r\n\t\t\twebAppDriver.verifyElementTextContains(By.id(linkLogoutId), \"Logout\", true);\r\n\t\t\tloginAction.clickOnLogOut();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// this is just to do logout if customer is auto logged in during\r\n\t\t\t// reservation\r\n\t\t}\r\n\t\t*/\r\n\t}", "public void loginToHomePage(String strUserName, String strPassword) {\r\n\t\t\r\n\t\t\r\n\t\tsetUserName(strUserName);\r\n\t\tsetPassword(strPassword);\r\n\t\tclickLogin();\r\n\t\t//return new LoginPage();\r\n\t\t\r\n\t}", "public void loginLink(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "public void showLogin() throws ServletException, IOException {\n\t\tString loginPath = \"frontend/login.jsp\";\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(loginPath);\n\t\tdispatcher.forward(request, response);\n\t}", "public static void login() {\n\t\trender();\n\t}", "public void LoginButton() {\n\t\t\r\n\t}", "protected String getLoginPage() {\r\n return loginPage;\r\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private static void getLoginPage() throws IOException {\n get(\"/login\", (request, response) -> {\n Map<String, Object> attributes = new HashMap<>();\n attributes.put(\"title\", \"Login\");\n\n return SessionModelAndView.create(request.session(), attributes, \"index.jade\");\n }, new JadeEngine());\n }", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "@GetMapping(\"/login\")\n public ModelAndView goToLogin(Model m) {\n \tModelAndView mav = new ModelAndView(\"home\");\n \treturn mav;\n }", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "@When(\"I click on log in\")\n\tpublic void i_click_on_log_in() {\n\t\tlogger.info(\"Clicking on Sign in\");\n\t\thomepage.login.click();\n\t\tBrowserUtilities.waitFor(2);\n\n\t}", "public void login(ActionEvent event) throws IOException {\n\t\t//if user is admin, open admin screen\n\t\tif(username.getText().toLowerCase().equals(\"admin\")) {\n\t\t\t//open admin screen\n\t\t\tMain.changeScene(\"/view/admin.fxml\", \"Administrator Dashboard\");\t\t\t\n\t\t}\n\t\t//if user is blank, throw error\n\t\telse if(username.getText().isEmpty()){\n\t\t\tinvalidUserError.setVisible(true);\n\t\t}\n\t\t//otherwise make sure user exists and if they do set current user and change screen, if not throw error.\n\t\telse {\n\t\t\tfor(User user : UserState.getAllUsers()) {\n\t\t\t\tif(user.getUserName().toLowerCase().equals(username.getText().toLowerCase())) {\n\t\t\t\t\tUserState.setCurrentUser(user);\n\t\t\t\t\tMain.changeScene(\"/view/userhome.fxml\", \"User Home\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tinvalidUserError.setVisible(true);\n\t\t\tusername.setText(\"\");\n\t\t}\n\t}", "public Resolution login() {\r\n\t\tif (loginUrl != null && loginUrl.indexOf(\"/action/login\") < 0) {\r\n\t\t\treturn new RedirectResolution(loginUrl, false);\r\n\t\t} else {\r\n\t\t\treturn new RedirectResolution(UserActionBean.class);\r\n\t\t}\r\n\t}" ]
[ "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.701684", "0.6988181", "0.69641215", "0.695614", "0.695212", "0.6951813", "0.6944488", "0.6929961", "0.69161713", "0.68954664", "0.6893231", "0.6884079", "0.68728775", "0.68676865", "0.68591154", "0.68424606", "0.6823709", "0.67980176", "0.6786676", "0.67616445", "0.67473406", "0.67194563", "0.671135", "0.6694678", "0.66841966", "0.667776", "0.6648093", "0.66451037", "0.6641137", "0.6612095", "0.6611627", "0.6586177", "0.6561853", "0.65573287", "0.6544307", "0.65181357", "0.6508901", "0.6490034", "0.64885", "0.6481445", "0.64735526", "0.64728", "0.64603966", "0.64526755", "0.6433487", "0.64282906", "0.642529", "0.6420711", "0.64146036", "0.6407499", "0.6403699", "0.64029545", "0.63937724", "0.63924015", "0.63914484", "0.63826114", "0.63817", "0.6379231", "0.6376533", "0.6376453", "0.6375981", "0.63699436", "0.63627464", "0.63616437", "0.635808", "0.6356149", "0.63446337", "0.63417566", "0.6336271", "0.6331264", "0.631937", "0.6307992", "0.6300712", "0.6300192", "0.6286004", "0.62838477", "0.6282602", "0.62719214", "0.62715507", "0.6271128" ]
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();", "public ViewResumePage clickonedit() throws Exception{\r\n\t\t\ttry {\r\n\t\t\t\telement = driver.findElement(edit);\r\n\t\t\t\tflag = element.isDisplayed() && element.isEnabled();\r\n\t\t\t\tAssert.assertTrue(flag, \"Edit button is not displayed\");\r\n\t\t\t\telement.click();\r\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new Exception(\"Edit Button NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t\t}\r\n\t\t\treturn new ViewResumePage(driver);\r\n\t\t\r\n\t}", "private void edit() {\n\n\t}", "@Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String editpage() {\n if (crudTableForm.crudMode != CommonConstants.EDIT_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.EDIT_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"edit.jsp\";\n }", "public EditTeamPage pressEditButton() {\n controls.getEditButton().click();\n return new EditTeamPage();\n }", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "private String prepareAndReturnEditPage(Model model) {\n this.populateDentistVisitFormModel(model);\n return \"editForm\";\n }", "public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}", "void gotoEditProfile(String fbId);", "@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}", "@RequestMapping(value=\"/ExternalUsers/EditProfile\", method = RequestMethod.GET)\n\t\tpublic String editProfile(ModelMap model) {\n\t\t\t// redirect to the editProfile.jsp\n\t\t\treturn \"/ExternalUsers/EditProfile\";\n\t\t\t\n\t\t}", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "public String loadMainEdit(){\r\n\t\treturn \"edit\";\r\n }", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "@RequestMapping(\"/showEdit\")\n\tpublic String viewEditPage(@RequestParam(\"locId\")int locId,ModelMap map){\n\t\tLocation loc=service.getLocationById(locId);\n\t\tmap.addAttribute(\"locObj\",loc);\n\t\treturn \"LocationDataEdit\";\n\t}", "public abstract void edit();", "@GetMapping(\"/edit\")\r\n public String editView() {\r\n return \"modify\";\r\n }", "public void clickEditButton(){\r\n\t\t\r\n\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-tab-panel-noborder') and not(contains(@class,'x-hide-display'))]//button[contains(@class,'icon-ov-edit')]\").click();\r\n\t\t\r\n\t}", "private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer customerEdit = CustomerDao.getCustomer(id);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/editCustomer.jsp\");\n dispatcher.forward(request, response);\n }", "@Override\n\tpublic ModelAndView edit(String id) {\n\t\treturn null;\n\t}", "@RequestMapping(\"/editRepPage\")\r\n\tpublic String callEditRep(){\r\n\t\treturn \"editRepPage\";\r\n\t}", "private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }", "public String edit() {\n return \"edit\";\n }", "@Override\r\n\tpublic void edit(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"../admin/xiaoshuolist.jsp\";\r\n\t\tthis.URL2=\"../novel/one.do\";\r\n\t\tthis.msg1=\"修改成功!\";\r\n\t\tthis.msg2=\"修改失败!\";\r\n\t\tsuper.edit(request, response);\r\n\t}", "@Test\n\tpublic void editBillTo(){\n\t\tQuotePage quotePage = homePage.goToDocumentsPage().switchToTab(DocumentTabs.QUOTES).setFilterByModifiedBy(\"All\").goToQuote(1);\n\n\t\tquotePage.clickBillTo();\n\t}", "public static void goToEditSongWindow()\n {\n EditSongWindow editSongWindow = new EditSongWindow();\n editSongWindow.setVisible(true);\n editSongWindow.setFatherWindow(actualWindow, false);\n }", "void actionEdit(int position);", "public void mmEditClick(ActionEvent event) throws Exception{\r\n displayEditProfile();\r\n }", "public void edit(RequestBean request) {\n\t\t\r\n\t}", "private String renderEditPage(Model model, VMDTO vmdto) {\n\t\tmodel.addAttribute(\"vmDto\", vmdto);\n\t\tmodel.addAttribute(\"availableProviders\", providerService.getAllProviders());\n\t\treturn \"vm/edit\";\n\t}", "public String getEditViewPath() {\n return \"games/edit\";\n }", "public String toEdit() {\n\t\t HttpServletRequest request = (HttpServletRequest) FacesContext\n\t\t\t\t\t.getCurrentInstance().getExternalContext().getRequest();\n\t\t\t String idf = request.getParameter(\"idf\");\n\t log.info(\"----------------------------IDF--------------\"+idf);\n\t\t\treturn \"paramEdit?faces-redirect=true&idf=\"+idf;\n\t\n\t}", "@FXML\n\tpublic void editClicked(ActionEvent e) {\n\t\tMain.getInstance().navigateToDialog(\n\t\t\t\tConstants.EditableCourseDataViewPath, course);\n\t}", "public void editOperation() {\n\t\t\r\n\t}", "void onEditClicked();", "@RequestMapping(\"/edit/{id}\")\n\tpublic String showEditEmployeePage(@PathVariable(name = \"id\") int id, Model model) {\n\t\tEmployees Employees = service.get(id);\n\t\tmodel.addAttribute(\"Employees\", Employees);\n\t\tList<Employees> Employeeslist = service.listAll();\n\t\tmodel.addAttribute(\"Employeeslist\", Employeeslist);\n\t\treturn \"Edit_Employees\";\n\t}", "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }", "public void editTheirProfile() {\n\t\t\n\t}", "protected void editClicked(View view){\n FragmentManager fm = getSupportFragmentManager();\n ЕditDialog editDialogFragment = new ЕditDialog(2);\n Bundle args = new Bundle();\n args.putInt(\"position\", this.position);\n args.putString(\"itemName\", this.itm.getItem(this.position).getName());\n args.putString(\"itemUrl\", this.itm.getItem(this.position).getUrl());\n editDialogFragment.setArguments(args);\n editDialogFragment.show(fm, \"edit_item\");\n }", "private void launchEditVolPage(View view, Volunteer thisGuy){\n final Intent launchEdit = new Intent(manageVolunteers.this,ManagerEditVolunteer.class);\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"thisGuy\", thisGuy);\n launchEdit.putExtra(\"bundle\", bundle);\n startActivity(launchEdit);\n }", "public String edit() {\r\n\t\tuserEdit = (User) users.getRowData();\r\n\t\treturn \"edit\";\r\n\t}", "public void clickOnEditButtonOnSavedSearches() {\r\n\t\tprint(\"Click on Edit under Saved Searches Section\");\r\n\t\tlocator = Locator.MyTrader.Saved_Search_Edit.value;\r\n\t\tclickOn(locator);\r\n\t\tsleep(2000);\r\n\t\tAssert.assertTrue(isElementPresent(Locator.MyTrader.Your_Saved_Searches.value));\r\n\t}", "public void clickOnEditButtonOnSavedListings() {\r\n\t\tprint(\"Click on Edit under Saved Listing Section\");\r\n\t\tlocator = Locator.MyTrader.Saved_Listing_Edit.value;\r\n\t\tclickOn(locator);\r\n\t\tAssert.assertTrue(isElementPresent(Locator.MyTrader.Your_Saved_Listing.value));\r\n\t}", "public void contactEdit() {\n Intent editIntent = new Intent(viewContacts.this, editContact.class); //start the intent to go back to edit contact\n editIntent.putExtra(\"MyID\", edit_intent);\n\n startActivity(editIntent); //start the activity\n\n\n\n }", "@Override\r\n\tpublic void one(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"/admin/xiaoshuoedit.jsp\";\r\n\t\tsuper.one(request, response);\r\n\t}", "@RequestMapping(\"/edit/{id}\")\r\n\tpublic ModelAndView editUser(@PathVariable int id,\r\n\t\t\t@ModelAttribute Employee employee) {\r\n\t\tSystem.out.println(\"------------- redirecting to emp edit page --------------\" + employee);\r\n\t\tEmployee employeeObject = dao.getEmployee(id);\r\n\t\treturn new ModelAndView(\"edit\", \"employee\", employeeObject);\r\n\t}", "protected abstract void editItem();", "@Override\n public void onClick(View view) {\n mRepo.setIsEditingCard(Boolean.TRUE);\n mRepo.setCurrentCardTitle(model.getTitle());\n\n Navigation.findNavController(requireView()).navigate(R.id.action_editDeckFragment_to_submitCardFragment);\n }", "public void openEditServicePage(final String serviceName) {\n selectOptionByValue(Page.SELECT_SERVICES_LIST, serviceName);\r\n clickLink(Page.BUTTON_EDIT);\r\n // Assert correct edit page\r\n assertServiceTitleExists(Page.TEXT_SERVICE_TITLE, \"Service: \", serviceName);\r\n }", "public void toggleEdit()\n {\n \tif (editMode == false) {\n \t\teditMode = true;\n \t} else {\n \t\teditMode = false;\n \t}\n }", "public void doEdit() throws SQLException, DataStoreException, Exception {\r\n\t\tif (_listForm != null) {\r\n\t\t\tif (_listForm.getDataStore() == _ds) {\r\n\t\t\t\tif (isDataModified()) {\r\n if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_MODIFIED)\r\n undoChanges();\r\n else if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW_MODIFIED || getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW)\r\n _ds.removeRow();\r\n\t\t\t\t}\r\n\t\t\t\t_ds.gotoRow(_listForm.getRowToEdit());\r\n\t\t\t\tsetVisible(true);\r\n\t\t\t\tgetPage().scrollToItem(getFullName() + \"scrollToMe\");\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t} else {\r\n\t\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\t\tint row = _listForm.getRowToEdit();\r\n\t\t\t\tif (listDs instanceof DataStore && _ds instanceof DataStore) {\r\n\t\t\t\t\tString table[] = _ds.getTableList(true);\r\n\t\t\t\t\tString where = null;\r\n\t\t\t\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\t\t\t\tString snippet = ((DataStore) listDs).buildCriteriaStringForRow(row, table[i]);\r\n\t\t\t\t\t\tif (snippet != null) {\r\n\t\t\t\t\t\t\tif (where == null)\r\n\t\t\t\t\t\t\t\twhere = snippet;\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\twhere += \" and \" + snippet;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdoDataStoreRetrieve(where);\r\n\t\t\t\t} else if (listDs instanceof BeanDataStore) {\r\n\t\t\t\t\tString crit = ((BeanDataStore) listDs).buildCriteriaStringForRow(row);\r\n\t\t\t\t\tdoDataStoreRetrieve(crit);\r\n\t\t\t\t}\r\n\t\t\t\t_ds.gotoFirst();\r\n\t\t\t\tlistDs.gotoRow(row);\r\n\t\t\t\t_listSelectedRow = listDs.getDataStoreRow(row, DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\tgetPage().scrollToItem(getFullName() + \"scrollToMe\");\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@FXML\n private void editSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"Edit DonorReceiver\");\n } else {\n EditPaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.EDIT);\n }\n }", "@RequestMapping(value = \"/edit/{id}\", method = RequestMethod.GET)\n public String editStudent(ModelMap view, @PathVariable int id) {\n Student student = studentService.findById(id);\n view.addAttribute(\"student\", student);\n view.addAttribute(\"updateurl\", updateurl);\n return(\"editstudent\");\n }", "public static void editButtonAction(ActionContext actionContext){\n Table dataTable = actionContext.getObject(\"dataTable\");\n Shell shell = actionContext.getObject(\"shell\");\n Thing store = actionContext.getObject(\"store\");\n \n TableItem[] items = dataTable.getSelection();\n if(items == null || items.length == 0){\n MessageBox box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n box.setText(\"警告\");\n box.setMessage(\"请先选择一条记录!\");\n box.open();\n return;\n }\n \n store.doAction(\"openEditForm\", actionContext, \"record\", items[0].getData());\n }", "public void onPressEdit() {\r\n Intent intent = new Intent(this, CreateEventActivity.class);\r\n intent.putExtra(CreateEventActivity.EXTRA_EDIT_EVENT_UID, event.uid);\r\n startActivity(intent);\r\n }", "private void editComic() {\n mainActivity.ISSUE_ID = comic.getComicID();\n\n //Load the edit fragment\n mainActivity.loadEditComicFragment();\n }", "public String editarRutina(Rutina tp) {\n\t\t//newRutina = ts;\n\t\tvEditing = true;\n\t\tvTitulo = \"EDITAR\";\n\t\treturn \"nueva-rutina?faces-redirect=true&id=\"+tp.getIdRutina();\n\t}", "public String btn_edit_action()\n {\n int n = this.getDataTableSemental().getRowCount();\n ArrayList<SementalDTO> selected = new ArrayList();\n for (int i = 0; i < n; i++) { //Obtener elementos seleccionados\n this.getDataTableSemental().setRowIndex(i);\n SementalDTO aux = (SementalDTO) this.\n getDataTableSemental().getRowData();\n if (aux.isSelected()) {\n selected.add(aux);\n }\n }\n if(selected == null || selected.size() == 0){\n //En caso de que no se seleccione ningun elemento\n MessageBean.setErrorMessageFromBundle(\"not_selected\", this.getMyLocale());\n return null;\n }\n else if(selected.size() == 1){ //En caso de que solo se seleccione un elemento\n \n getgermplasm$SementalSessionBean().setSementalDTO(selected.get(0));\n \n getgermplasm$SemenGatheringSessionBean().resetPagination();\n \n //Llamada al jsp encargado de la edicion de accessiones\n return \"edit\";\n \n }\n else{ //En caso de que sea seleccion multiple\n MessageBean.setErrorMessageFromBundle(\"not_yet\", this.getMyLocale());\n return null;\n }\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainActivity.this, EditDataActivity.class);\n startActivity(intent);\n\n }", "public String editEmploye(Employee emp){\n System.out.println(\"******* Edit employe ************\");\n System.out.println(emp.toString());\n employeeService.editEmployee(emp);\n sessionController.logInEmp();\n\n return \"/pages/childCareCenterDashboard.xhtml?faces-redirect=true\";\n }", "public void setEditDocumentationPage(org.semanticwb.model.WebPage value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swpres_editDocumentationPage, value.getSemanticObject());\r\n }else\r\n {\r\n removeEditDocumentationPage();\r\n }\r\n }", "@RequestMapping(\"edit\")\n\tpublic String edit(ModelMap model, HttpSession httpSession) {\n\t\tCustomer user = (Customer) httpSession.getAttribute(\"user\");\n\t\tmodel.addAttribute(\"user\", user);\n\t\treturn \"user/account/edit\";\n\t}", "public ActionLocation enterEditTeam(ModuleMapping mapping, HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\tString returnLabel = \"newTeamPage\";\n\t\tString type = (String) request.getParameter(\"type\");\n\t\tStaffVO currentStaff = (StaffVO) request.getSession().getAttribute(CommonName.CURRENT_STAFF_INFOR);\n\t\t// 获取其所有下级公司(包括本公司)\n\t\tString lowerOrgIds = currentStaff.getLowerCompanys(); // CompanyHelper.getInstance().getLowerCompany(currentStaff.getOrgId());\n\n\t\tif (type == null) {\n\t\t\ttype = \"new\";\n\t\t}\n\t\tIDBManager dbManager = null;\n\t\ttry {\n\t\t\tdbManager = DBManagerFactory.getDBManager();\n\t\t\tStaffDAO sdao = new StaffDAO(dbManager);\n\t\t\tTeamDAO dao = new TeamDAO(dbManager);\n\t\t\tif (!\"new\".equals(type)) {\n\t\t\t\t// 编辑type=\"edit\"\n\t\t\t\t// fetch\n\t\t\t\tString teamcode = request.getParameter(\"teamcode\");\n\t\t\t\tTeamVO eflowteamvo = dao.getTeamByTeamCode(teamcode);\n\t\t\t\trequest.setAttribute(\"eflowteam\", eflowteamvo);\n\n\t\t\t\t// for sub-team tree\n\t\t\t\trequest.setAttribute(eflowteamvo.getTeamName().trim() + eflowteamvo.getTeamCode().toString(), dao\n\t\t\t\t\t\t.getSubteamArr(teamcode));\n\t\t\t\tthis.treeNodes = \",\"+teamcode+\",\";//Init\n\t\t\t\tsetSubTeam(request, teamcode, dao);\n\t\t\t}\n\n\t\t\t// 获取所有Team列表\n\t\t\tCollection teamList = null;\n\t\t\t// if (\"new\".equals(type)){\n\t\t\t// TeamList = dao.getEflowTeamList();\n\t\t\t// TeamList = dao.getViewTeamList();\n\t\t\tif (CompanyHelper.getInstance().getEFlowCompany().equals(CompanyHelper.EFlow_AIA_CHINA)) {\n\t\t\t\tteamList = dao.getTeamList(null);\n\t\t\t} else {\n\t\t\t\tteamList = dao.getTeamList(lowerOrgIds);\n\t\t\t}\n\t\t\t// }\n\t\t\t/**\n\t\t\t * else{ //获取除当前被编辑Team以外的Team List String teamcode =\n\t\t\t * request.getParameter(\"teamcode\"); teamList =\n\t\t\t * dao.getEflowTeamListWithoutTeamCode(teamcode); }\n\t\t\t **/\n\t\t\trequest.setAttribute(\"teamList\", teamList);\n\n\t\t\t// 获取所有的EflowStaff列表\n\t\t\tCollection staffList = null;\n\t\t\t// staffList = sdao.getEflowAllStaff();\n\t\t\tstaffList = sdao.getStaffListByCompanyAndSubCompany(currentStaff.getLowerCompanys());\n\t\t\trequest.setAttribute(\"efusrlist\", staffList);\n\n\t\t\t// 获取所有PMA系统的teamleader\n\t\t\t// ApproverGroupMemberDAO approverdao = new\n\t\t\t// ApproverGroupMemberDAO(dbManager);\n\t\t\t// Collection teamLeaderList = approverdao.getMemberList(\"02\") ;\n\t\t\t// request.setAttribute(\"teamLeaderList\", teamLeaderList);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturnLabel = \"fail\";\n\t\t} finally {\n\t\t\tif (dbManager != null)\n\t\t\t\tdbManager.freeConnection();\n\t\t}\n\t\treturn mapping.findActionLocation(returnLabel);\n\t}", "@Override\n public void edit(User user) {\n }", "public void editBtnOnclick()\r\n\t{\r\n\t\tif(cardSet.getCards().size() != 0)\r\n\t\t\tMainRunner.getSceneSelector().switchToCardEditor();\r\n\t}", "@RequestMapping(value = \"edit/{id}\", method = RequestMethod.POST)\r\n\tpublic ModelAndView edit(@ModelAttribute Person editedPerson, @PathVariable int id) \r\n\t{\r\n\t\tpersonService.updatePerson(editedPerson);\r\n\t\treturn new ModelAndView(\"addEditConfirm\", \"person\", editedPerson);\r\n\t}", "public void switchToEditor() {\r\n\t\teditPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"editPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void clickOnEditButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary.ant-btn-circle\"), SHORTWAIT);\r\n\t}", "protected void setEditUrl(EditingPolicyHelper policyHelper, ObjectPropertyStatement ops) {\n RequestedAction action = new EditObjPropStmt(ops);\n if ( ! policyHelper.isAuthorizedAction(action) ) {\n return;\n }\n \n if (propertyUri.equals(VitroVocabulary.IND_MAIN_IMAGE)) {\n editUrl = ObjectPropertyTemplateModel.getImageUploadUrl(subjectUri, \"edit\");\n } else {\n ParamMap params = new ParamMap(\n \"subjectUri\", subjectUri,\n \"predicateUri\", propertyUri,\n \"objectUri\", objectUri);\n \n if ( deleteUrl.isEmpty() ) {\n params.put(\"deleteProhibited\", \"prohibited\");\n }\n \n params.putAll(UrlBuilder.getModelParams(vreq));\n \n editUrl = UrlBuilder.getUrl(EDIT_PATH, params);\n } \n }", "public void editShiftAction() {\n\t\tArrayList<SpatialObjectModel> locations = (ArrayList<SpatialObjectModel>) getSpatialObjects();\n\t\tthis.animalShiftEditPanel = new AnimalShiftEditPanel(animalsTab, locations);\n\t\tUtils.changePanelContent(this.animalsTab, this.animalShiftEditPanel);\n\t}", "public void setEdit(java.lang.Boolean edit) {\n this.edit = edit;\n }", "@Override\n public void onEditHat() {\n\n moveToFragment(0);\n }", "protected void doEdit (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doEdit method not implemented\");\n }", "public edit() {\n initComponents();\n }", "public String editRequiredElements(){\r\n \tthis.getLog().info(\"+ nextView: editM_Tabpage\");\r\n \treturn \"editM_Tabpage\";\r\n }", "public String paginaEditCliente(){\n\t\t\r\n\t\treturn \"editcli\";\r\n\t}", "@RequestMapping(\"/book/edit/{id}\")\n public String edit(@PathVariable Long id, Model model){\n model.addAttribute(\"book\", bookService.getBookById(id));\n return \"bookform\";\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(MainActivity.this, EditActivity.class);\n i.putExtra(\"currentShop\", currentShop);\n i.putExtra(\"position\", shopList.indexOf(currentShop));\n startActivityForResult(i, 2);\n }", "@Override\n public void onEditButtonClicked() {\n FragmentManager fm = getFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n currentExercise = workout.get(currentExerciseIndex);\n exerciseEditFragment.setCurrentExercise(currentExercise);\n Log.d(TAG, \"onEditButtonClicked: \" + currentExercise);\n transaction.replace(R.id.exerciseFragmentLayout, exerciseEditFragment);\n transaction.commit();\n }", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "private void performDirectEdit() {\n\t}", "@Override\n\t\t\t// On click function\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent(view.getContext(),\n\t\t\t\t\t\tEditProfileActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t}", "@RequestMapping(value = \"/editAccountPage\", method = RequestMethod.GET)\n\tpublic String jobseekerEditAccount(Model m, HttpServletRequest req) {\n\t\tHttpSession session = req.getSession();\n\t\tString username = (String) session.getAttribute(\"username\");\n\t\tSystem.out.println(\"session username = \" + username);\n\t\tString firstname = (String) session.getAttribute(\"firstname\");\n\t\tm.addAttribute(\"firstname\", firstname);\n\t\tm.addAttribute(\"state\", \"editAccount\");\n\t\tSystem.out.println(\"I'm jobseeker editAccount\");\n\t\treturn \"js.editAccount\";\n\t\t// return \"redirect:../home\";\n\t}", "EditAccountPage openEditAccountPageByLoginID(String loginID) throws NoSuchElementException;", "@RequestMapping(\"/item/{id}/update\")\n\tpublic ModelAndView showEditForm(@PathVariable(\"id\")Long id) {\n\t\tModelAndView mv = new ModelAndView(\"item-form\");\n\t\tmv.addObject(\"title\", \"Edit item!\"); //1st var is name we wanna call it\n\t\tmv.addObject(\"item\", itemDao.findById(id).orElse(null)); //2nd is data we use over and over again\n\t\t\t\t\n\t\t\t\treturn mv;\n\t\t\n\t}", "boolean isEdit();", "public void startEdit(String mode) {\n super.setEditMode(true);\n\n if (!isQuestionEditMode) {\n FacesContext.getCurrentInstance().getPartialViewContext().getRenderIds().add(\"tabsView\"); //update tabsView\n }\n\n setPositionEditMode(false);\n setLevelEditMode(false);\n\n setQuestionEditMode(false);\n setIndQuestionInEditMode(-1);\n\n if (\"position\".equals(mode)) {\n setPositionEditMode(true);\n }\n if (\"level\".equals(mode)) {\n setLevelEditMode(true);\n }\n if (\"question\".equals(mode)) {\n setQuestionEditMode(true);\n }\n }", "@RequestMapping(value = \"/broadband-user/system/seo/edit\")\n\tpublic String toSEOEdit(Model model) {\n\n\t\tmodel.addAttribute(\"panelheading\", \"SEO Edit\");\n\t\tmodel.addAttribute(\"action\", \"/broadband-user/system/seo/edit\");\n\n\t\tSEO seo = this.systemService.querySEO();\n\n\t\tmodel.addAttribute(\"seo\", seo);\n\n\t\treturn \"broadband-user/system/seo\";\n\t}", "@RequestMapping(value = { \"/edit-{loginID}-user\" }, method = RequestMethod.GET)\r\n public String edituser(@PathVariable String loginID, ModelMap model) {\r\n\r\n User user = service.findUserByLoginID(loginID);\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", true);\r\n return \"registration\";\r\n }", "public void editDoc(View view) {\n Intent intent = new Intent(this, EditActivity.class);\n intent.putExtra(\"text\", doc);\n startActivityForResult(intent, EDIT_DOC);//CTRL+ALT+C per canviar de 0 a una variable\n }", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showEditPage(null);\n }", "protected final void doEdit(Transaction trans, boolean startEdit) {\n\t\tenableForm(false);\n\t\tgetForm().getButton(EDIT).setEnabled(true);\n\n\t\tfillFormWith(trans);\n\n\t\tsetIsInEditMode(true);\n\t\tsetEditModeTransaction(trans);\n\n\t\tif (startEdit == true) {\n\t\t\tenableForm(true);\n\t\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\t\tgetForm().getButton(PENDING).requestFocus();\n\t\t}\n\t}", "@RequestMapping(value = \"/{id}/edit.html\", method = RequestMethod.GET)\n public String provideForm(@PathVariable(\"id\") Long id, Model model) \n throws Exception {\n FixtureModel fixture = fixtureService.findFixtureById(id); \n model.addAttribute(\"fixture\", fixture);\n return FORM_VIEW_NAME;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_edit) {\n Intent intent = new Intent(this, editProfile.class);\n startActivity(intent);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_edit) {\r\n if(FBFBM!=null){\r\n Intent intent = new Intent(this, FBFEditActivity.class);\r\n intent.putExtra(\"FBFBM\", FBFBM);\r\n intent.putExtra(\"owners_db\", mOwnersDB);\r\n intent.putExtra(\"parcel_map\", mParcelMap);\r\n startActivity(intent);\r\n }\r\n return true;\r\n } \r\n return super.onOptionsItemSelected(item);\r\n }", "public static void doEdit ( RunData data )\n\t{\n\t\tParameterParser params = data.getParameters ();\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tMap current_stack_frame = pushOnStack(state);\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tString id = NULL_STRING;\n\t\tid = params.getString (\"id\");\n\t\tif(id == null || id.length() == 0)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile2\"));\n\t\t\treturn;\n\t\t}\n\n\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ID, id);\n\n\t\tString collectionId = (String) params.getString(\"collectionId\");\n\t\tif(collectionId == null)\n\t\t{\n\t\t\tcollectionId = ContentHostingService.getSiteCollection(ToolManager.getCurrentPlacement().getContext());\n\t\t\tstate.setAttribute(STATE_HOME_COLLECTION_ID, collectionId);\n\t\t}\n\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_COLLECTION_ID, collectionId);\n\n\t\tEditItem item = getEditItem(id, collectionId, data);\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// got resource and sucessfully populated item with values\n\t\t\t// state.setAttribute (STATE_MODE, MODE_EDIT);\n\t\t\tstate.setAttribute(ResourcesAction.STATE_RESOURCES_HELPER_MODE, ResourcesAction.MODE_ATTACHMENT_EDIT_ITEM_INIT);\n\t\t\tstate.setAttribute(STATE_EDIT_ALERTS, new HashSet());\n\t\t\tcurrent_stack_frame.put(STATE_STACK_EDIT_ITEM, item);\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpopFromStack(state);\n\t\t}\n\n\t}" ]
[ "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.6322895", "0.6304815", "0.62782115", "0.62743384", "0.6235404", "0.6226946", "0.62203455", "0.62202805", "0.6187304", "0.6180001", "0.61785394", "0.6162571", "0.61444724", "0.613333", "0.61284757", "0.6127396", "0.6125183", "0.61194205", "0.6119307", "0.60598254", "0.6000091", "0.5987943", "0.5981002", "0.5979411", "0.597608", "0.59486055", "0.593555", "0.5928501", "0.5911264", "0.5909278", "0.5905933", "0.58957875", "0.5887243", "0.58816206", "0.5870932", "0.585796", "0.5857814", "0.58508795", "0.5843641", "0.58211714", "0.58159184", "0.57994354", "0.57970476", "0.5793112", "0.5777276", "0.5774826", "0.576559", "0.57614315", "0.5749581", "0.5747039", "0.5741232", "0.57400876", "0.57325786", "0.57277554", "0.572774", "0.5723093", "0.57224876", "0.5721188", "0.57053906", "0.57024014", "0.5701867", "0.56899196", "0.56852967", "0.56781864", "0.5677495", "0.5676355", "0.5675173", "0.56741107", "0.5668784", "0.566842", "0.5666083", "0.5661729", "0.5658942", "0.56588066", "0.5655283", "0.5653564", "0.56535053", "0.56311417", "0.5621833", "0.56193906" ]
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: */ }", "public String getWmoId() {\n String wmoID = \"\";\n if (!(stnm == GempakConstants.IMISSD)) {\n wmoID = String.valueOf(stnm / 10);\n }\n return wmoID;\n }", "private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}", "public int getIden() {\n return iden;\n }", "public String getMetaversalID();", "@Override\n\tpublic int getIdNguoiDong() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiDong();\n\t}", "public void setKinkenriyou01(Long kinkenriyou01) {\r\n this.kinkenriyou01 = kinkenriyou01;\r\n }", "public int getDwellingID();", "public void setKinkenriyou09(Long kinkenriyou09) {\r\n this.kinkenriyou09 = kinkenriyou09;\r\n }", "public void setIDINTERNODC(int value) {\n this.idinternodc = value;\n }", "@Override\n\tpublic int getKiemDemVienId() {\n\t\treturn _keHoachKiemDemNuoc.getKiemDemVienId();\n\t}", "String getBusi_id();", "@Override\r\n\tpublic int getID() {\n\t\treturn jID()*100+ID();\r\n\t}", "public Long getKinkenriyou09() {\r\n return kinkenriyou09;\r\n }", "public void obtenerID();", "public void setIden(int iden) {\n this.iden = iden;\n }", "int getSnId();", "int getSnId();", "int getSnId();", "int getSnId();", "public void setKinkenriyou04(Long kinkenriyou04) {\r\n this.kinkenriyou04 = kinkenriyou04;\r\n }", "public void setKinkenriyou11(Long kinkenriyou11) {\r\n this.kinkenriyou11 = kinkenriyou11;\r\n }", "public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "private long getIDnumber() {\n\t\treturn IDnumber;\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn _keHoachKiemDemNuoc.getId();\n\t}", "public Long getKinkenriyou04() {\r\n return kinkenriyou04;\r\n }", "public void setLichChiTietId(long lichChiTietId);", "private String getIdioma()\n throws MareException\n {\n\t\tLong idioma = UtilidadesSession.getIdioma(this);\n\t\treturn idioma.toString();\n }", "public String getIdKlinik() {\n return idKlinik;\r\n }", "public Long getKinkenriyou11() {\r\n return kinkenriyou11;\r\n }", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }", "public int getMida() {\r\n\t\treturn mida;\r\n\t}", "public int mo15797hn() {\n return this.f3883JI;\n }", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "java.lang.String getID();", "public static int offset_moteId() {\n return (0 / 8);\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "public int getLBR_NotaFiscal_ID();", "public void setKinkenriyou06(Long kinkenriyou06) {\r\n this.kinkenriyou06 = kinkenriyou06;\r\n }", "@Override\n\tpublic long getPhieumuonId() {\n\t\treturn _phieugiahan.getPhieumuonId();\n\t}", "public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }", "public void setKinkenriyou08(Long kinkenriyou08) {\r\n this.kinkenriyou08 = kinkenriyou08;\r\n }", "public void setKinkenriyou05(Long kinkenriyou05) {\r\n this.kinkenriyou05 = kinkenriyou05;\r\n }", "public Long getKinkenriyou01() {\r\n return kinkenriyou01;\r\n }", "@Override\r\n\tpublic String getPID() {\n\t\treturn \"NYXQYZ\"+getID();\r\n\t}", "public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }", "private static void idProblem() {\n\t\tsetSql(\"select movieID, Title from Movie\");\t\t// SQL Abfrage für MovieID und Title eines Films speichern\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und im ResultSet speichern\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" ID | Film\");\t\t\t\t// 3 Zeilen Ausgabe: Tabellenkopf\n\t\tSystem.out.println(\"-----------------------------------------------\");\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t/*\n\t\t\t * Aufbau des ResultSet s \"rs\":\n\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t * movieID | TITLE\n\t\t\t * (1) (2) \n\t\t\t */\n\t\t\twhile(rs.next()) {\t\t\t\t\t\t\t\t\t\t\t\t// Solange es Daten im Resultset gibt, \n\t\t\t\tSystem.out.println(rs.getString(1)+\" | \"+rs.getString(2)); \t// gib Zeilenweise Spalte 1 und 2 aus\n\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String kursIndonesia(double nominal){\n Locale localeID = new Locale(\"in\",\"ID\");\n NumberFormat formatRupiah = NumberFormat.getCurrencyInstance(localeID);\n String idnNominal = formatRupiah.format(nominal);\n return idnNominal;\n\n\n }", "public void setKinkenriyou10(Long kinkenriyou10) {\r\n this.kinkenriyou10 = kinkenriyou10;\r\n }", "public abstract java.lang.Integer getEspe_id();", "public void fillDaftar(MakhlukHidup n);", "@Override\n public int getID() {\n return 7;\n }", "@Override\n\tpublic long getId() {\n\t\treturn _phieugiahan.getId();\n\t}", "public String get_integer_part();", "private String bekommeId(String matrikelnummerClient) throws SQLException {\n\t\tquery = \"SELECT `Id` FROM `student` WHERE `matrikelnummer` = \\\"\" + matrikelnummerClient + \"\\\"\";\n\t\tstmt = connec.createStatement();\n\t\trs = stmt.executeQuery(query); //Ergebnis der Abfrage im ResultSet gespeichert: Hier die gewünschte Id\n\t\tif(rs.next())\t\t//Ist die Anfrage erfolgreich gewesen?\n\t\t{\n\t\t\treturn rs.getString(\"Id\");\n\t\t}\n\t\telse return \"kein Student mit der Matrikelnummer gefunden\";\n\t}", "int getNidFromSNOMED(String sctid);", "private String addIDsFilmGenre(List<FilmGenre> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "public Long getKinkenriyou05() {\r\n return kinkenriyou05;\r\n }", "private String getUnidades(String numero) {// 1 - 9\r\n //si tuviera algun 0 antes se lo quita -> 09 = 9 o 009=9\r\n String num = numero.substring(numero.length() - 1);\r\n return UNIDADES[Integer.parseInt(num)];\r\n }", "public void setKinkenriyou03(Long kinkenriyou03) {\r\n this.kinkenriyou03 = kinkenriyou03;\r\n }", "public void setIdentificacion(String identificacion)\r\n/* 128: */ {\r\n/* 129:233 */ this.identificacion = identificacion;\r\n/* 130: */ }", "int getWhid();", "public int getJP_BankData_ID();", "public void setKinkenriyou29(Long kinkenriyou29) {\r\n this.kinkenriyou29 = kinkenriyou29;\r\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9785x());\n }", "public String getString_entries_id() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,11)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_entries_id(i) == (char)0) break;\n carr[i] = (char)getElement_entries_id(i);\n }\n return new String(carr,0,i);\n }", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public Long getKinkenriyou03() {\r\n return kinkenriyou03;\r\n }", "public interface IDs {\n\n static final String SERIES_STANDARD_ID = \"c7fb8441-d5db-4113-8af0-e4ba0c3f51fd\";\n static final String EPISODE_STANDARD_ID = \"a99a8588-93df-4811-8403-fe22c70fa00a\";\n static final String FILE_STANDARD_ID = \"c5919cbf-fbf3-4250-96e6-3fefae51ffc5\";\n static final String RECORDING_STANDARD_ID = \"4a40811d-c067-467f-8ff6-89f37eddb933\";\n static final String ZAP2IT_STANDARD_ID = \"545c4b00-5409-4d92-9cda-59a44f0ec7a9\";\n}", "public void setIdDeMonje(long newIdDeMonje) {\r\n this.idDeMonje = newIdDeMonje;\r\n }", "@Test\n\tpublic void testMID() throws Exception {\n\t\ttest.setMID(9000000001L);\n\t\tAssert.assertEquals(9000000001L, test.getMID());\n\t}", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static long getID() {\n int localizador = 0;\n Long min = 1000000000L;\n Long max = 9999999999L;\n\n do {\n localizador = (int) Math.floor(Math.random() * (max - min + 1) + min);\n } while (Integer.toString(localizador).length() != 10);\n return localizador;\n }", "public Long getKinkenriyou23() {\r\n return kinkenriyou23;\r\n }", "int generarNumeroNota();", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "public void setKinkenriyou28(Long kinkenriyou28) {\r\n this.kinkenriyou28 = kinkenriyou28;\r\n }", "@Override\n\tpublic int getIdNguoiXuatBan() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiXuatBan();\n\t}", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "long getUnknown12();", "public int mo34973b() {\n return 48;\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "public Integer getZahlungsmittelId() {\n return zahlungsmittelId;\n }", "public int getMarcaId(String denumire) {\n c = db.rawQuery(\"select id from marci where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "public int getIDINTERNODC() {\n return idinternodc;\n }", "public String nextAvalibleID()\r\n\t{\r\n\t\t//creates a blank string as all Id's have to be 3 digits and if it was an itger it would remove the leading 0's\r\n\t\tString id = \"\";\r\n\t\t//If the pointer is 0 then the id needs to be 001\r\n\t\tif(nextPatientLocation == 0)\r\n\t\t{\r\n\t\t\tid = \"001\";\r\n\t\t}\r\n\t\t//otherwise it is the existing length + howver many 0's needed to make it 3 digits + the pointer data + 1 to make the first one not overlap any leaing id's\r\n\t\telse if(nextPatientLocation < 10)\r\n\t\t{\r\n\t\t\tid = \"00\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 100)\r\n\t\t{\r\n\t\t\tid = \"0\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\telse if(nextPatientLocation < 999)\r\n\t\t{\r\n\t\t\tid = \"\"+(nextPatientLocation+1);\r\n\t\t}\r\n\t\treturn id;//Id is returned\r\n\t}", "@Override\n\tpublic int getIdNguoiTao() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiTao();\n\t}", "int toIdentifier() {\n return 1000 * y + x;\n }", "int getIdNum();", "public void leerPacientes (int id_nutricionista);", "public String code() {\n\t\treturn (\"ID\"+this.hashCode()).replace(\"-\", \"M\");\n\t}", "public static String getIdBeneficio(){\n //La Clase Math tiene varios metodos que te ayudaran\n //Escoger numero aleatorio entre 100000 y 1\n int idrandom1 = (int) (Math.random() * 1000000 + 1);\n\n String idrandom = Integer.toString(idrandom1);\n\n return idrandom;\n }", "public void setKinkenriyou23(Long kinkenriyou23) {\r\n this.kinkenriyou23 = kinkenriyou23;\r\n }", "public void setKinkenriyou12(Long kinkenriyou12) {\r\n this.kinkenriyou12 = kinkenriyou12;\r\n }" ]
[ "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.5521267", "0.55128556", "0.5507514", "0.5507514", "0.5507514", "0.5507514", "0.5498107", "0.5496521", "0.5476063", "0.5472687", "0.5467444", "0.5467225", "0.5454318", "0.54470575", "0.543812", "0.54320407", "0.5427795", "0.54245263", "0.54225916", "0.54115635", "0.54093075", "0.54080486", "0.5404944", "0.5402505", "0.53984874", "0.5397108", "0.53943014", "0.5393939", "0.5393576", "0.5392041", "0.53869", "0.53801477", "0.5376135", "0.5364348", "0.5362572", "0.5348918", "0.53487796", "0.5343998", "0.5339506", "0.53350645", "0.5332933", "0.53237134", "0.53231746", "0.5313361", "0.5312893", "0.5312319", "0.5309164", "0.5304461", "0.5302017", "0.5295141", "0.52942187", "0.52895665", "0.5289501", "0.5286879", "0.5285557", "0.5282831", "0.5280106", "0.5278987", "0.5278031", "0.5277062", "0.5271714", "0.5271394", "0.5270125", "0.5268668", "0.5268183", "0.5267286", "0.52656543", "0.52628934", "0.5261553", "0.52603716", "0.5259229", "0.52568024", "0.52561814", "0.52426726", "0.52424586", "0.52359456", "0.5233672", "0.5230363", "0.5229403", "0.5229295", "0.52280325" ]
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) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public Farbe letztesKamel();", "int getMindestvertragslaufzeit();", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "private void auswahlFreundVeraendern() throws Exception {\n System.out.println(\"Bitte Namen oder Vornamen eingeben und dann RETURN eingeben\");\n\n Scanner input = new Scanner(System.in);\n String eingabe = input.nextLine();\n\n Freund foundFriend = einenFreundSuchen(eingabe); // sollte freund returnen\n if (foundFriend == null) {\n System.out.println(eingabe + \" wurde nicht gefunden.\");\n auswahlAnzeigen();\n }\n\n System.out.println(\"Wir haben diesen Freund gefunden: \" + foundFriend.getName());\n System.out.println(\"Moechtest du diesen Freund veraendern?\");\n System.out.println(\"<1> Ja\");\n System.out.println(\"<2> Nein\");\n\n if (input.hasNextInt()) {\n String auswahl = input.next();\n switch (auswahl) {\n case \"1\": {\n bearbeiten(foundFriend);\n break;\n }\n case \"2\": {\n auswahlAnzeigen();\n break;\n }\n }\n }\n\n auswahlAnzeigen();\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public int feldNummer(Farbe farbe);", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void setzePunkteanzeigeRechts( int neuerPunktestand ) \n {\n anzeige.punkteRechtsSetzen( neuerPunktestand );\n }", "public Kreditkarte(String kartentyp, int kKnummer, int ablaufdatum, int kPN,Kunde kunde) {\n\t\tsuper(kunde);\n\t\tthis.kartentyp = kartentyp;\n\t\tkknummer = kKnummer;\n\t\tthis.ablaufdatum = ablaufdatum;\n\t\tkpn = kPN;\n\t}", "public Knuckels(){\n super(\"Knuckels\",10);\n }", "public int getArtikelAnzahl(){\n return key;\n }", "public void einlesenUndInitialisieren() {\n\t\t\n\t\t// Willkommenstext\n\t\tSystem.out.println(\"Willkommen zur Caesar-Kodierung!\\nMoechten Sie einen Text chiffrieren oder dechiffrieren?\");\n\t\tboolean chiffrieren = getModus();\n\t\t\n\t\t// Schluessel-Eingabe\n\t\tif(chiffrieren) {\n\t\t\tSystem.out.println(\"Bitte geben sie jetzt den Schluessel ein, der zum Chiffrieren verwendet werden soll. Entscheiden Sie sich\\ndabei fuer eine Ganzzahl zwischen 1 und 25.\\nMoechten sie einen zufaelligen Schluessel, geben sie bitte '88' ein.\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Wenn sie den fuer die Dechiffrierung benoetigten Schluessel kennen, geben sie ihn jetzt bitte ein. Sollten\\nSie ihn nicht kennen, geben sie bitte die '88' ein.\");\n\t\t}\n\t\tbyte schluessel = getSchluessel();\n\t\t\n\t\t// Als naechstes die Datei-Namen\n\t\tboolean erfolgreichEingelesen = false;\n\t\tdo {\n\t\t\n\t\t\tString[] namen = getDateiNamen();\n\t\t\tString eingabeDatei = namen[0];\n\t\t\tString ausgabeDatei = namen[1];\n\t\t\n\t\t\t// Nun haben wir alles und leiten die Initialisierung ein\n\t\t\n\t\t\tthis.streamKoordinierung = new StreamKoordinierung(chiffrieren, schluessel, eingabeDatei, ausgabeDatei );\n\t\t\terfolgreichEingelesen = this.streamKoordinierung.liesStarttextAusDatei();\n\t\t\tif(!erfolgreichEingelesen) {\n\t\t\t\tSystem.out.println(\"\\n\\nBeim Lesen der Datei trat ein Fehler auf, bitte geben sie erneut die DateiNamen an!\\n\");\n\t\t\t}\n\t\t}\n\t\twhile(!erfolgreichEingelesen);\n\t\t\n\t\tSystem.out.println(\"\\nDie Eingabe lief erfolgreich ab, wir beginnen nun mit der De-/Chiffrierung.\");\n\t}", "public void setKoernerImMaul(int n)\n {\n koernerImMaul=n;\n }", "private void umstellenAuf(Modul m) {\r\n\t\tModul mTemp;\r\n\t\tint last = 0;\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tmTemp = ladung.get(hTemp);\r\n\t\t\tif (hTemp.passtModul(m)) {\r\n\t\t\t\tlast += m.getGewicht();\r\n\t\t\t} else {\r\n\t\t\t\tlast += mTemp.getGewicht();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (last > this.raumsonde.getMaxNutzlast()) {\r\n\t\t\treturn; //Nichts wurde veraendert.\r\n\t\t}\r\n\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tmTemp = ladung.get(hTemp);\r\n\t\t\tif (hTemp.passtModul(m)) {\r\n\t\t\t\tthis.aktuelleLast -= mTemp.getGewicht();\r\n\t\t\t\tthis.aktuelleLast += m.getGewicht();\r\n\t\t\t\tladung.put(hTemp, m.klonen());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "String getVorlesungKennung();", "private void neuAnlegen() throws Exception {\n Scanner eingabe = new Scanner(System.in);\n System.out.print(\"Vorname eingeben: \");\n String vorname = eingabe.next();\n System.out.print(\"Nachname eingeben: \");\n String nachname = eingabe.next();\n System.out.print(\"Geburtstag eingeben: \");\n String geburtstag = eingabe.next();\n System.out.print(\"Handy Nummer eingeben: \");\n String handy = eingabe.next();\n System.out.print(\"Telefon Nummer eingeben: \");\n String telefon = eingabe.next();\n System.out.print(\"Adresse eingeben: \");\n String adresse = eingabe.next();\n String schluessel = UUID.randomUUID().toString();\n\n // Erstellung einer neuen Instanz der Klasse Freund\n Freund f1 = new Freund(vorname, nachname, geburtstag, telefon, handy, adresse, schluessel);\n\n speichern(f1);\n\n System.out.println(\"Der Freund \" + vorname + \" \" + nachname + \" wurde in der Kartei angelegt.\");\n\n auswahlAnzeigen();\n }", "public void bucheZugang(int artikelNr, int menge){\n int stelle = bestandOperationen(artikelNr, menge);\n getArtikel(stelle).bucheZugang(menge);\n }", "int getNombreLignesPlateau();", "public void zugInWerkstatt() {\n werkstatt++;\n }", "public RuimteFiguur(String kleur) {\n this.kleur = kleur;\n }", "@Override\n\tpublic void aktualisiern(int drehzahl) {\n\t\tif(drehzahl >6321)\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl zu groß!! Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl im richtigen Bereich. Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t}", "java.lang.String getNume();", "java.lang.String getNume();", "@Override\n\tpublic int getNam() {\n\t\treturn _keHoachKiemDemNuoc.getNam();\n\t}", "double kalkuliereZeit();", "public HashMap<Integer, Kunde> speichereAlleKunden()\n {\n\n return kundenSpeichern(new File(\"C:\\\\Users\\\\xcg5453\\\\Documents\\\\Java\\\\Bank\\\\KundenListe.txt\"));\n\n }", "public Kendaraan(String platNomor) throws IllegalArgumentException{\n System.out.println(platNomor.length());\n waktu = new Waktu();\n if(platNomor.length()>=4 && platNomor.length()<=8){\n this.platNomor = platNomor;\n }\n waktu.setJamMasuk(Instant.now());\n tarif = new Tarif();\n transaksi = new Transaksi(platNomor);\n }", "public static String danU7(int num){\r\n\t\t\r\n\t\tString [] dani={\"Ponedjeljak\",\"Utorak\",\"Srijeda\",\"Cetvrtak\",\"Petak\", \"Subota\", \"Nedjelja\"}; \r\n\t\t\r\n\t\treturn dani[num];\r\n\t}", "private void auswahlAuswerten() throws Exception {\n Scanner input = new Scanner(System.in);\n int auswahl = 0;\n if (input.hasNextInt()) {\n auswahl = input.nextInt(); // was wenn String\n } else {\n System.out.println(\"Please use a number between 1 and 7. You used: \" + input.next());\n auswahlAuswerten();\n }\n input.nextLine(); // Zeilenumbruch einlesen\n\n switch (auswahl) {\n case 1: {\n neuAnlegen();\n break;\n }\n case 2: {\n freundDetailsAnzeigen();\n break;\n }\n case 3: {\n auswahlFreundVeraendern();\n break;\n }\n case 4: {\n loeschen();\n break;\n }\n case 5: {\n bestandAbfragen();\n break;\n }\n case 6: {\n alleAnzeigen();\n break;\n }\n case 7: {\n System.exit(0);\n break;\n }\n default:\n System.out.println(\"Falsche Eingabe\");\n auswahlAnzeigen();\n }\n }", "public void setGegenkontoNummer(String kontonummer) throws RemoteException;", "public int getArtikelNummer() {\r\n\t\treturn artikelNummer;\r\n\t}", "public void setDificultat(int dificultat) {\r\n\t\tthis.dificultat = dificultat;\r\n\t}", "public Rechnung warenkorbKaufen(Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istKunde(p)){\r\n\t\t\r\n\t\t\t//Warenkorb des Benutzers abfragen\r\n\t\t\tWarenkorb wk = kv.gibWarenkorbVonKunde(p);\r\n\t\t\t\r\n\t\t\t//Bestand der Artikel im Warenkorb reduzieren und Gesamtpreis errechnen\r\n\t\t\tint gesamt = 0;\r\n\t\t\tMap<Artikel,Integer> inhalt = wk.getArtikel();\r\n\t\t\tfor(Map.Entry<Artikel, Integer> ent : inhalt.entrySet()){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tav.erhoeheBestand(ent.getKey().getArtikelnummer(), -1 * ent.getValue());\r\n\t\t\t\t\t//Ereignis erstellen\r\n\t\t\t\t\tev.ereignisErstellen(p, Typ.KAUF, ent.getKey(), (int) ent.getValue());\r\n\t\t\t\t} catch (ArticleNonexistantException anne){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tgesamt += (ent.getValue() * ent.getKey().getPreis());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Warenkorb für Rechnung erzeugen\r\n\t\t\tWarenkorb temp = new Warenkorb();\r\n\t\t\ttemp.setArtikel(wk.getArtikel());\r\n\t\t\t\r\n\t\t\t//Rechnung erzeugen\r\n\t\t\tRechnung re = rv.rechnungErzeugen((Kunde) p, new Date(), temp, gesamt);\r\n\t\t\t\r\n\t\t\t//Warenkorb von Kunde leeren\r\n\t\t\twv.leereWarenkorb(wk);\r\n\t\t\t\r\n\t\t\t//Rechnungsobjekt an C/GUI zurückgeben\r\n\t\t\treturn re;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Warenkorb bezahlen\\\"\");\r\n\t\t}\r\n\t}", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "private String getUnidades(String numero) {// 1 - 9\r\n //si tuviera algun 0 antes se lo quita -> 09 = 9 o 009=9\r\n String num = numero.substring(numero.length() - 1);\r\n return UNIDADES[Integer.parseInt(num)];\r\n }", "public void initialisieren(String neuerName, int neuesAlter, float neuesGewicht, String neuesUrsprungsland, boolean neuGefaehrlich) {\n // deshalb kann man hier auch ohne super arbeiten\n initialisieren(\"Affe\", neuerName, neuesAlter, neuesGewicht, neuesUrsprungsland, neuGefaehrlich);\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "private void atualizarNumeroBombas() {\n\t\tlblNumeroBombas.setText(Integer.toString(this.numeroBombas));\r\n\t}", "public static int getLicznikTur() { return LicznikTur; }", "private void auswahlAnzeigen() throws Exception {\n System.out.println(\"Bitte Zahl und dann RETURN eingeben:\");\n System.out.println(\"<1> Freund anlegen\");\n System.out.println(\"<2> Freund suchen\");\n System.out.println(\"<3> Freund veraendern\");\n System.out.println(\"<4> Freund loeschen\");\n System.out.println(\"<5> Anzahl gespeicherter Freunde angeben\");\n System.out.println(\"<6> Telefonliste ausgeben\");\n System.out.println(\"<7> Beenden\");\n auswahlAuswerten();\n }", "int generarNumeroNota();", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "public void registriereNummer (int nr) {\n this.nr = nr;\n }", "public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }", "public KontonummerNichtVorhandenException(long kontonummer) {\n\t\tsuper(\"Zugriff auf nicht vorhandene Kontonummer \" + kontonummer);\n\t}", "private int bestandOperationen(int artikelNr, int menge) {\n Validator.check(artikelNr < 1000 || artikelNr > 9999, MSG_ARTIKELNR);\n Validator.check(menge < 0, MSG_MENGE);\n int stelle = -1;\n for (int i = 0; i < key; i++){\n if(getArtikel(i).getArtikelNr() == artikelNr){\n stelle = i;\n }\n }\n Validator.check(stelle == -1, MSG_NICHTGEFUNDEN);\n return stelle;\n }", "public Kreditkarte(){\n\t\n\t}", "public void addLauf(String Austragungsort, int LaufNummer){\r\n\t\tLaeufe.add(new Lauf(Austragungsort,LaufNummer));\r\n\t\tsortLaeufe();\r\n\t}", "public int AnzahlWerkstoffe()\n {\n if (liste.size() == 1)\n {\n System.out.println(\"Die Datenbank enthält \" + liste.size() + \" Werkstoff.\"); \n }\n else \n {\n System.out.println(\"Die Datenbank enthält \" + liste.size() + \" Werkstoffe.\");\n }\n return (int)liste.size();\n }", "public void auszahlen(int i) {\n kontostand = kontostand + i;\n Bank.auszahlen(i);\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public void setKinkenriyou09(Long kinkenriyou09) {\r\n this.kinkenriyou09 = kinkenriyou09;\r\n }", "public int anzahlRundenziel() {\n // TODO: eine Seite aufsetzen mit Informationen zur Datenbank\n // TODO: Anzahl der Einträge pro Tabelle\n int nReturn = 0;\n final Cursor c = mDb.getReadableDatabase().rawQuery(\n \"select count(*) from \" + RundenZielTbl.TABLE_NAME,\n null);\n if (!c.moveToFirst()) {\n Log.d(TAG, \"anzahlRundenziel(): Kein Rundenziel gespeichert\");\n nReturn = 0;\n } else {\n nReturn = c.getInt(0);\n }\n c.close();\n return nReturn;\n }", "Integer getNLNDreu();", "public Long getKinkenriyou09() {\r\n return kinkenriyou09;\r\n }", "public int getDificultat() {\r\n\t\treturn dificultat;\r\n\t}", "public Kupcek() {\r\n kup = new ArrayList<Karta>();\r\n\r\n for (int i = 0; i < 4; i++) { //gremo preko vseh simbolo kart\r\n for (int j = 0; j < 13; j++) { //in njihovih rangov\r\n if (j == 0) { //prvi indeks je vedno as torej mu damo vrednost 11\r\n Karta card = new Karta(i, j, 11); //ustvarimo nasega asa z i-tim simbolom in j-tim rangom\r\n kup.add(card); //karto dodamo v kupcek\r\n }\r\n else if (j >= 10) { //podobno storimo za karte Fant, Kraljica, Kralj in jim dodamo vrednost 10\r\n Karta card = new Karta(i, j, 10);\r\n kup.add(card);\r\n }\r\n else { //za vse preostale karte povecamo vrednost za +1 indeksa zaradi poteka kart 2[1] 3[2] etc.\r\n Karta card = new Karta(i, j, j+1);\r\n kup.add(card);\r\n }\r\n }\r\n }\r\n }", "@Override\n\tpublic void setNam(int nam) {\n\t\t_keHoachKiemDemNuoc.setNam(nam);\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "float getMonatl_kosten();", "public int wuerfeln() {\n\t\tletzterWurf = Wuerfel.werfen();\n\t\thatBereitsGewuerfelt = true;\n\t\treturn (letzterWurf);\n\t}", "public void addAufgabe() {\r\n this.aufgabenZahl++;\r\n }", "@Override\r\n\tpublic int getPosta_kod() {\n\t\treturn super.getPosta_kod();\r\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public int calculerKgsNourritureParJour(){\r\n\t\treturn noms.size() * 10;\r\n\t}", "@Override\n public String toString(){\n switch(this){\n case GROUND : return \"0\";\n case SECOND_DAY_AIR: return \"1\";\n case INTERNATIONAL_STANDARD: return \"3\";\n case INTERNATIONAL_PREMIUM: return \"4\";\n default: return \"-1\";\n }\n }", "public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }", "public String getZahlart() {\n\t\treturn this.zahlart;\n\t}", "public String kursIndonesia(double nominal){\n Locale localeID = new Locale(\"in\",\"ID\");\n NumberFormat formatRupiah = NumberFormat.getCurrencyInstance(localeID);\n String idnNominal = formatRupiah.format(nominal);\n return idnNominal;\n\n\n }", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public void setKinkenriyou01(Long kinkenriyou01) {\r\n this.kinkenriyou01 = kinkenriyou01;\r\n }", "public String getNamaKlinik() {\n return namaKlinik;\r\n }", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "private void raze_it_to_the_ground() {\n \tinitialNumberField.replace(0, initialNumberField.toString().length(), \"0\");\n\t\tnumbersField.setText(initialNumberField.toString());\n \t}", "public int getCyclomaticNumber() {\n\t\treturn (this.getKrawedzie().size() - this.getWierzcholki().size() + this.iloscSpojnychSkladowych());\n\t}", "@Override\n\tpublic void teclaNumericaDigitada(String numTecla) {\n\t\t\n\t}", "public void bucheAbgang(int artikelNr, int menge){\n int stelle = bestandOperationen(artikelNr, menge);\n getArtikel(stelle).bucheAbgang(menge);\n }", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public void setKota1(String tempatKerja) {\n\t\t\n\t}", "public int getNumGruppoPacchetti();", "private void bearbeitenAuswahlAuswaerten(Freund foundFriend) throws Exception {\n Scanner input = new Scanner(System.in);\n int auswahl = 0;\n if (input.hasNextInt()) {\n auswahl = input.nextInt(); // was wenn String\n } else {\n System.out.println(\"Please use a number between 1 and 6. You used: \" + input.next());\n bearbeitenAuswahlAuswaerten(foundFriend);\n }\n input.nextLine();\n\n switch (auswahl) {\n case 1: {\n\n System.out.println(\"Bitte den neuen VORNAMEN eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getVorname();\n if (newInput.hasNextLine()) {\n eingabe = newInput.nextLine();\n }\n foundFriend.setVorname(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Vorname geaendert zu : \" + foundFriend.getVorname());\n break;\n }\n case 2: {\n\n System.out.println(\"Bitte den neuen NACHNAMEN eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getNachname();\n if (newInput.hasNextLine()) {\n eingabe = newInput.nextLine();\n }\n foundFriend.setNachname(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Nachname geaendert zu : \" + foundFriend.getNachname());\n break;\n }\n case 3: {\n\n System.out.println(\"Bitte den neuen HANDY eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getHandy();\n if (newInput.hasNext()) {\n eingabe = newInput.next();\n }\n foundFriend.setHandy(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Handy geaendert zu : \" + foundFriend.getHandy());\n break;\n }\n case 4: {\n System.out.println(\"Bitte den neuen TELEFON eingeben und mit RETURN bestaetigen\");\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getTelefon();\n if (newInput.hasNext()) {\n eingabe = newInput.next();\n }\n foundFriend.setTelefon(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Telefon geaendert zu : \" + foundFriend.getTelefon());\n break;\n }\n case 5: {\n\n System.out.println(\"Bitte den neuen ADRESSE eingeben und mit RETURN bestaetigen\");\n\n Scanner newInput = new Scanner(System.in);\n String eingabe = foundFriend.getAdresse();\n if (newInput.hasNextLine()) {\n eingabe = newInput.nextLine();\n }\n foundFriend.setAdresse(eingabe);\n karteiAktualisieren(foundFriend);\n System.out.println(\"Adresse geaendert zu : \" + foundFriend.getAdresse());\n break;\n }\n }\n\n }", "public Pikachu(String name, int number)\n\t{\n\t\tsuper(name, number);\n\t}", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public void kurang(){\n hitung--;\n count.setText(Integer.toString(hitung));\n }", "public TumpukanInteger(){\r\n this(KAPASITAS_DEFAULT);\r\n }", "public void setNumGruppoPacchetti(int numGruppoPacchetti);", "public abstract void aktualisiereZeitpunk(int momentanZeitpunkt);", "public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void neueAufgabe(int zahl1, int zahl2, String s)\n {\n \n typ = s;\n aufgabentext.setText(zahl1 + \" \" + s + \" \" + zahl2 + \" = \");\n antwort.setText(\"\");\n\n // set timer and progress bar\n //CountDown cd = new CountDown(progressIndicator,c);\n \n }", "public int initialiser()\n\t{\n\n\t\tint nombreE;\n\t\tint k = 0;\n\t\t//int max = randInt(2,10);\n\t\ttableauPeres_ = new Case[longueur_][longueur_];\n\t\tint i, j = 0;\n\t\tfor(i=0; i<longueur_; ++i)\n\t\t{\n\t\t\tfor(j=0; j<longueur_; ++j)\n\t\t\t{\n\t\t\t\ttableauPeres_[i][j] = new Case(i, j, 0);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Combien d'étoiles souhaitez vous pour chaque joueur ?\");\n\t\tnombreE = clavier.nextInt();\n\t\twhile (k < nombreE)\n\t\t{\n\t\t\taddEtoile(\"bleu\");\n\t\t\taddEtoile(\"rouge\");\n\t\t\t++k;\n\t\t}\n\t\treturn nombreE;\n\t}" ]
[ "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.55862135", "0.5584309", "0.5584037", "0.55510086", "0.5546519", "0.5545761", "0.5545761", "0.55452424", "0.55410546", "0.55337024", "0.5533161", "0.54718584", "0.5470829", "0.546479", "0.546346", "0.54607874", "0.5460466", "0.5451188", "0.5435408", "0.54353637", "0.54246604", "0.5402577", "0.5399938", "0.53935575", "0.5393325", "0.53926826", "0.5378374", "0.53739846", "0.5370039", "0.53677523", "0.5362156", "0.5359923", "0.53568745", "0.5355868", "0.5350523", "0.53497696", "0.53415936", "0.53362185", "0.5329727", "0.5326565", "0.5324278", "0.53166926", "0.5313481", "0.53103614", "0.5307669", "0.53028727", "0.52918416", "0.5291615", "0.5288675", "0.5274691", "0.52723473", "0.5263287", "0.5259514", "0.5257913", "0.5257263", "0.52493316", "0.5247899", "0.524723", "0.5238676", "0.52352124", "0.52274007", "0.52208906", "0.5216781", "0.5216474", "0.52162004", "0.52110916", "0.52093863", "0.52049303", "0.5201879", "0.52015376", "0.5197721", "0.519767", "0.5193174", "0.51900196", "0.5188767", "0.5185754", "0.51773447", "0.5176911", "0.51762635", "0.5166965", "0.51553744" ]
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 Artist getByName(String name);", "public Art() {\n this.artist = \"Michelangelo\";\n this.timePeriod = 1510;\n this.aesthetic = \"High Renaissance\";\n this.size = \"Enormous\";\n }", "public String getArtikelName() {\r\n\t\treturn artikelName;\r\n\t}", "public Artigo getM_artigo() {\r\n return m_artigo;\r\n }", "public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "public void art() {\n arJ();\n }", "public void showMandje(){\r\n \r\n // Laat \r\n System.out.println(\"Winkelmand bevat de volgende items\");\r\n \r\n // Print alle artikelen die de in zijn winkelmandje heeft\r\n for(Artikel item : artikelen)\r\n {\r\n System.out.println(\"Naam:\" + item.getNaam() + \" prijs:\"+ item.getPrijs());\r\n }\r\n }", "@Override\n\tpublic String getType() {\n\t\treturn \"Artist\";\n\t}", "public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }", "public String getCoverArtName();", "public Artikel(String artikelname, int anr, float pr, int anz, boolean verfuegbar, boolean massengut) {\r\n\t\tartikelNummer = anr;\r\n\t\tthis.artikelName = artikelname;\r\n\t\tpreis = pr;\r\n\t\tanzahl = anz;\r\n\t\tthis.verfuegbar = verfuegbar;\r\n\t\tthis.massengut = massengut;\r\n\t}", "public Vector<Artikel> artikelSuchen(String bezeichnung, Person p) throws ArticleNonexistantException, AccessRestrictedException{\r\n\t\tif(istMitarbeiter(p) || istKunde(p)){\r\n\t\t\treturn av.sucheArtikel(bezeichnung);\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Artikel suchen (Bezeichnung)\\\"\");\r\n\t\t}\r\n\t}", "@Override\n public String toString() {\n return \"Art{\" +\n \"artist='\" + artist + '\\'' +\n \", timePeriod=\" + timePeriod +\n \", aesthetic='\" + aesthetic + '\\'' +\n \", size='\" + size + '\\'' +\n '}';\n }", "public Artikel getArtikel(int artikelnummer) throws ArtikelExistiertNichtException {\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer) {\n\t\t\t\treturn artikel;\n\t\t\t}\n\t\t}\n\t\tthrow new ArtikelExistiertNichtException(artikelnummer, \" - in 'getArtikel()'\");\n\t}", "private void showArtistas(Artist c) {\n\t\tif (c != null) {\n\t\t\tArtist r = ArtistDAO.List_Artist_By_Name(c.getName());\n\t\t\tNombreArtista.setText(r.getName());\n\t\t\tNacionalidadArtista.setText(r.getNationality());\n\t\t\tFotoArtista.setText(r.getPhoto());\n\t\t\tBorrarArtista.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tBorrarArtista.setDisable(true);\n\t\t\tNombreArtista.setText(\"\");\n\t\t\tNacionalidadArtista.setText(\"\");\n\t\t\tFotoArtista.setText(\"\");\n\t\t}\n\n\t}", "public Artikel getArtikel(int index){\n Validator.check(index < 0, MSG_INDEX);\n Validator.check(index >= key, MSG_NICHTVORHANDEN);\n int i = 0;\n Iterator<Map.Entry<Integer, Artikel>> iter = lager.entrySet().iterator();\n Artikel temp = iter.next().getValue();\n while (iter.hasNext() && i < index){\n temp = iter.next().getValue();\n i++;\n }\n return temp;\n }", "public Artikel artikelSuchen(int artikelnummer, Person p) throws ArticleNonexistantException, AccessRestrictedException{\r\n\t\tif(istMitarbeiter(p) || istKunde(p)){\r\n\t\t\treturn av.sucheArtikel(artikelnummer);\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Artikel suchen (Artikelnummer)\\\"\");\r\n\t\t}\r\n\t}", "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "@Override\r\n\tpublic Town getDroghedaName() {\n\t\treturn new Town(\"Highlanes Gallery\");\r\n\t}", "public boolean isArtist(){return isArtist;}", "public void setM_artigo(Artigo m_artigo) {\r\n this.m_artigo = m_artigo;\r\n }", "public Imagen(){\n \n }", "public interface Gallery {\n\n /**\n * Add the specified art piece to the gallery, replacing an equivalent in the gallery if existing.\n *\n * @param art the art piece to add to the gallery\n */\n void addArt(Art art);\n\n /**\n * Remove the specified art piece from the gallery if found.\n *\n * @param art he art piece to remove from the gallery\n */\n void deleteArt(Art art);\n\n /**\n * Return the collection of art pieces in the gallery, is cannot be modified.\n *\n * @return all the art pieces in the gallery\n */\n Set<Art> getAllArt();\n\n /**\n * Return list of unique artists with art represented in the gallery, in alphabetical order.\n *\n * @return list of artists\n */\n List<String> getArtists();\n\n /**\n * Return all art for the specified artist\n *\n * @param artist the artist for which to retrieve all art pieces\n *\n * @return all the art pieces for the artist\n */\n Set<Art> getArtByArtist(String artist);\n\n /**\n * Return all art pieces created in the gallery within the past year\n *\n * @return all art pieces created in the gallery within the past year\n */\n Set<Art> getRecentArt();\n\n /**\n * Return all art pieces with an asking price in between the specified upper and lower bands.\n *\n * @param upper the upper price band\n * @param lower the lower price band\n *\n * @return all art pieces with an asking price in between the specified upper and lower bands.\n */\n Set<Art> getArtByPrice(Double upper, Double lower);\n}", "Set<Art> getAllArt();", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "public void einfuegen(Artikel artikel) throws ArtikelExistiertBereitsException {\n\t\tif (!artikelBestand.contains(artikel))\n\t\t\tartikelBestand.add(artikel);\n\t\telse\n\t\t\tthrow new ArtikelExistiertBereitsException(artikel, \" - in 'einfuegen()'\");\n\t}", "protected ArtifactInfo getArtInfo(String wrksName, String artName) throws CartagoException {\n ICartagoController ctrl = CartagoEnvironment.getInstance().getController( \"/main/\"+wrksName); //.getId().getFullName());\n return ctrl.getArtifactInfo(artName);\n }", "public Artista findArtista(int codiceArtista) throws RecordNonPresenteException;", "public static String getArtName(int id) {\n String artname = \"\";\n if (ConfigHandler.artReversed.get(id) != null) {\n artname = ConfigHandler.artReversed.get(id);\n }\n return artname;\n }", "public void displayByArtists()\n {\n Collections.sort(catalog, new ArtistComparator());\n \n System.out.printf(\"%-30s %-39s %s %n\",\"ARTIST\", \"ALBUM\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(false)); //prints the artist first.\n \n for(int i=1; i<30; i++)\n System.out.print(\"*\");\n System.out.print(\"\\n\\n\");\n }", "String darArtistaSeleccionado( )\n {\n return ( ( Artista ) Objects.requireNonNull( cbArtistas.getSelectedItem( ) ) ).darNombre( );\n }", "void deleteArt(Art art);", "public ArrayList<Articulo> dameArticulo(){\n\t\t\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Artist : \"+this.artistName+\"\\n\";\n\t}", "public void mandjeVullen(Artikel artikel) {\r\n // voeg de artikel toe aan het mandje van de klant\r\n artikelen.add(artikel);\r\n\t}", "public Article() {\n\t\tthis.nom=\"VIDE\";\n\t\tthis.prix=0.0;\n\t\tthis.categorie= null;\n\t}", "private static void createTestBestellungHorizontal(){\n\t\ta = new Artikel(\"ASPIRIN Tabl 500 mg Ad 20 Stk\", \"Medikament\", \"0\");\n\t\ta.setEAN(\"7680085370118\");\n\t\tsetPharmacode(a, \"0058910\");\n\t\tAnwender anwender = new Anwender(\"007\", \"topsecret\");\n\t\torder = new Bestellung(\"Test-Bestellung\", anwender);\n\t\torder.addItem(a, 1);\n\t\t\n\t}", "public void setArtesano( ArtesanoEntity artesano )\n\t{\n\t\tthis.artesano = artesano;\n\t}", "public void loeschen(Artikel einArtikel) {\n artikelBestand.remove(einArtikel);\n }", "public Vector<Artista> findAllArtisti();", "public void einfuegen(Artikel einArtikel) throws ArtikelExistiertBereitsException {\n if (artikelBestand.contains(einArtikel)) {\n throw new ArtikelExistiertBereitsException(einArtikel, \" - in 'einfuegen()'\");\n }\n\n artikelBestand.add(einArtikel);\n }", "public synchronized void entfernen(int artikelnummer) throws ArtikelExistiertNichtException {\n\t\tint index = -1;\n\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer)\n\t\t\t\tindex = artikelBestand.indexOf(artikel);\n\t\t}\n\t\t\n\t\tif (index != -1)\n\t\t\tartikelBestand.remove(index);\n\t\telse\n\t\t\tthrow new ArtikelExistiertNichtException(artikelnummer, \" - in 'entfernen()'\");\n\t}", "@Override\r\n\tpublic Town getDroghedaDescription() {\n\t\treturn new Town(\"A beautiful and unique place to visit for those with a love of art or history\");\r\n\t}", "public String ausgebenBestandsListe(){\n final String nr = \"ArtNr\";\n final String desc = \"Beschreibung\";\n final String preis = \"Preis\";\n final String bestand = \"Bestand\";\n final String total = \"Gesamt\";\n final String type = \"Typ\";\n final String gesamtwert = \"Gesamtwert:\";\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"\\nLagerort: Alt-Saarbrücken\\n\\n\");\n sb.append(String.format(\"%-8s\", nr))\n .append(String.format(\"%-32s\", desc))\n .append(String.format(\"%-8s\", preis))\n .append(String.format(\"%-8s\", bestand))\n .append(String.format(\"%-10s\", total))\n .append(type + \"\\n\")\n .append(\"-------------------------------------------------------------------------------------------------------\\n\");\n for (int i = 0; i < key; i++){\n Artikel artikel = getArtikel(i);\n sb.append(String.format(\"%-8d\", artikel.getArtikelNr()));\n if(getArtikel(i).getClass().getSimpleName().equals(\"Artikel\")) {\n sb.append(String.format(\"%-32s\", artikel.getBezeichnung()));\n }else{\n sb.append(String.format(\"%-32s\", artikel.getBeschreibung()));\n }\n sb.append(String.format(\"%-8.2f\", artikel.getPreis()))\n .append(String.format(\"%-8d\", artikel.getBestand()))\n .append(String.format(\"%-10.2f\", artikel.getGesamt()))\n .append(artikel.getClass().getSimpleName()).append(\"\\n\");\n }\n sb.append(\"\\n-------------------------------------------------------------------------------------------------------\")\n .append(String.format(\"\\n%-56s\", gesamtwert)).append(getGesamtwert());\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\tString ret = \"\";\n\t\t\n\t\tfor(Articulo articulo: articulos) {\n\t\t\tret += articulo.toString() + '\\n';\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "public static List<Art> getArts() {\n try {\n List<Art> list = new ArrayList<>();\n Connection connection = Connector.getConnection();\n if (connection != null) {\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(\"SELECT * FROM Arts\");\n while (rs.next()) {\n // gets one art and adds it to list\n list.add(new Art(rs.getInt(\"artId\"), rs.getString(\"artTitle\"), \n rs.getString(\"artExtension\"), rs.getInt(\"creatorId\"), \n rs.getInt(\"categoryId\")));\n }\n }\n return list;\n } catch (SQLException e) {\n }\n return null;\n }", "public ItemPresentation(Article art)\n throws Exception\n {\n // the article\n this.article = art;\n\n setChannelId(article);\n }", "public void legeAnArtikel(Artikel artikel){\n Validator.check(lager.containsKey(artikel.getArtikelNr()), MSG_VORHANDEN);\n lager.put(artikel.getArtikelNr(), artikel);\n key++;\n }", "@Override\n\tprotected void onFinishInflate() {\n\t\tsuper.onFinishInflate();\n\t\tSehenswuerdigkeit ziel = Spiel.getInstance().getSpielerAnDerReihe().getZiel();\n\t\tthis.setImageResource(getResources().getIdentifier(ziel.getMotivURL(), \"drawable\", \"com.dhbw.dvst\"));\n\t\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Anfangsdatum: \" + this.get_Datum() \n\t\t\t\t+ \", Thema: \" + this.get_thema() \n\t\t\t\t+ \", Art: Theoriestunde\";\n\t}", "public void setTanzartName(String tanzartName);", "@Generated\n public Articoli getArticoli() {\n long __key = this.idart;\n if (articoli__resolvedKey == null || !articoli__resolvedKey.equals(__key)) {\n __throwIfDetached();\n ArticoliDao targetDao = daoSession.getArticoliDao();\n Articoli articoliNew = targetDao.load(__key);\n synchronized (this) {\n articoli = articoliNew;\n \tarticoli__resolvedKey = __key;\n }\n }\n return articoli;\n }", "public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\&middot\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\&middot\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"&nbsp;\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: &aelig;\n\t\t\t//ø: &oslash;\n\t\t\t//å: &aring;\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"&aelig;\", \"æ\")\n\t\t\t\t\t.replaceAll(\"&oslash;\", \"ø\")\n\t\t\t\t\t.replaceAll(\"&aring;\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"G&aring; til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t&#8679;\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan &middot; forrest &middot; f&oslash;re &middot; komme f&oslash;rst\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"G&aring; til toppen\" href=\"#0\">&#8679;</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}", "@Test\n\tpublic void testRicercaArticolo3() {\n\t\tArticolo l1 = new Libro(\"Titolo1\", \"Autore\", \"Genere\", \n\t\t\t\t\"Collocazione\", b1, 012345 , \"Casa Editrice\", 150);\n\t\tb1.getPossiede().add(l1);\n\t\tString ricerca = \"Titolo1\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve contenere l1\", trovati.contains(l1));\n\t}", "public String getArtist() {\n return artist;\n }", "public String getArtist() {\n return artist;\n }", "@Test\n\tpublic void testRicercaArticolo1() {\n\t\tString ricerca = \"No\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "private ImageView getAlbumArt () {\n ImageView iv = new ImageView((Image) this.playlist.getCurrentMedia().getMetadata().get(\"image\"));\n // Future implementations:\n // * store in cache for faster loading\n // * be sure to give an option to empty cache\n return iv;\n }", "@Override\r\n\tpublic void creerEnchere(String desc, String dl) {\n\t\t\r\n\t}", "@Test\n\tpublic void testRicercaArticolo2() {\n\t\tArticolo l1 = new Libro(\"Titolo1\", \"Autore\", \"Genere\", \n\t\t\t\t\"Collocazione\", b1, 012345 , \"Casa Editrice\", 150);\n\t\tb1.getPossiede().add(l1);\n\t\tString ricerca = \"NO\";\n\t\tArrayList<Articolo> trovati = (ArrayList<Articolo>) \n\t\t\t\tb1.ricercaArticolo(ricerca);\n\t\tassertTrue(\"La lista deve essere vuota\", trovati.isEmpty());\n\t}", "public Artista select (int id) {\n EntityManager e = IndConnector.getConnection();\n Artista a = e.find(Artista.class, new Long(id));\n e.close();\n return a;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n type.getItems().add(\"Membre\");\n type.getItems().add(\"PetSitter\");\n type.getItems().add(\"Veterinaire\"); \n }", "public Karte neueKarte(String backendDaten,String fArt,String kartenArt){\n\t\tif (frontend.getKarte()==null){\n\t\t\tfrontend.newKarteArrayList(); //verändert\n\t\t}\n\t\tArrayList<D> daten=Xml.toArray(backendDaten);\n\t\tint i;\n\t\tfor (i=0;i<daten.size();i++){\n\t\t\tif (daten.get(i) instanceof D_Karte) break;\n\t\t}\n\t\tD_Karte kartenDaten=(D_Karte)daten.get(0);\n\t\tint x=kartenDaten.getInt(\"x\");\n\t\tint y=kartenDaten.getInt(\"y\");\n\t\tint id=kartenDaten.getInt(\"id\");\n\t\tkarte = new Karte(this,id,x,y,fArt,kartenArt,kartenDaten.getString(\"name\"),kartenDaten.getString(\"globusArt\")); // Karte wird gesetzt\n\t\tfrontend.addKarte(karte);\n\t\tzeichneFelder(daten);\n\t\tscrollerKarte=new JScrollPane(karte,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tpanel.add(scrollerKarte,BorderLayout.CENTER);\n\t\tpanel.revalidate();\n\t\tpanel.repaint();\n\t\tsetVisible(true);\n\t\t\n\t\treturn karte; //verändert\n\t}", "public ArtMapArt(int artId) {\n\t\tthis.artId = artId;\n\t\t//ArtMap.instance().getArtDatabase().getArtwork(this.artId);\n\t}", "public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }", "public HandKarten(){\n this.listKartenInhand = new ArrayList<Karte>();\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public String getDPArt(){\n\t\treturn this.m_sDPArt;\n\t}", "@Override\n public String getDescription() {\n\t return \"Mexican Pizza\";\n }", "@Override\n\tpublic String getDiscription() {\n\t\tsuper.discription = \"Latte\";\n\t\treturn \"Latte\";\n\t}", "public List<Artikel> getArtikelBestand() {\n return new Vector(artikelBestand);\n }", "ArtefactModel getArtefactModel();", "@Override\r\n\tpublic String getShowDescribing() {\n\t\treturn \"所属乡镇:\"+ getSsxz().getName();\r\n\t}", "private Artikel liesArtikel(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n \n try {\n return (Artikel) ois.readObject();\n\n \n } catch (EOFException exc) {\n return null;\n }\n \n \n }", "public List<Artikel> sucheArtikel(String bezeichnung) {\n List<Artikel> suchErg = new Vector();\n Iterator<Artikel> it = artikelBestand.iterator();\n\n while (it.hasNext()) {\n Artikel artikel = it.next();\n if (artikel.getBezeichnung().equals(bezeichnung)) {\n suchErg.add(artikel);\n }\n }\n return suchErg;\n }", "public String getArtist(){\n\t\treturn artist;\n\t}", "public List<Articulos> listarArticulos(){\n\t\treturn iArticulos.findAll();\n\t}", "@Override\n\t\tpublic Image marche(String nom, int frequence) {\n\t\t\t\n\t\t\tString str;\n\t\t\tImageIcon ico;\n\t\t\tImage img;\n\t\t\t\n\t\t\tif(this.marche == false || Main.level.getxPos() <= 0 || Main.level.getxPos() > 4430) {//si le personnage est arreter ou completement a gauche\n\t\t\t\tif(this.versDroite == true) {//si vers la droite image de droite\n\t\t\t\t\tstr = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}//si non image de gauche\n\t\t\t}else {//ou le personnage se deplace, on incremente donc le compteur a chaque fois que la scene est redessiné\n\t\t\t\tthis.compteur++;\n\t\t\t\tif(this.compteur / frequence == 0) {//si compteur/par frequence est = a 0 c'est que le personnage est a l'arret donc:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}\n\t\t\t\t}else {\t//si non c'est que le personnage se deplace:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"MarcheDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"MarcheGauche.png\";}\n\t\t\t\t}\n\t\t\t\tif(this.compteur == 2 * frequence) {this.compteur = 0;}//si compteur est = a 2fois la frequence ont remet le compteur a zero\t\n\t\t\t}\n\t\t\t//affichage de l'image du personnage\n\t\t\tico = new ImageIcon(getClass().getResource(str));//TROUVER LE PROBLEME LIÉ A CETTE LIGNE.....\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\t\n\t\t\t\t\t\n\t\t}", "public void bucheZugang(int artikelNr, int menge){\n int stelle = bestandOperationen(artikelNr, menge);\n getArtikel(stelle).bucheZugang(menge);\n }", "public Artemis(){\r\n super(\"Artemis\",\r\n new StandardWinCondition(),\r\n new DoubleNoBackMove(new StandardMove()), new StandardBuild(),\r\n false,\r\n false\r\n );\r\n }", "public void pesquisarArtista() {\n\t\t\r\n\t\tpAController = new ArtistaCtrl();\r\n\t\tObject[] possibilities = pAController.getArtista();\r\n\t\tString s = (String) JOptionPane.showInputDialog(frmAcervo, \"Escolha o artista:\\n\", \"Pesquisar o Artista\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, possibilities, possibilities[0]);\r\n\t\tif (s != null && s.length() > 0) {\r\n\t\t\tnomeArtista.setText(s);\r\n\t\t\tartistaNome = s;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public String getAnoFilmagem();", "@Override\r\n public String getArtisticForm() {\r\n return artisticForm;\r\n }", "public List<Artikel> getArtikelBestand() {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\tergebnis.addAll(artikelBestand);\n\t\treturn ergebnis;\n\t}", "@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}", "@Override\n\tpublic void descriere() {\n\t\tSystem.out.println(\"Item: \"+this.numeSectiune);\n\t}", "@Override\n\t\t\tpublic void modifier(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public int getArtikelNummer() {\r\n\t\treturn artikelNummer;\r\n\t}", "public void veraendereBestand(Artikel artikel, int menge) throws ArtikelExistiertNichtException {\n if (!artikelBestand.contains(artikel)) {\n throw new ArtikelExistiertNichtException(artikel.getArtikelNummer());\n }\n artikel.setBestand(menge);\n }", "@Test\n\tpublic void obtenerNombreTest() {\n\t\tArchivo ar = new Imagen(\"test\", \"contenido\");\n\t\tassertEquals(\"test\", ar.obtenerNombre());\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Apart N°\"+Nombre;\n\t}", "public Farbe letztesKamel();", "private static void hilfe(int art){\n\t\tif(art == 0){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"SPIELER_HINZUFUEGEN nameDesSpielers ------------------- Fügt einen neuen Spieler mit dem entsprechenden Namen hinzu\");\r\n\t\t\twriter.println(\"SPIELER_FERTIG ---------------------------------------- Beendet die Eingabe der Spieler\");\r\n\t\t} else if (art == 1){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"BERICHT ----------------------------------------------- Zeigt den aktuellen Bericht des Spielers mit allen Informationen an\");\r\n\t\t\twriter.println(\"BERICHT rundenNummer ---------------------------------- Zeigt den Bericht des Spielers mit allen Informationen an zur Runde rundenNummer an\");\r\n\t\t\twriter.println(\"STANDORT ---------------------------------------------- Zeigt eine Liste aller Standorte an\");\r\n\t\t\twriter.println(\"MAGAZIN_EROEFFNEN standortName ------------------------ Erzeugt ein Magazin am angegebenen Standort mit der entsprechend Mitarbeiteranzahl\");\r\n\t\t\twriter.println(\"KREDIT_AUFNEHMEN betrag ------------------------------- Nimmt einen Kredit in der angegebenen Höhe auf\");\r\n\t\t\twriter.println(\"KREDIT_TILGEN betrag ---------------------------------- Tilgt einen Kredit in der angegebenen Höhe\");\r\n\t\t\twriter.println(\"WERBUNG_SCHALTEN aktion ------------------------------- Setzt den Anteil der Werbeaktionen für das Magazin auf aktion Aktionen zu je 10.000€\");\r\n\t\t\twriter.println(\"WERBUNG_MAGAZIN anteil -------------------------------- Der Werbeanteil im Magazin wird auf anteil Seiten gesetzt (12.500€ pro Seite)\");\r\n\t\t\twriter.println(\"MITARBEITER_EINSTELLEN mitarbeiterAnzahl -------------- Stellt mitarbeiterAnzahl Mitarbeiter im Magazin ein\");\r\n\t\t\twriter.println(\"MITARBEITER_ENTLASSEN mitarbeiterAnzahl --------------- Entlässt mitarbeiterAnzahl Mitarbeiter aus dem Magazin\");\r\n\t\t\twriter.println(\"MITARBEITER_SCHULEN ----------------------------------- Mitarbeiter werden um eine Schulungseinheit geschult\");\r\n\t\t\twriter.println(\"VERKAUFSPREIS_SETZEN preis ---------------------------- Setzt den Preis für das Magazin\");\r\n\t\t\twriter.println(\"AUFLAGE_SETZEN auflage -------------------------------- Setzt die Auflage für das Magazin auf auflage\");\r\n\t\t\twriter.println(\"RUNDE_FERTIG ------------------------------------------ Beendet das Treffen der Entscheidungen und lässt den nächsten Spieler dran\");\r\n\t\t} else {\r\n\t\t\t//ignore\r\n\t\t}\r\n\t}", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }", "public Artikel sucheArtikelNummer(int nummer) {\n for (Artikel artikel : artikelBestand) {\n if (artikel.getArtikelNummer() == nummer) {\n return artikel;\n }\n }\n return null;\n }", "@Test\n public void main() throws IOException {\n currentArticle = null;\n\n for(String line: FileUtils.readLines(new File(\"D:\\\\projects\\\\вёрстка томов ИИ\\\\9 том\\\\термины.txt\"))) {\n\n Matcher matcher = compile(\"\\\\|([^\\\\|]+)\\\\|\\\\s[–\\\\-—]\\\\s(.+)\").matcher(line);\n if (matcher.find()) {\n if (currentArticle != null) {\n saveItem();\n currentArticle = null;\n }\n String term = matcher.group(1);\n String body = matcher.group(2);\n if(body.indexOf(\"см. \") != 0) {\n currentArticle = new Article(term, body);\n } /*else {\n String alias = body.replace(\"см. \", \"\").replace(\"«\", \"\").replace(\"»\", \"\").replace(\".\", \"\");\n saveAliases(alias, term);\n }*/\n } else if (currentArticle != null) {\n currentArticle.setContent(currentArticle.getContent() + \"<br/>\"+line);\n }\n }\n if (currentArticle != null) {\n saveItem();\n }\n }" ]
[ "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.5645996", "0.56285816", "0.5613591", "0.55832785", "0.55711764", "0.5545571", "0.554496", "0.5535394", "0.5534727", "0.55312186", "0.5524591", "0.55143356", "0.5510589", "0.54946005", "0.54943997", "0.54465044", "0.5441824", "0.5430981", "0.5402902", "0.5397198", "0.5390003", "0.53846306", "0.537369", "0.5355543", "0.5354566", "0.5352984", "0.5348626", "0.53466773", "0.5335086", "0.53224915", "0.5321746", "0.53188115", "0.531116", "0.5303249", "0.5299553", "0.5281721", "0.52722615", "0.52681863", "0.52681863", "0.526666", "0.5266241", "0.5264687", "0.5250118", "0.52487504", "0.52418005", "0.52403176", "0.5238829", "0.5238351", "0.52374804", "0.5236725", "0.5233675", "0.5233358", "0.5232775", "0.5227623", "0.522467", "0.52049613", "0.52047247", "0.5182639", "0.5182185", "0.5173075", "0.51645255", "0.51624864", "0.5157252", "0.51509017", "0.51305413", "0.5123775", "0.5105145", "0.5103688", "0.51033676", "0.5101211", "0.50981337", "0.509508", "0.50894874", "0.5074655", "0.50733536", "0.5073254", "0.5072771", "0.5068306", "0.5062742" ]
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);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public void trenneVerbindung();", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public Rechnung warenkorbKaufen(Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istKunde(p)){\r\n\t\t\r\n\t\t\t//Warenkorb des Benutzers abfragen\r\n\t\t\tWarenkorb wk = kv.gibWarenkorbVonKunde(p);\r\n\t\t\t\r\n\t\t\t//Bestand der Artikel im Warenkorb reduzieren und Gesamtpreis errechnen\r\n\t\t\tint gesamt = 0;\r\n\t\t\tMap<Artikel,Integer> inhalt = wk.getArtikel();\r\n\t\t\tfor(Map.Entry<Artikel, Integer> ent : inhalt.entrySet()){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tav.erhoeheBestand(ent.getKey().getArtikelnummer(), -1 * ent.getValue());\r\n\t\t\t\t\t//Ereignis erstellen\r\n\t\t\t\t\tev.ereignisErstellen(p, Typ.KAUF, ent.getKey(), (int) ent.getValue());\r\n\t\t\t\t} catch (ArticleNonexistantException anne){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tgesamt += (ent.getValue() * ent.getKey().getPreis());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Warenkorb für Rechnung erzeugen\r\n\t\t\tWarenkorb temp = new Warenkorb();\r\n\t\t\ttemp.setArtikel(wk.getArtikel());\r\n\t\t\t\r\n\t\t\t//Rechnung erzeugen\r\n\t\t\tRechnung re = rv.rechnungErzeugen((Kunde) p, new Date(), temp, gesamt);\r\n\t\t\t\r\n\t\t\t//Warenkorb von Kunde leeren\r\n\t\t\twv.leereWarenkorb(wk);\r\n\t\t\t\r\n\t\t\t//Rechnungsobjekt an C/GUI zurückgeben\r\n\t\t\treturn re;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Warenkorb bezahlen\\\"\");\r\n\t\t}\r\n\t}", "public Kunde kundenAnlegen()\n {\n Kunde kunde = Kunde.kundeAnlegen(); //TODO static\n return kundenListe.put(kunde.getKundenNummer(), kunde);\n }", "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "public Farbe fuehrendesKamel();", "public Farbe letztesKamel();", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "Wedstrijden maakWedstrijdschema(Groepen groepen);", "public void sendeSpielfeld();", "public int wuerfeln() {\n\t\tletzterWurf = Wuerfel.werfen();\n\t\thatBereitsGewuerfelt = true;\n\t\treturn (letzterWurf);\n\t}", "@Override\n\tpublic String getVehiclName() {\n\t\treturn \"Hundai\";\n\t}", "@Override\n\tpublic void yürü() {\n\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "@XmlTransient\n\tpublic Wuerfel getWuerfel() {\n\t\t\n\t\tSystem.out.println(this.getName()+\" hat die zahl \"+wuerfel+\" gewuerfelt\");\n\t\treturn wuerfel;\n\t}", "private UsineJoueur() {}", "public void Ordenamiento() {\n\n\t}", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "public static void traduitSiteAnglais() {\n\t\t\n\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "String getVorlesungKennung();", "Debut getDebut();", "public void zugInWerkstatt() {\n werkstatt++;\n }", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "public void asetaTeksti(){\n }", "public void addAufgabe() {\r\n this.aufgabenZahl++;\r\n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "@Override\r\n\tpublic void verteidigen(Lebewesen lebewesen) {\n\t}", "public JLabel etykietaWyswietlaniaPunktow()\n\t{\n\t\treturn wyswietleniePunktow;\n\t}", "@Override\n public String getModu() {\n return null;\n }", "public abstract String dohvatiKontakt();", "void localizationChaneged();", "float getMonatl_kosten();", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "Vaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public abstract Koordinate schuss();", "void berechneFlaeche() {\n\t}", "public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "double kalkuliereZeit();", "void printlorryName(lorryName iLorryName)\n {\n System.out.println(iLorryName.getElementValue());\n }", "void Vorrücken()\n {\n }", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public MiniatuurWeergaven() {\n initComponents();\n }", "public String getWaehrung() {\n return Waehrung;\n }", "public HashMap<Integer, Kunde> speichereAlleKunden()\n {\n\n return kundenSpeichern(new File(\"C:\\\\Users\\\\xcg5453\\\\Documents\\\\Java\\\\Bank\\\\KundenListe.txt\"));\n\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public RecodedString getWkn(){\n return wkn;\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void setzeNurRechtePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( false );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "public void setzeAllePunkteanzeigenSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( true );\n }", "public static int getLicznikTur() { return LicznikTur; }", "public void setzeAllePunkteanzeigenUnsichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( false );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "private void setMu1(MeaningUnit mu) {\n\t\t// falls die MU aus CW und FW besteht\n\t\tif (mu.getFunctionWord() != null) {\n\t\t\tmodel.getSGCreatingMenu().setMU1(\n\t\t\t\t\tmu.getFunctionWord() + \" \"\n\t\t\t\t\t\t\t+ mu.getConstitutiveWord());\n\t\t}\n\t\t// falls die MU nur aus CW besteht\n\t\telse {\n\t\t\tmodel.getSGCreatingMenu().setMU1(\n\t\t\t\tmu.getConstitutiveWord().toString());\n\t\t}\n\t\tmodel.getView().design(mu, true);\n\t\tmu1 = mu;\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private ObiWanKenobi(){\n }", "public String getKleur() {\n return kleur;\n }", "private void hienThiMaKHSuDungDV(){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layMaKHSuDungDVLoaiBoTrungLap();\n \n cbbThanhToanMaKH.removeAllItems();\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaKH.addItem(suDungModel.getMaKH());\n }\n }", "public void setzeNurLinkePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }", "public abstract String getBeschreibung();", "private void setupSpalteAufwand() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteAufwand.setCellValueFactory(new PropertyValueFactory<>(\"aufwand\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteAufwand.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteAufwand.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setAufwand(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }", "Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }", "void zmniejszBieg();", "public Registracija() {\n servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();\n konf = (Konfiguracija) servletContext.getAttribute(\"Konfig\");\n bpkonf = (BP_Konfiguracija) servletContext.getAttribute(\"BP_Konfig\");\n }", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "private void poetries() {\n\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "private stendhal() {\n\t}", "public void printAnnuaireName() {\n\t\t\n\t}", "@Override\n public String getDeskripsi() {\n return deskripsi;\n }", "@Override\n public String getDeskripsi() {\n return deskripsi;\n }", "public String getUnladenWt() {\n\t\treturn unladenWt;\n\t}", "@java.lang.Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"ja_perlin\";\r\n\t}", "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "public MapLieu(Lieu unLieu,Window w) {\n \n initComponents();\n monLieu=unLieu;\n this.setVisible(true);\n selected=-1;\n myWindow=w;\n }" ]
[ "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.56369334", "0.56350535", "0.5600582", "0.559362", "0.5566196", "0.55535024", "0.55487585", "0.55222785", "0.55203813", "0.55202085", "0.5497569", "0.5495918", "0.54958785", "0.5494359", "0.5481398", "0.5474131", "0.54679066", "0.54605556", "0.54562306", "0.54543865", "0.5451579", "0.542936", "0.542489", "0.54184586", "0.54183966", "0.5417202", "0.5416482", "0.5406506", "0.54020685", "0.5390373", "0.53891426", "0.5385497", "0.537691", "0.5354698", "0.5344821", "0.5327016", "0.532432", "0.5319585", "0.53186977", "0.53105235", "0.530019", "0.5295355", "0.52901137", "0.5287804", "0.52863806", "0.5282861", "0.52820194", "0.52818733", "0.52768886", "0.5271252", "0.5266037", "0.52491355", "0.52435744", "0.523802", "0.523722", "0.52358776", "0.523546", "0.5232954", "0.5232545", "0.5232353", "0.523215", "0.52271724", "0.5224242", "0.52182037", "0.5216319", "0.5216157", "0.5210121", "0.5206375", "0.51996756", "0.51899165", "0.5188844", "0.5186006", "0.5183413", "0.51793283", "0.51781976", "0.51781976", "0.51670194", "0.5162999", "0.5162223", "0.51576155" ]
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\tpublic void verkaufen() {\n\t}", "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void sendeSpielfeld();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void w() {\n\n\t}", "public void Ordenamiento() {\n\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "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);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void yürü() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void verteidigen(Lebewesen lebewesen) {\n\t}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "@Override\n\tpublic void recreo() {\n\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "void Vorrücken()\n {\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private stendhal() {\n\t}", "public void asetaTeksti(){\n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public contrustor(){\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "private ControleurAcceuil(){ }", "public void buscarGestor(){\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}", "private UsineJoueur() {}", "@Override\n public void alRechazarOperacion() {\n }", "public void changerJoueur() {\r\n\t\t\r\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n public void salir() {\n }", "public abstract String dohvatiKontakt();", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "private void remplirMaterielData() {\n\t}", "public void datos_elegidos(){\n\n\n }", "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}", "public void sendeBeenden();", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\r\n\tpublic void work() {\n\t\tSystem.out.println( aname + \"Berkerja\");\r\n\t}", "public void validerSaisie();", "@Override\n\tpublic void operate() {\n\t\tSystem.out.println(\"이동중 연산을 해요!\");\n\t}", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void onderbreek(){\n \n }", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public v_pembelian() {\n initComponents();\n disable_info();\n setTabel();\n initFaktur();\n }", "private void mostrarEmenta (){\n }", "@Override\n\tpublic void statusVomMenschen() {\n\t\tSystem.out.println(\"Sie wurden getroffen nun können Sie nicht mehr so schnell laufen!\");\n\t}", "private void wechsleRaum(Befehl befehl)\n {\n if(!befehl.hatZweitesWort()) {\n \t// Gibt es kein zweites Wort, wissen wir nicht, wohin...\n System.out.println(\"Wohin m�chten Sie gehen?\");\n return;\n }else if(spieler.getAktuellerZustand().toString().equals(\"Bewegungsunf�hig\")) {\n \tSystem.out.println(\"Sie sind bewegungsunf�hig und m�ssen sich heilen bevor sie weiter k�nnen\");\n \treturn;\n }\n\n String richtung = befehl.gibZweitesWort();\n\n // Wir versuchen den Raum zu verlassen.\n Raum naechsterRaum = spieler.getAktuellerRaum().getAusgang(richtung);\n\n if (naechsterRaum == null) {\n System.out.println(\"Dort ist keine T�r!\");\n }\n else {\n \tif(naechsterRaum.getClass().getName().equals(\"Level.Teleporter\")) {\n \t\tspieler.setAktuellerRaum(landkarte.getZufaelligenRaum());\n \t\tSystem.out.println(\"Du wurdest Teleportiert\");\n \t}else {\n \t\t spieler.setAktuellerRaum(naechsterRaum);\n \t}\n\n \trauminfoAusgeben();\n }\n }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void remplirUtiliseData() {\n\t}", "@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}", "public void zugInWerkstatt() {\n werkstatt++;\n }", "Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }" ]
[ "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.6318482", "0.63170314", "0.626678", "0.6264368", "0.625798", "0.6250625", "0.6250007", "0.62440133", "0.62392443", "0.6221749", "0.62100786", "0.6207533", "0.61550504", "0.6120388", "0.6103995", "0.61035305", "0.6080946", "0.6069203", "0.6063837", "0.6054063", "0.60520667", "0.6043414", "0.604214", "0.6025196", "0.60232997", "0.60203236", "0.60110104", "0.60110104", "0.60098183", "0.59932965", "0.5979318", "0.59746844", "0.597432", "0.5936501", "0.59338075", "0.5929091", "0.59279823", "0.5926397", "0.5926397", "0.59208703", "0.5920534", "0.5919066", "0.59120023", "0.5910833", "0.5910133", "0.5903209", "0.5893758", "0.58901983", "0.5889678", "0.58827084", "0.588216", "0.588046", "0.587351", "0.58685225", "0.5866685", "0.586499", "0.5863807", "0.5863336", "0.5861931", "0.58531463", "0.5851155", "0.5850793", "0.58481604", "0.584798", "0.5845717", "0.58412325", "0.58329463", "0.58302283", "0.5819664", "0.58148795", "0.5811558", "0.58092827", "0.5806357", "0.58051753", "0.58048683", "0.5801662", "0.5797653", "0.5792989", "0.57919014", "0.5790392", "0.5786151" ]
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 }", "@Override\r\n\tpublic void persist() {\n\t}", "@Override\n public void saveValues() {\n \n }", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "protected void saveValues() {\n dataModel.persist();\n }", "@Override\n public void save()\n {\n \n }", "@Override\n public void save() {\n \n }", "@PrePersist\n protected void onPersist() {\n this.data = LocalDate.now();\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "@Override\n public void Save() {\n\t \n }", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void save() {\n\n }", "private void saveData() {\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "abstract void initPersistance();", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "Lancamento persistir(Lancamento lancamento);", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "void persiste(UsuarioDetalle usuarioDetalle);", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "public void save() {\t\n\t\n\t\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "Lembretes persistir(Lembretes lembretes);", "@Override\n\tpublic void getDatas() {\n\t\tAutoUpdate autoUpdate=new AutoUpdate();\n\t\tautoUpdate.getVersionData(this, \"0\");\n\t}", "private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public Boolean persistent();", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "public void save() {\n\t\tSystem.out.println(\"-----------from PersonDao.save()\");\n\t}", "@Override\n\tpublic Bundle saveData() {\n\t\t\n\t\treturn null;\n\t}", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "@Override\n public Map<String, String> getPersistedState()\n {\n return null;\n }", "private void insertData() {\n \n for (int i = 0; i < 3; i++) {\n ClienteEntity editorial = factory.manufacturePojo(ClienteEntity.class);\n em.persist(editorial);\n ClienteData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoPaseoEntity paseo = factory.manufacturePojo(ContratoPaseoEntity.class);\n em.persist(paseo);\n contratoPaseoData.add(paseo);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoHotelEntity editorial = factory.manufacturePojo(ContratoHotelEntity.class);\n em.persist(editorial);\n contratoHotelData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n PerroEntity perro = factory.manufacturePojo(PerroEntity.class);\n //perro.setCliente(ClienteData.get(0));\n //perro.setEstadias((List<ContratoHotelEntity>) contratoHotelData.get(0));\n //perro.setPaseos((List<ContratoPaseoEntity>) contratoPaseoData.get(0));\n em.persist(perro);\n Perrodata.add(perro);\n }\n\n }", "@Override\n public void saveChildrenData() {\n boats.forEach(boatDAO::save);\n }", "private void insertData() \n {\n for(int i = 0; i < 2; i++){\n RazaEntity razaEntity = factory.manufacturePojo(RazaEntity.class);\n em.persist(razaEntity);\n razaData.add(razaEntity);\n }\n for (int i = 0; i < 3; i++) {\n EspecieEntity especieEntity = factory.manufacturePojo(EspecieEntity.class);\n if(i == 0)\n {\n especieEntity.setRazas(razaData);\n }\n em.persist(especieEntity);\n especieData.add(especieEntity);\n }\n }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }", "public void store() throws PersistenceException {\n }", "public void save() {\n ProductData.saveData(tree);\n }", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "public void save(Veranstaltung veranstaltung) throws RuntimeException;", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}", "public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }", "@Autowired\n private void instansierData() {\n todoRepository.save(new Todo(\"Handle melk på butikken\",false, \"04/09/2017\",\"10/10/2017\"));\n todoRepository.save(new Todo(\"Plukk opp barna i barnehagen\",false, \"05/09/2017\",\"10/10/2017\"));\n todoRepository.save(new Todo(\"Vask klær\",true, \"08/09/2017\",\"12/09/2017\"));\n }", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "public Saving() {\n super();\n }", "private void initialData() {\n\n// if (MorphiaObject.datastore.createQuery(SecurityRole.class).countAll() == 0) {\n// for (final String roleName : Arrays\n// .asList(controllers.Application.USER_ROLE)) {\n// final SecurityRole role = new SecurityRole();\n// role.roleName = roleName;\n// MorphiaObject.datastore.save(role);\n// }\n// }\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "public void testdatenErzeugen(){\n\t\tCart_ cart = new Cart_();\n\t\tcart.setUserID(\"123\");\n\t\tcart.setTotalPrice(new BigDecimal(\"15.5\"));\n\t\tcart.setOid(UUID.randomUUID());\n\t\t\n\t\t//insert example data for CartItem_\n\t\tCartItem_ cartItem = new CartItem_();\n\t\tcartItem.setProduct(\"123\");\n\t\tcartItem.setQuantity(1L);\n\t\t\n\t\t// Set relations\n\t\tcart.getItems().add(cartItem);\n\t\t\n\t\t//Save all example Entities in an order that won't cause errors\n\t\tcartRepo.save(cart);\n\t}", "@Override\r\n\tpublic final void saveObjectData() throws BillingSystemException{\n\t}", "private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save();", "public void save();", "public void save();", "public void save();", "void setDataFromDBContent() {\n\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "@PrePersist\n\tprotected void onCreate() {\n\t\tupdated = new Date();\n\t\trcaCase.updated = updated;\n\t}", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "@Override\n public boolean save()\n {\n return false;\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "private Boolean persistRecords() {\n\t\t//Declarations\n\t\tBoolean persisted = false;\n\t\t\n\t\ttry{\t\t\t\t\t\n\t\t\t//Create the DB Handler\n\t\t\tDBHandler dbHandler = new DBHandler();\t\t\t\n\t\t\tDate date = new Date();\n\t\t\t\t\t\t\n\t\t\t//Set the updated time\n\t\t\t_medicalData.setUpdatedOn(date.toString());\n\t\t\t\n\t\t\t//Store the data to data store\n\t\t\tpersisted = dbHandler.storeData(_medicalData);\t\t\t\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tpersisted = false;\n\t\t}\n\t\t\n\t\treturn persisted;\t\t\n\t}", "void persist() throws PersistenceException;", "@Override\n\tpublic void store() {\n\n\t\tSystem.out.println(\"store() in Employee Dao\");\n\t}", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "@Override\n\tpublic void save(DataKey arg0) {\n\t\t\n\t}", "public void save(){\n\t\tlowresModelManager.save();\n\t}", "public void guardarProductosVendidos() {\n try {\n //Si hay datos los guardamos...\n if (!productosVendidos.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosVendidos\n FileOutputStream archivo = new FileOutputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de personas\n guardar.writeObject(productosVendidos);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public abstract int getPersistence();", "public void saveExtraData() {}", "@Override\r\n public void serializar() throws IOException {\n File fich=new File(\"datos.bin\");\r\n FileOutputStream fos = new FileOutputStream(fich);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(gestor);\r\n oos.close();\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic void save(Orden orden) {\n\r\n\t\tordenRepository.save(orden);\r\n\t}", "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }", "public void save() {\n }", "private void persistTable() {\n\n final EditText edit = findViewById(editId);\n final EditText edit2 = findViewById(editId2);\n String fileName = tableId;\n try {\n FileOutputStream fos = getBaseContext().openFileOutput(fileName, Context.MODE_PRIVATE);\n ObjectOutputStream os = new ObjectOutputStream(fos);\n os.writeObject(table);\n os.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n edit.setText(table.getSerializedProducts());\n if (lastProductAdded != null)\n edit2.setText(lastProductAdded.getName());\n else\n edit2.setText(\"\");\n\n productNames = table.getProductNames();\n currentlySelectedProduct=0;\n\n refreshPrice();\n\n if (table.map.size() == 0) {\n deleteFile(tableId);\n return;\n }\n }", "public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}", "public synchronized void schreibeDaten(String datei) throws IOException {\n\t\t// PersistenzManager fuer Schreibvorgaenge oeffnen\n\t\tpm.openForWriting(datei);\n\n\t\tif (!artikelBestand.isEmpty()) {\n\t\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tpm.speichereArtikel(iter.next());\t\t\t\t\n\t\t\t}\n\t\t}\t\t\t\n\t\t\n\t\t// Persistenz-Schnittstelle wieder schließen\n\t\tpm.close();\n\t}", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "void saveData() throws SerializerException;", "@PostConstruct\n void insertData() {\n\t\ttry {\n\t\t\tinsertDataFromJsonToDb.insertIntoDatabase();\n\t\t\tlogger.info(\"The database is filled by data\");\n\n\t\t} catch (Throwable throwable) {\n\t\t\tthrowable.printStackTrace();\n\t\t}\n\t}" ]
[ "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.6255864", "0.623005", "0.6221419", "0.61997074", "0.61997074", "0.6178951", "0.6135602", "0.61306155", "0.61272866", "0.6098666", "0.6094421", "0.60771054", "0.607503", "0.607198", "0.6066034", "0.60521805", "0.60145897", "0.60092086", "0.6003569", "0.5998895", "0.5996796", "0.5992868", "0.59745324", "0.5973316", "0.5956078", "0.5955017", "0.59384817", "0.59364724", "0.5926605", "0.59139955", "0.5912924", "0.59008396", "0.5894527", "0.589259", "0.58905584", "0.58857685", "0.5880733", "0.5864498", "0.5861594", "0.58465517", "0.5845917", "0.580438", "0.58035946", "0.5801396", "0.57944655", "0.57873183", "0.5787029", "0.5785232", "0.57812977", "0.5776986", "0.57726747", "0.57726747", "0.57726747", "0.57726747", "0.5769571", "0.57637614", "0.5760621", "0.5743606", "0.57433075", "0.5736339", "0.573537", "0.5732896", "0.5732645", "0.573236", "0.5725537", "0.57161236", "0.5714607", "0.5712927", "0.5711696", "0.57084334", "0.56971186", "0.5696464", "0.5694838", "0.56904614", "0.56900424", "0.569003", "0.5670285", "0.56675494", "0.56661606", "0.5662947" ]
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);\n }", "private int bestandOperationen(int artikelNr, int menge) {\n Validator.check(artikelNr < 1000 || artikelNr > 9999, MSG_ARTIKELNR);\n Validator.check(menge < 0, MSG_MENGE);\n int stelle = -1;\n for (int i = 0; i < key; i++){\n if(getArtikel(i).getArtikelNr() == artikelNr){\n stelle = i;\n }\n }\n Validator.check(stelle == -1, MSG_NICHTGEFUNDEN);\n return stelle;\n }", "public synchronized void entfernen(int artikelnummer) throws ArtikelExistiertNichtException {\n\t\tint index = -1;\n\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer)\n\t\t\t\tindex = artikelBestand.indexOf(artikel);\n\t\t}\n\t\t\n\t\tif (index != -1)\n\t\t\tartikelBestand.remove(index);\n\t\telse\n\t\t\tthrow new ArtikelExistiertNichtException(artikelnummer, \" - in 'entfernen()'\");\n\t}", "public int getArtikelAnzahl(){\n return key;\n }", "public Artista(String nombreArtista) {\n this.nombreArtista = nombreArtista;\n }", "public List<Artikel> sucheArtikel(int artikelnummer) {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\t\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer) {\n\t\t\t\tergebnis.add(artikel);\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.sort(ergebnis, new SortierungNachArtikelnummer());\n\t\treturn ergebnis;\n\t}", "public int findeArtikel(int artikelnr){\n for (int i = 0; i < key; i++){\n if (lager.get(i).getArtikelNr() == artikelnr){\n return i;\n }\n }\n return -1;\n }", "public synchronized void bestandVeraendern(int artikelnummer, int anzahl) throws ArtikelExistiertNichtException, ArtikelBestandIstKeineVielfacheDerPackungsgroesseException {\n\t\tint index = -1;\n\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer)\n\t\t\t\tindex = artikelBestand.indexOf(artikel);\n\t\t}\n\t\t\n\t\tif (index != -1) {\n\t\t\tartikelBestand.get(index).setBestand(artikelBestand.get(index).getBestand() + anzahl);\n\t\t} else \n\t\t\tthrow new ArtikelExistiertNichtException(artikelnummer, \" - in 'bestandErhoehen()'\");\n\t}", "public String getZahlart() {\n\t\treturn this.zahlart;\n\t}", "public Farbe fuehrendesKamel();", "public void entferneArtikel(int artikelNr){\n Validator.check(artikelNr < 1000 || artikelNr > 9999, MSG_ARTIKELNR);\n lager.entrySet().removeIf(entry -> (artikelNr == entry.getKey()));\n }", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "void setAnzahlVerkauft(String anzahlVerkauft);", "public Artikel sucheArtikelNummer(int nummer) {\n for (Artikel artikel : artikelBestand) {\n if (artikel.getArtikelNummer() == nummer) {\n return artikel;\n }\n }\n return null;\n }", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "public void showMandje(){\r\n \r\n // Laat \r\n System.out.println(\"Winkelmand bevat de volgende items\");\r\n \r\n // Print alle artikelen die de in zijn winkelmandje heeft\r\n for(Artikel item : artikelen)\r\n {\r\n System.out.println(\"Naam:\" + item.getNaam() + \" prijs:\"+ item.getPrijs());\r\n }\r\n }", "public Artikel(String artikelname, int anr, float pr, int anz, boolean verfuegbar, boolean massengut) {\r\n\t\tartikelNummer = anr;\r\n\t\tthis.artikelName = artikelname;\r\n\t\tpreis = pr;\r\n\t\tanzahl = anz;\r\n\t\tthis.verfuegbar = verfuegbar;\r\n\t\tthis.massengut = massengut;\r\n\t}", "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);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public String ausgebenBestandsListe(){\n final String nr = \"ArtNr\";\n final String desc = \"Beschreibung\";\n final String preis = \"Preis\";\n final String bestand = \"Bestand\";\n final String total = \"Gesamt\";\n final String type = \"Typ\";\n final String gesamtwert = \"Gesamtwert:\";\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"\\nLagerort: Alt-Saarbrücken\\n\\n\");\n sb.append(String.format(\"%-8s\", nr))\n .append(String.format(\"%-32s\", desc))\n .append(String.format(\"%-8s\", preis))\n .append(String.format(\"%-8s\", bestand))\n .append(String.format(\"%-10s\", total))\n .append(type + \"\\n\")\n .append(\"-------------------------------------------------------------------------------------------------------\\n\");\n for (int i = 0; i < key; i++){\n Artikel artikel = getArtikel(i);\n sb.append(String.format(\"%-8d\", artikel.getArtikelNr()));\n if(getArtikel(i).getClass().getSimpleName().equals(\"Artikel\")) {\n sb.append(String.format(\"%-32s\", artikel.getBezeichnung()));\n }else{\n sb.append(String.format(\"%-32s\", artikel.getBeschreibung()));\n }\n sb.append(String.format(\"%-8.2f\", artikel.getPreis()))\n .append(String.format(\"%-8d\", artikel.getBestand()))\n .append(String.format(\"%-10.2f\", artikel.getGesamt()))\n .append(artikel.getClass().getSimpleName()).append(\"\\n\");\n }\n sb.append(\"\\n-------------------------------------------------------------------------------------------------------\")\n .append(String.format(\"\\n%-56s\", gesamtwert)).append(getGesamtwert());\n return sb.toString();\n }", "public String draaiGangkaart()\n {\n if (vrijeGangkaart.getOrientatie() == 4)\n {\n vrijeGangkaart.setOrientatie(1);\n } else\n {\n vrijeGangkaart.setOrientatie((vrijeGangkaart.getOrientatie() + 1));\n }\n\n return vrijeGangkaart.toString();\n }", "public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }", "static void constructor(){\n /*SK*/ /*CZ*/ /*EN*/ \n /*0*/ SK.add(\"Základné nastavenia a konštanty\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); //language String value at position \n/*1*/ SK.add(\"A :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*2*/ SK.add(\"Z :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*3*/ SK.add(\"Dľžka rozpätia \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*4*/ SK.add(\"Počítaná vzdialenosť od osi vedenia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*5*/ SK.add(\"\\u0394l \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*6*/ SK.add(\"Dľžka elementu reťazovky\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*7*/ SK.add(\"Aplikovať terén\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*8*/ SK.add(\"Aplikovat modelovaný terén?\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*9*/ SK.add(\"A/Z hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*10*/ SK.add(\"hranice priestoru su v tvare obdlžnika dopočítaneho na základe hodnôt konštánt AZ\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*11*/ SK.add(\"Generované hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*12*/ SK.add(\"hranice priestoru sú generovane an základe vstupných bodov pozn. Comlex Hull\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*13*/ SK.add(\"Teren\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*14*/ SK.add(\"Model terénu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*15*/ SK.add(\"Hlavná os rozpätia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*16*/ SK.add(\"X1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*17*/ SK.add(\"X-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*18*/ SK.add(\"Z1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*19*/ SK.add(\"Z-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*20*/ SK.add(\"X2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*21*/ SK.add(\"X-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*22*/ SK.add(\"Z2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*23*/ SK.add(\"Z-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*24*/ SK.add(\"Ukažka terenu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*25*/ SK.add(\"Y :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*26*/ SK.add(\"Výškový offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*27*/ SK.add(\"block offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*28*/ SK.add(\"Blokuje daný ofset \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*29*/ SK.add(\"Strana počitaneho štvorca\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*30*/ SK.add(\"H :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*31*/ SK.add(\"Vyska pre vertikalne mapovanie\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n \n \n \n \n \n \n \n \n \n \n \n \n // language_main_frame.LangLabel(constants.getLanguage_option(),0) \n inicializovane = true;\n}", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "private void fahre(int aufzugNummer, int stockwerkAenderung){\n\t\tSystem.out.println();\r\n\t\t//Animation der Aufzüge\r\n\t\tTranslateTransition anpassung = new TranslateTransition(Duration.seconds(Aufzug.DAUER_PRO_STOCK*Math.abs(stockwerkAenderung)), aufzuge[aufzugNummer]);\r\n\t\tanpassung.setByY(stockwerkAenderung*stockwerkHohe);\r\n\t\tanpassung.play();\r\n\t}", "public void art() {\n arJ();\n }", "@Override\n\tpublic void aktualisiern(int drehzahl) {\n\t\tif(drehzahl >6321)\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl zu groß!! Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl im richtigen Bereich. Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t}", "public Artikel getArtikel(int artikelnummer) throws ArtikelExistiertNichtException {\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer) {\n\t\t\t\treturn artikel;\n\t\t\t}\n\t\t}\n\t\tthrow new ArtikelExistiertNichtException(artikelnummer, \" - in 'getArtikel()'\");\n\t}", "public void loeschen(Artikel einArtikel) {\n artikelBestand.remove(einArtikel);\n }", "int getNombreLignesPlateau();", "public Farbe letztesKamel();", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "public Artikel erstelleArtikel(String bezeichnung, int bestand, double preis, int packungsgroesse, Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istMitarbeiter(p)){\r\n\t\t\tArtikel art = av.erstelleArtikel(bezeichnung, bestand, preis, packungsgroesse);\r\n\t\t\t//Ereignis erzeugen\r\n\t\t\tev.ereignisErstellen(p, Typ.NEU, art, bestand);\r\n\t\t\treturn art;\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Artikel anlegen\\\"\");\r\n\t\t}\r\n\t}", "public void einlesenUndInitialisieren() {\n\t\t\n\t\t// Willkommenstext\n\t\tSystem.out.println(\"Willkommen zur Caesar-Kodierung!\\nMoechten Sie einen Text chiffrieren oder dechiffrieren?\");\n\t\tboolean chiffrieren = getModus();\n\t\t\n\t\t// Schluessel-Eingabe\n\t\tif(chiffrieren) {\n\t\t\tSystem.out.println(\"Bitte geben sie jetzt den Schluessel ein, der zum Chiffrieren verwendet werden soll. Entscheiden Sie sich\\ndabei fuer eine Ganzzahl zwischen 1 und 25.\\nMoechten sie einen zufaelligen Schluessel, geben sie bitte '88' ein.\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Wenn sie den fuer die Dechiffrierung benoetigten Schluessel kennen, geben sie ihn jetzt bitte ein. Sollten\\nSie ihn nicht kennen, geben sie bitte die '88' ein.\");\n\t\t}\n\t\tbyte schluessel = getSchluessel();\n\t\t\n\t\t// Als naechstes die Datei-Namen\n\t\tboolean erfolgreichEingelesen = false;\n\t\tdo {\n\t\t\n\t\t\tString[] namen = getDateiNamen();\n\t\t\tString eingabeDatei = namen[0];\n\t\t\tString ausgabeDatei = namen[1];\n\t\t\n\t\t\t// Nun haben wir alles und leiten die Initialisierung ein\n\t\t\n\t\t\tthis.streamKoordinierung = new StreamKoordinierung(chiffrieren, schluessel, eingabeDatei, ausgabeDatei );\n\t\t\terfolgreichEingelesen = this.streamKoordinierung.liesStarttextAusDatei();\n\t\t\tif(!erfolgreichEingelesen) {\n\t\t\t\tSystem.out.println(\"\\n\\nBeim Lesen der Datei trat ein Fehler auf, bitte geben sie erneut die DateiNamen an!\\n\");\n\t\t\t}\n\t\t}\n\t\twhile(!erfolgreichEingelesen);\n\t\t\n\t\tSystem.out.println(\"\\nDie Eingabe lief erfolgreich ab, wir beginnen nun mit der De-/Chiffrierung.\");\n\t}", "public void fuehreNaechstenZugAus(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(\"_\")){\n\t\t\tspielfeld[spalte][zeile] = spieler;\n\t\t}\n\t\t\n\t}", "public Artikel ladeArtikel() throws IOException, ClassNotFoundException {\n \n Artikel artikel = liesArtikel(ois); //liesArtikel(ois);\n \n return artikel;\n }", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public int arn() {\n return 383;\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}", "@Override\n public String toString() {\n return \"Ultima Manutencao em: \"+this.ultimaManun+\" km's.\";\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void bucheAbgang(int artikelNr, int menge){\n int stelle = bestandOperationen(artikelNr, menge);\n getArtikel(stelle).bucheAbgang(menge);\n }", "public void legeAnArtikel(Artikel artikel){\n Validator.check(lager.containsKey(artikel.getArtikelNr()), MSG_VORHANDEN);\n lager.put(artikel.getArtikelNr(), artikel);\n key++;\n }", "public void verurteilen(Schurke schurke) {\n\t\tif (!this.korrupt) {\n\t\t\tschurke.MetroDollarVeraendern(-1000);\n\t\t}\n\t\tthis.metroDollar += 60000;\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "public void mandjeVullen(Artikel artikel) {\r\n // voeg de artikel toe aan het mandje van de klant\r\n artikelen.add(artikel);\r\n\t}", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "public void bestandErhoehen(Artikel artikel, int menge) throws ArtikelNichtVerfuegbarException {\n if (!artikelBestand.contains(artikel)) {\n throw new ArtikelNichtVerfuegbarException(artikel, \"\");\n }\n artikel.setBestand(artikel.getBestand() - menge);\n }", "public void berekenDuur() {\n int duur = 0;\n for (Nummer nummer : albumNummers) {\n duur += nummer.getAfspeelDuur();\n }\n this.setAlbumDuur(duur);\n }", "public double berechnePreis(){\r\n\t\tdouble gesamtpreis = 0;\r\n\t\tfor (Titel tmp : this){\r\n\t\t\tgesamtpreis = gesamtpreis + tmp.getPreis();\r\n\t\t}\r\n\t\treturn gesamtpreis;\r\n\t}", "public void aenderePreisAllerArtikel(double prozent){\n Validator.check(prozent < -100, MSG_PREIS);\n for (Map.Entry<Integer, Artikel> integerArtikelEntry : lager.entrySet()) {\n integerArtikelEntry.getValue().aenderePreis(prozent);\n }\n }", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "@Override\r\n\t\tpublic String nazivLika() {\r\n\t\t\treturn \"ELIPSA\";\r\n\t\t}", "public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }", "public static void main(String[] args) throws Exception {\r\n\r\n\t\tList<String> ls = new LinkedList<String>();\r\n\t\tint anzahlSpieler, anzahlKarten;\r\n\r\n\t\tString zeichen[] = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"Bube\", \"Dame\", \"Konig\", \"(kick) Ass\"};\r\n\t\tString arten[] = {\"kreuz\", \"karo\", \"piko\", \"herz\"};\r\n\t\t\r\n\t\tfor (int i = 0; i < zeichen.length; i++) {\r\n\t\t\tfor (int s = 0; s < arten.length; s++) {\r\n\t\t\t\tls.add(arten[s].toString() + \" \" + zeichen[i].toString());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// System.out.println(ls.toString()); //Ausgabe der Liste\r\n\t\t\r\n\t\t// Methode aus der Collections-Klasse mischt den Kartenstapel\r\n\t\tCollections.shuffle(ls);\r\n\r\n\t\tif ((Integer.parseInt(args[0]) * Integer.parseInt(args[1])) <= 52) {\r\n\t\t\t// Zum Einlesen von den Kommandozeilen mit exception, the mistake was here\r\n\t\t\tanzahlSpieler = Integer.parseInt(args[0]);\r\n\t\t\tanzahlKarten = Integer.parseInt(args[1]);\r\n\t\t} else {\r\n\t\t\tthrow new Exception();\r\n\t\t}\r\n\t\tSystem.out.print(\"Anzahl der Karten : \" + anzahlSpieler + \"\\n\");\r\n\t\tSystem.out.print(\"Anzahl von Spielern: \" + anzahlKarten + \"\\n\");\r\n\r\n\t\t// Schleife zum Erstellen einer Liste fuer jeden Spieler\r\n\t\tint i = 0;\r\n\t\twhile (i < anzahlSpieler) {\r\n\t\t\t// wird wiederholt so oft, bis die gewuenschte Anzahl nicht erzielt wird\r\n\r\n\t\t\tList<String> spieler = new LinkedList<String>(ls.subList(0,anzahlKarten));\r\n\t\t\tls.subList(0, anzahlKarten).clear();\r\n\r\n\t\t\t// loescht die Elemente dieser Liste vom ganzen Stapel\r\n\t\t\tSystem.out.println(spieler);\r\n\t\t\t// gibt die Karte dieses Spilers zurueck\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private static void hilfe(int art){\n\t\tif(art == 0){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"SPIELER_HINZUFUEGEN nameDesSpielers ------------------- Fügt einen neuen Spieler mit dem entsprechenden Namen hinzu\");\r\n\t\t\twriter.println(\"SPIELER_FERTIG ---------------------------------------- Beendet die Eingabe der Spieler\");\r\n\t\t} else if (art == 1){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"BERICHT ----------------------------------------------- Zeigt den aktuellen Bericht des Spielers mit allen Informationen an\");\r\n\t\t\twriter.println(\"BERICHT rundenNummer ---------------------------------- Zeigt den Bericht des Spielers mit allen Informationen an zur Runde rundenNummer an\");\r\n\t\t\twriter.println(\"STANDORT ---------------------------------------------- Zeigt eine Liste aller Standorte an\");\r\n\t\t\twriter.println(\"MAGAZIN_EROEFFNEN standortName ------------------------ Erzeugt ein Magazin am angegebenen Standort mit der entsprechend Mitarbeiteranzahl\");\r\n\t\t\twriter.println(\"KREDIT_AUFNEHMEN betrag ------------------------------- Nimmt einen Kredit in der angegebenen Höhe auf\");\r\n\t\t\twriter.println(\"KREDIT_TILGEN betrag ---------------------------------- Tilgt einen Kredit in der angegebenen Höhe\");\r\n\t\t\twriter.println(\"WERBUNG_SCHALTEN aktion ------------------------------- Setzt den Anteil der Werbeaktionen für das Magazin auf aktion Aktionen zu je 10.000€\");\r\n\t\t\twriter.println(\"WERBUNG_MAGAZIN anteil -------------------------------- Der Werbeanteil im Magazin wird auf anteil Seiten gesetzt (12.500€ pro Seite)\");\r\n\t\t\twriter.println(\"MITARBEITER_EINSTELLEN mitarbeiterAnzahl -------------- Stellt mitarbeiterAnzahl Mitarbeiter im Magazin ein\");\r\n\t\t\twriter.println(\"MITARBEITER_ENTLASSEN mitarbeiterAnzahl --------------- Entlässt mitarbeiterAnzahl Mitarbeiter aus dem Magazin\");\r\n\t\t\twriter.println(\"MITARBEITER_SCHULEN ----------------------------------- Mitarbeiter werden um eine Schulungseinheit geschult\");\r\n\t\t\twriter.println(\"VERKAUFSPREIS_SETZEN preis ---------------------------- Setzt den Preis für das Magazin\");\r\n\t\t\twriter.println(\"AUFLAGE_SETZEN auflage -------------------------------- Setzt die Auflage für das Magazin auf auflage\");\r\n\t\t\twriter.println(\"RUNDE_FERTIG ------------------------------------------ Beendet das Treffen der Entscheidungen und lässt den nächsten Spieler dran\");\r\n\t\t} else {\r\n\t\t\t//ignore\r\n\t\t}\r\n\t}", "@Override\n public int makeIDNum() {\n int iDCount = 0;\n for (int i = 0; i < super.getTitle().length(); i++) {\n iDCount += i + (int) super.getTitle().charAt(i);\n }\n return iDCount;\n }", "public Art() {\n this.artist = \"Michelangelo\";\n this.timePeriod = 1510;\n this.aesthetic = \"High Renaissance\";\n this.size = \"Enormous\";\n }", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\&middot\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\&middot\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"&nbsp;\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: &aelig;\n\t\t\t//ø: &oslash;\n\t\t\t//å: &aring;\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"&aelig;\", \"æ\")\n\t\t\t\t\t.replaceAll(\"&oslash;\", \"ø\")\n\t\t\t\t\t.replaceAll(\"&aring;\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"G&aring; til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t&#8679;\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan &middot; forrest &middot; f&oslash;re &middot; komme f&oslash;rst\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"G&aring; til toppen\" href=\"#0\">&#8679;</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "@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 }", "int getNumberOfArtillery();", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "public void veraendereBestand(Artikel artikel, int menge) throws ArtikelExistiertNichtException {\n if (!artikelBestand.contains(artikel)) {\n throw new ArtikelExistiertNichtException(artikel.getArtikelNummer());\n }\n artikel.setBestand(menge);\n }", "public static void main(String[] args) {\n\t\tSingelyCardList alleKarten = new SingelyCardList();\n\n\t\tWissenskarte karte1 = new Wissenskarte (\"Peter Pain\", \"Zockt WoW\", \"Horde\", \"Peter\");\n\t\talleKarten.addLast(karte1);\n\t\tWissenskarte karte2 = new Wissenskarte (\"Koeln\", \"Einwohnerzahl 1 Millionen\", \"Liegt in NRW\", \"Stadt\");\n\t\talleKarten.addLast(karte2);\n\t\tWissenskarte karte3 = new Wissenskarte (\"Java\", \"Ist eine Insel\", \"Kann man auch als Kaffee trinken\", \"OOP\");\n\t\talleKarten.addLast(karte3);\n\t\tWissenskarte karte4 = new Wissenskarte (\"C#\", \"Braucht .NET-Komponenten\", \"Ist eine Objektorientierte Programmiersprache\", \"Spiele\");\n\t\talleKarten.addLast(karte4);\n\t\tWissenskarte karte5 = new Wissenskarte (\"TH Koeln\", \"Hat 11 Fakultaeten\", \"Informatiker sind die besten\", \"Campus\");\n\t\talleKarten.addLast(karte5);\n\t\t\n\t\t\n\t\tFrage neue_Frage = new Frage(\"Was zockt Peter?\", \"WoW\");\n\t\tkarte1.setFrage(neue_Frage);\n\t\t\n\t\tFrage neue_Frage1 = new Frage(\"Wo liegt Koeln?\", \"In NRW\");\n\t\tkarte2.setFrage(neue_Frage1);\n\t\t\n\t\tFrage neue_Frage2 = new Frage(\"Welches Getraenk ist Java?\", \"Kaffee\");\n\t\tkarte3.setFrage(neue_Frage2);\n\t\t\n\t\tFrage neue_Frage3 = new Frage(\"Was braucht C#?\", \".NET-Komponenten\");\n\t\tkarte4.setFrage(neue_Frage3);\n\t\t\n\t\tFrage neue_Frage4 = new Frage(\"Was sind Informatiker?\", \"Die besten\");\n\t\tkarte5.setFrage(neue_Frage4);\n\t\t\n\t\tFlashCardEditor frame = new FlashCardEditor(alleKarten);\n\t}", "public void verringereBestand(Artikel artikel, int menge) throws ArtikelNichtVerfuegbarException {\n if (!artikelBestand.contains(artikel)) {\n throw new ArtikelNichtVerfuegbarException(artikel, \"\");\n }\n artikel.setBestand(artikel.getBestand() - menge);\n }", "public Artikel getArtikel(int index){\n Validator.check(index < 0, MSG_INDEX);\n Validator.check(index >= key, MSG_NICHTVORHANDEN);\n int i = 0;\n Iterator<Map.Entry<Integer, Artikel>> iter = lager.entrySet().iterator();\n Artikel temp = iter.next().getValue();\n while (iter.hasNext() && i < index){\n temp = iter.next().getValue();\n i++;\n }\n return temp;\n }", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "static String classificacao(ArrayList<Musica> musicas, Musica proxima, int k){\n String classeResultado = \"\";\n\n int qtdeMusicas = musicas.size();\n //System.out.println(\"Quantidade de musicas \" + qtdeMusicas);\n double distAmostra[] = new double[qtdeMusicas];\n int vetorOrdenado[] = new int[qtdeMusicas];\n\n for(int i=0; i<qtdeMusicas;i++){\n double dist = distancia(musicas.get(i), proxima);\n distAmostra[i] = dist; \n } \n System.out.println(\"ANTES\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n selectionSort(distAmostra,vetorOrdenado);\n \n System.out.println(\"DEPOIS\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n int contadorDeClasse[] = new int[6];\n int vizinhos = 0;\n for(int i=0; i < distAmostra.length; i++){\n if(vizinhos > k){\n break;\n }\n \n String classe = musicas.get(vetorOrdenado[i]).getClasse();\n //System.out.println(\"musica classe \" + classe); //Para Teste\n\n switch (classe) {\n case \"rap\":\n contadorDeClasse[0]++;\n break;\n case \"axe\":\n contadorDeClasse[1]++;\n break;\n case \"sertanejo\":\n contadorDeClasse[2]++;\n break;\n case \"samba\":\n contadorDeClasse[3]++;\n break;\n case \"forro\":\n contadorDeClasse[4]++;\n break;\n case \"bossa_nova\":\n contadorDeClasse[5]++;\n break; \n }\n vizinhos++;\n } \n /*\n for(int i = 0; i < contadorDeClasse.length; i++){\n System.out.println(contadorDeClasse[i]);\n }\n */\n int maior = 0;\n int indiceMaior = -1;\n for (int i = 0; i < contadorDeClasse.length; i++) {\n if (contadorDeClasse[i] > maior) {\n maior = contadorDeClasse[i];\n indiceMaior = i;\n }\n }\n \n switch (indiceMaior) {\n case 0:\n classeResultado = \"rap\";\n break;\n case 1:\n classeResultado = \"axe\";\n break;\n case 2:\n classeResultado = \"sertanejo\";\n break;\n case 3:\n classeResultado = \"samba\";\n break;\n case 4:\n classeResultado = \"forro\";\n break;\n case 5:\n classeResultado = \"bossa_nova\";\n break; \n }\n return classeResultado;\n }", "public List<Artikel> sucheArtikel(String bezeichnung) {\n List<Artikel> suchErg = new Vector();\n Iterator<Artikel> it = artikelBestand.iterator();\n\n while (it.hasNext()) {\n Artikel artikel = it.next();\n if (artikel.getBezeichnung().equals(bezeichnung)) {\n suchErg.add(artikel);\n }\n }\n return suchErg;\n }", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}", "public static void main(String[] args) {\n\t\tint [] eingabe = {1, 1, 1, 1};\r\n\t\tint laenge = 4;\r\n\t\tint zustandAktuell = 0;\r\n\t\tint [][] Zustandstabelle = new int [4][2];\r\n\t\tZustandstabelle [0][0] = -1;\r\n\t\tZustandstabelle [0][1] = 1;\r\n\t\tZustandstabelle [1][0] = 2;\r\n\t\tZustandstabelle [1][1] = 3;\r\n\t\tZustandstabelle [2][0] = 2;\r\n\t\tZustandstabelle [2][1] = -1;\r\n\t\tZustandstabelle [3][0] = 2;\r\n\t\tZustandstabelle [3][1] = 3;\r\n\t\t\r\n\t\tfor (int i = 0; i < laenge; i++)\r\n\t\t{\r\n\t\t\tzustandAktuell = Zustandstabelle[zustandAktuell][eingabe[i]];\r\n\t\t\tif (zustandAktuell == -1) {\r\n\t\t\t\tSystem.out.print(\"Ungültige Eingabe. Beenden\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (zustandAktuell != 5)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"q\" + (zustandAktuell + 1) + \" ist der Zustand nach Bearbeitung der Eingabe: [\");\r\n\t\t\tfor (int i = 0; i < laenge ; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(eingabe [i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"]\");\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "public String getArtikelName() {\r\n\t\treturn artikelName;\r\n\t}", "public Knuckels(){\n super(\"Knuckels\",10);\n }", "@Override\r\n public void convert(int wa) {\n hasil1 = wa / menit;\r\n String wat = Integer.toString(hasil1);\r\n hasil = wat + \" Menit \";\r\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "private static void createTestBestellungHorizontal(){\n\t\ta = new Artikel(\"ASPIRIN Tabl 500 mg Ad 20 Stk\", \"Medikament\", \"0\");\n\t\ta.setEAN(\"7680085370118\");\n\t\tsetPharmacode(a, \"0058910\");\n\t\tAnwender anwender = new Anwender(\"007\", \"topsecret\");\n\t\torder = new Bestellung(\"Test-Bestellung\", anwender);\n\t\torder.addItem(a, 1);\n\t\t\n\t}", "public void maakNieuweDoolhof()\n {\n /*hzs: hoek zonder schat\n hms: hoek met schat\n r: recht stuk\n t: T-kruispunt met schat*/\n //vaste aantallen vakjes\n int hzs = 10, hms = 6, r = 11, t = 6;\n List<String> schatten = sch.getSchatten();\n List<String> tSchatten = schatten.subList(12, 18);\n Collections.shuffle(tSchatten);\n List<String> hSchatten = schatten.subList(18, 24);\n Collections.shuffle(hSchatten);\n\n int hKaartTeller = 0, tKaartTeller = 0;\n\n //losse vakken random invullen\n //oneven rijen\n for (int h = 0; h <= 6; h += 2)\n {\n for (int i = 1; i <= 5; i += 2)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[h][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[h][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n\n //even rijen\n for (int j = 1; j <= 5; j += 2)\n {\n for (int i = 0; i <= 6; i++)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[j][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[j][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n }", "public int feldNummer(Farbe farbe);", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public Artista findArtista(int codiceArtista) throws RecordNonPresenteException;", "public synchronized void bearbeiten(int artikelnummer, double preis, String bezeichnung) throws ArtikelExistiertNichtException{\n\t\tArtikel artikel = getArtikel(artikelnummer);\n\t\tartikel.setPreis(preis);\n\t\tartikel.setBezeichnung(bezeichnung);\n\t}", "java.lang.String getNume();", "java.lang.String getNume();", "public List<Artikel> sucheArtikel(String bezeichnung) {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\t\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getBezeichnung().toLowerCase().contains(bezeichnung.toLowerCase())) {\n\t\t\t\tergebnis.add(artikel);\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.sort(ergebnis, new SortierungNachBezeichnung());\n\t\treturn ergebnis;\n\t}", "String getVorlesungKennung();" ]
[ "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.55252963", "0.5516061", "0.5503507", "0.5501378", "0.5499683", "0.549536", "0.5490231", "0.54895735", "0.54829454", "0.5482042", "0.5481206", "0.54804677", "0.54759514", "0.5466167", "0.54627186", "0.5462487", "0.5456731", "0.54551053", "0.5454756", "0.5451187", "0.5443838", "0.5441185", "0.54381377", "0.5434872", "0.54344165", "0.5433817", "0.54300815", "0.54184425", "0.54174", "0.54138005", "0.5413262", "0.54132104", "0.54085696", "0.5386131", "0.5384302", "0.5372789", "0.53720534", "0.53664356", "0.536609", "0.5366066", "0.53650945", "0.53596777", "0.5358539", "0.5356261", "0.5350849", "0.5344952", "0.53392655", "0.5338507", "0.5333818", "0.5329355", "0.53250474", "0.5322534", "0.5318257", "0.5317642", "0.52930003", "0.5291314", "0.5285694", "0.527514", "0.5272951", "0.5271911", "0.5270068", "0.52649814", "0.5264495", "0.5264049", "0.5262423", "0.5261067", "0.5259094", "0.5258659", "0.52555025", "0.5253546", "0.5253331", "0.5248027", "0.52475697", "0.5243034", "0.52383876", "0.5233206", "0.5233206", "0.52309215", "0.5230569" ]
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 stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public Farbe fuehrendesKamel();", "public List<Artikel> sucheArtikel(String bezeichnung) {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\t\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getBezeichnung().toLowerCase().contains(bezeichnung.toLowerCase())) {\n\t\t\t\tergebnis.add(artikel);\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.sort(ergebnis, new SortierungNachBezeichnung());\n\t\treturn ergebnis;\n\t}", "public List<Artikel> sucheArtikel(String bezeichnung) {\n List<Artikel> suchErg = new Vector();\n Iterator<Artikel> it = artikelBestand.iterator();\n\n while (it.hasNext()) {\n Artikel artikel = it.next();\n if (artikel.getBezeichnung().equals(bezeichnung)) {\n suchErg.add(artikel);\n }\n }\n return suchErg;\n }", "@Test\n public void main() throws IOException {\n currentArticle = null;\n\n for(String line: FileUtils.readLines(new File(\"D:\\\\projects\\\\вёрстка томов ИИ\\\\9 том\\\\термины.txt\"))) {\n\n Matcher matcher = compile(\"\\\\|([^\\\\|]+)\\\\|\\\\s[–\\\\-—]\\\\s(.+)\").matcher(line);\n if (matcher.find()) {\n if (currentArticle != null) {\n saveItem();\n currentArticle = null;\n }\n String term = matcher.group(1);\n String body = matcher.group(2);\n if(body.indexOf(\"см. \") != 0) {\n currentArticle = new Article(term, body);\n } /*else {\n String alias = body.replace(\"см. \", \"\").replace(\"«\", \"\").replace(\"»\", \"\").replace(\".\", \"\");\n saveAliases(alias, term);\n }*/\n } else if (currentArticle != null) {\n currentArticle.setContent(currentArticle.getContent() + \"<br/>\"+line);\n }\n }\n if (currentArticle != null) {\n saveItem();\n }\n }", "public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}", "public void fuehreNaechstenZugAus(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(\"_\")){\n\t\t\tspielfeld[spalte][zeile] = spieler;\n\t\t}\n\t\t\n\t}", "public void ParcoursSuffixe() {\r\n if (getGauche() != null) {\r\n getGauche().ParcoursSuffixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursSuffixe();\r\n }\r\n System.out.print(getElement() + \",\");\r\n }", "public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }", "public Artista(String nombreArtista) {\n this.nombreArtista = nombreArtista;\n }", "@Override\n\tpublic void 식사(String 메뉴) {\n\t\t\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "public Artikel ladeArtikel() throws IOException, ClassNotFoundException {\n \n Artikel artikel = liesArtikel(ois); //liesArtikel(ois);\n \n return artikel;\n }", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "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);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public void loeschen(Artikel einArtikel) {\n artikelBestand.remove(einArtikel);\n }", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "public abstract String dohvatiKontakt();", "@Override\n\tpublic String getDiscription() {\n\t\tsuper.discription = \"Latte\";\n\t\treturn \"Latte\";\n\t}", "public void afficher(Zoe zoe, ArrayList<Monstre> monstres){\r\n\r\n // cree une carte de symboles ASCII\r\n int longueurTab = this.tabCellules.length;\r\n int longueurLigne = this.tabCellules[0].length;\r\n String[][] carteCaracteres = new String[longueurTab][longueurLigne];\r\n\r\n for(int i = 0; i < longueurTab; i++){\r\n for(int j = 0; j < longueurLigne; j++){\r\n if (this.tabCellules[i][j] != null){\r\n carteCaracteres[i][j] = this.tabCellules[i][j].toString();\r\n } else {\r\n carteCaracteres[i][j] = \" \";\r\n }\r\n }\r\n }\r\n\r\n // place les monstres sur la carte\r\n Iterator<Monstre> it = monstres.iterator();\r\n while (it.hasNext()) {\r\n Monstre monstre = it.next();\r\n int x = monstre.getCoordX();\r\n int y = monstre.getCoordY();\r\n\r\n if (monstre.getVivant()) { // priorite d'affichage pour les monstres vivants\r\n carteCaracteres[y][x] = monstre.toString();\r\n } else if (!monstre.getVivant() && carteCaracteres[y][x].equals(\" \")) {\r\n carteCaracteres[y][x] = monstre.toString();\r\n }\r\n }\r\n\r\n // place Zoe sur la carte\r\n carteCaracteres[zoe.getCoordY()][zoe.getCoordX()] = zoe.toString();\r\n\r\n // affiche la carte contenant Zoe et les monstres\r\n String chaineCarac = \"\"; //\r\n for(int i = 0; i < carteCaracteres.length; i ++){\r\n String[] ligne = carteCaracteres[i];\r\n for(int j = 0; j < ligne.length; j++) {\r\n chaineCarac += ligne[j];\r\n }\r\n System.out.println(chaineCarac);\r\n chaineCarac = \"\";\r\n }\r\n }", "public void einlesenUndInitialisieren() {\n\t\t\n\t\t// Willkommenstext\n\t\tSystem.out.println(\"Willkommen zur Caesar-Kodierung!\\nMoechten Sie einen Text chiffrieren oder dechiffrieren?\");\n\t\tboolean chiffrieren = getModus();\n\t\t\n\t\t// Schluessel-Eingabe\n\t\tif(chiffrieren) {\n\t\t\tSystem.out.println(\"Bitte geben sie jetzt den Schluessel ein, der zum Chiffrieren verwendet werden soll. Entscheiden Sie sich\\ndabei fuer eine Ganzzahl zwischen 1 und 25.\\nMoechten sie einen zufaelligen Schluessel, geben sie bitte '88' ein.\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Wenn sie den fuer die Dechiffrierung benoetigten Schluessel kennen, geben sie ihn jetzt bitte ein. Sollten\\nSie ihn nicht kennen, geben sie bitte die '88' ein.\");\n\t\t}\n\t\tbyte schluessel = getSchluessel();\n\t\t\n\t\t// Als naechstes die Datei-Namen\n\t\tboolean erfolgreichEingelesen = false;\n\t\tdo {\n\t\t\n\t\t\tString[] namen = getDateiNamen();\n\t\t\tString eingabeDatei = namen[0];\n\t\t\tString ausgabeDatei = namen[1];\n\t\t\n\t\t\t// Nun haben wir alles und leiten die Initialisierung ein\n\t\t\n\t\t\tthis.streamKoordinierung = new StreamKoordinierung(chiffrieren, schluessel, eingabeDatei, ausgabeDatei );\n\t\t\terfolgreichEingelesen = this.streamKoordinierung.liesStarttextAusDatei();\n\t\t\tif(!erfolgreichEingelesen) {\n\t\t\t\tSystem.out.println(\"\\n\\nBeim Lesen der Datei trat ein Fehler auf, bitte geben sie erneut die DateiNamen an!\\n\");\n\t\t\t}\n\t\t}\n\t\twhile(!erfolgreichEingelesen);\n\t\t\n\t\tSystem.out.println(\"\\nDie Eingabe lief erfolgreich ab, wir beginnen nun mit der De-/Chiffrierung.\");\n\t}", "String darArtistaSeleccionado( )\n {\n return ( ( Artista ) Objects.requireNonNull( cbArtistas.getSelectedItem( ) ) ).darNombre( );\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public String ausgebenBestandsListe(){\n final String nr = \"ArtNr\";\n final String desc = \"Beschreibung\";\n final String preis = \"Preis\";\n final String bestand = \"Bestand\";\n final String total = \"Gesamt\";\n final String type = \"Typ\";\n final String gesamtwert = \"Gesamtwert:\";\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"\\nLagerort: Alt-Saarbrücken\\n\\n\");\n sb.append(String.format(\"%-8s\", nr))\n .append(String.format(\"%-32s\", desc))\n .append(String.format(\"%-8s\", preis))\n .append(String.format(\"%-8s\", bestand))\n .append(String.format(\"%-10s\", total))\n .append(type + \"\\n\")\n .append(\"-------------------------------------------------------------------------------------------------------\\n\");\n for (int i = 0; i < key; i++){\n Artikel artikel = getArtikel(i);\n sb.append(String.format(\"%-8d\", artikel.getArtikelNr()));\n if(getArtikel(i).getClass().getSimpleName().equals(\"Artikel\")) {\n sb.append(String.format(\"%-32s\", artikel.getBezeichnung()));\n }else{\n sb.append(String.format(\"%-32s\", artikel.getBeschreibung()));\n }\n sb.append(String.format(\"%-8.2f\", artikel.getPreis()))\n .append(String.format(\"%-8d\", artikel.getBestand()))\n .append(String.format(\"%-10.2f\", artikel.getGesamt()))\n .append(artikel.getClass().getSimpleName()).append(\"\\n\");\n }\n sb.append(\"\\n-------------------------------------------------------------------------------------------------------\")\n .append(String.format(\"\\n%-56s\", gesamtwert)).append(getGesamtwert());\n return sb.toString();\n }", "public static void main(String[] args) {\n\t\tchar separatorChar = System.getProperty(\"file.separator\").charAt(0);\r\n\t\tSystem.out.println(\"Pfadtrenner: \" + separatorChar);\r\n\t\t\r\n\t\t// windows Pfad:\r\n\t\tString pfad1 = \"D:\\\\Daten\\\\Musik\\\\Falco – Rock Me Amadeus.mp\";\r\n\t\tString pfadNeu = pfad1;\r\n\t\t// unter Linux -> \"/D/Daten/Musik/Falco - Rock Me Amadeus.mp\";\r\n\t\t\r\n\t\t// 1. Teilaufgabe: suche nach Laufwerksbezeichnung \"D:\"\r\n\t\tif (pfad1.length() >= 2) {\r\n\t\t\tchar zeichen1 = pfad1.charAt(0);\r\n\t\t\tchar zeichen2 = pfad1.charAt(1);\r\n\t\t\t\r\n\t\t\t// Muster: Buchstabe (gross oder klein) + \":\"\r\n\t\t\tchar zeichen1Klein = Character.toLowerCase(zeichen1); // 1. Zeichen in Kleinbuchstabe wandeln\r\n\t\t\tif (('a' <= zeichen1Klein && zeichen1Klein <= 'z')\r\n\t\t\t\t\t&& zeichen2 == ':') {\r\n\t\t\t\tSystem.out.println(\"Laufwerk: \" + zeichen1);\r\n\t\t\t\tif (!isWindows()) {\r\n\t\t\t\t\t// unter Linux\r\n\t\t\t\t\t// D: \\Daten\\Musik\\Falco – Rock Me Amadeus.mp\r\n\t\t\t\t\t// 1. String: D:\r\n\t\t\t\t\t// 2. String: \\Daten\\Musik\\Falco – Rock Me Amadeus.mp\r\n\t\t\t\t\t// Ergebnis: /D + \\Daten\\Musik\\Falco – Rock Me Amadeus.mp\r\n\t\t\t\t\tpfadNeu = \"/\" + zeichen1 + pfad1.substring(2); // alles ab 2. Index (ab 3. Zeichen)\r\n\t\t\t\t\tSystem.out.println(pfadNeu);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 2. Teilaufgabe: Pfadtrenner korrigieren - pfadneu soll die \"richtigen\" Pfadtrenner enthalten\r\n\t\tString pfadErgebnis = \"\";\r\n\t\tfor (int i = 0; i < pfadNeu.length(); ++i) {\r\n\t\t\tchar zeichen = pfadNeu.charAt(i);\r\n\t\t\t\r\n\t\t\tif (isWindows()) {\r\n\t\t\t\tif (zeichen == '/') {\r\n\t\t\t\t\tpfadErgebnis += '\\\\';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpfadErgebnis += zeichen;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Linux/Mac\r\n\t\t\t\tif (zeichen == '\\\\') {\r\n\t\t\t\t\tpfadErgebnis += '/';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpfadErgebnis += zeichen;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(pfadErgebnis);\r\n\t\t\r\n\t\t/* weitere Methoden:\r\n\t\t * - s.indexOf(str): sucht in s nach str, liefert Position von str oder -1\r\n\t\t * - s.lastIndexOf(str): sucht in s nach str (von rechts nach links), liefert Position von str oder -1\r\n\t\t * - s.trim: entfernt Leerzeichen vorne und hinten \r\n\t\t * - s.replace(char1, char2): ersetzt alle Zeichen char1 durch char2\r\n\t\t */\r\n\t\t// 3. Teilaufgabe: Dateierweiterung (Extension) ermitteln\r\n\t\tint letzterPunktPosition = pfadErgebnis.lastIndexOf(\".\");\r\n\t\tif (letzterPunktPosition == -1) {\r\n\t\t\tSystem.out.println(\"keine Extension vorhanden!\");\r\n\t\t} else {\r\n\t\t\tSystem.out.printf(\"Name ohne Extension: %s, Extension: %s%n\",\r\n\t\t\t\t\tpfadErgebnis.substring(0, letzterPunktPosition), pfadErgebnis.substring(letzterPunktPosition+1));\t\t\t\r\n\t\t}\r\n\t}", "private static void hilfe(int art){\n\t\tif(art == 0){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"SPIELER_HINZUFUEGEN nameDesSpielers ------------------- Fügt einen neuen Spieler mit dem entsprechenden Namen hinzu\");\r\n\t\t\twriter.println(\"SPIELER_FERTIG ---------------------------------------- Beendet die Eingabe der Spieler\");\r\n\t\t} else if (art == 1){\r\n\t\t\twriter.println(\"---------- HILFE ----------\");\r\n\t\t\twriter.println(\"Es stehen folgende Kommandos zur Verfügung (Kommandos in Großbuchstaben, Parameter in Kamelschreibweise)\");\r\n\t\t\twriter.println(\"HILFE ------------------------------------------------- Zeigt eine Liste aller Kommandos an\");\r\n\t\t\twriter.println(\"BERICHT ----------------------------------------------- Zeigt den aktuellen Bericht des Spielers mit allen Informationen an\");\r\n\t\t\twriter.println(\"BERICHT rundenNummer ---------------------------------- Zeigt den Bericht des Spielers mit allen Informationen an zur Runde rundenNummer an\");\r\n\t\t\twriter.println(\"STANDORT ---------------------------------------------- Zeigt eine Liste aller Standorte an\");\r\n\t\t\twriter.println(\"MAGAZIN_EROEFFNEN standortName ------------------------ Erzeugt ein Magazin am angegebenen Standort mit der entsprechend Mitarbeiteranzahl\");\r\n\t\t\twriter.println(\"KREDIT_AUFNEHMEN betrag ------------------------------- Nimmt einen Kredit in der angegebenen Höhe auf\");\r\n\t\t\twriter.println(\"KREDIT_TILGEN betrag ---------------------------------- Tilgt einen Kredit in der angegebenen Höhe\");\r\n\t\t\twriter.println(\"WERBUNG_SCHALTEN aktion ------------------------------- Setzt den Anteil der Werbeaktionen für das Magazin auf aktion Aktionen zu je 10.000€\");\r\n\t\t\twriter.println(\"WERBUNG_MAGAZIN anteil -------------------------------- Der Werbeanteil im Magazin wird auf anteil Seiten gesetzt (12.500€ pro Seite)\");\r\n\t\t\twriter.println(\"MITARBEITER_EINSTELLEN mitarbeiterAnzahl -------------- Stellt mitarbeiterAnzahl Mitarbeiter im Magazin ein\");\r\n\t\t\twriter.println(\"MITARBEITER_ENTLASSEN mitarbeiterAnzahl --------------- Entlässt mitarbeiterAnzahl Mitarbeiter aus dem Magazin\");\r\n\t\t\twriter.println(\"MITARBEITER_SCHULEN ----------------------------------- Mitarbeiter werden um eine Schulungseinheit geschult\");\r\n\t\t\twriter.println(\"VERKAUFSPREIS_SETZEN preis ---------------------------- Setzt den Preis für das Magazin\");\r\n\t\t\twriter.println(\"AUFLAGE_SETZEN auflage -------------------------------- Setzt die Auflage für das Magazin auf auflage\");\r\n\t\t\twriter.println(\"RUNDE_FERTIG ------------------------------------------ Beendet das Treffen der Entscheidungen und lässt den nächsten Spieler dran\");\r\n\t\t} else {\r\n\t\t\t//ignore\r\n\t\t}\r\n\t}", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "@Override\n\tpublic void yürü() {\n\n\t}", "public void ausgabe() {\n\t\tthis.streamKoordinierung.koordiniereAnhandDerEingabedaten();\n\t\tthis.streamKoordinierung.schreibeEndtextInDatei();\n\t\tSystem.out.println(\"\\n\\nAlles erfolgreich abgelaufen, herzlichen Glueckwunsch!\");\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "public void setArticle() {\n\t\tint lastCharPosition = this.countryName.length()-1;\n\t\t\n\t\tif(this.isException())\n\t\t\tthis.article = \"le\";\n\t\t\n\t\tfor(int i = 0; i < this.vocals.length; i++) {\n\t\t\tif (this.countryName.indexOf(vocals[i]) == 0) {\n\t\t\t\tarticle = \"l\\'\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.countryName.indexOf('e') == lastCharPosition){\n\t\t\tthis.article = \"la\";\n\t\t}else if (this.countryName.indexOf('s') == lastCharPosition) {\n\t\t\tthis.article = \"les\";\n\t\t}else {\n\t\t\tthis.article = \"le\";\n\t\t}\n\t}", "@Override\n protected String elaboraFooterCategorie() {\n String text = CostBio.VUOTO;\n\n text += A_CAPO;\n text += LibWiki.setRigaCat(\"Liste di persone per cognome| \");\n text += LibWiki.setRigaCat(\"Progetto Antroponimi|Cognomi\");\n\n return text;\n }", "@Override\n\tpublic void llenarArreglo(){\n\n\t\tString[] textoSeparado = texto.toLowerCase().split(\"\\\\W+\"); //pasa todo a minusculas y despues busca todas las no palabras con W y con + junta los que estan seguidos para separador, ver http://regexr.com/3dcpk\n\n\t\tif (palabras==null) {\n\t\t\t//agregar el primer elemento manualmente\n\t\t\tLabel etiqueta = new Label(textoSeparado[0]);\n\t\t\tpalabras = new Palabra[1];\n\t\t\tpalabras[0] = new Palabra(textoSeparado[0], etiqueta);\n\t\t}\n\n\t\t\tfor (int i=1; i<textoSeparado.length; i++) { //importante el uno para no contar la primera palabra dos veces\n\t\t\t\tString buscar= textoSeparado[i];\n\t\t\t\tif (!checarListaNegra(buscar)) { //solo se hace la operacion por cada palabra si no esta en la lista negra\n\t\t\t\t\tboolean yaExiste = false;\n\t\t\t\t\tfor (Palabra palabraActual : palabras) {\n\t\t\t\t\t\tif (palabraActual.getContenido().equals(buscar)) {\n\t\t\t\t\t\t\tyaExiste = true;\n\t\t\t\t\t\t\tpalabraActual.actualizarFrecuencia();\n\t\t\t\t\t\t//\tSystem.out.println(\"se actualizo\"+ palabraActual.getContenido());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!yaExiste) {\n\t\t\t\t\t\t//no se encontro la palabra (String buscar) en el gran arreglo de palabras entonces hay que crearla\n\t\t\t\t\t\tagregarPalabra(buscar);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "public void art() {\n arJ();\n }", "void Vorrücken()\n {\n }", "public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\&middot\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\&middot\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"&nbsp;\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: &aelig;\n\t\t\t//ø: &oslash;\n\t\t\t//å: &aring;\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"&aelig;\", \"æ\")\n\t\t\t\t\t.replaceAll(\"&oslash;\", \"ø\")\n\t\t\t\t\t.replaceAll(\"&aring;\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"G&aring; til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t&#8679;\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan &middot; forrest &middot; f&oslash;re &middot; komme f&oslash;rst\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"G&aring; til toppen\" href=\"#0\">&#8679;</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Apart N°\"+Nombre;\n\t}", "@Test\n public void testSpremiKonfiguraciju_String() throws Exception {\n System.out.println(\"spremiKonfiguraciju\");\n KonfiguracijaTxt instance = new KonfiguracijaTxt(datKonf.getName());\n instance.spremiKonfiguraciju(datKonf.getName());\n assertTrue(datKonf.exists());\n }", "public void sendeNeuerSpieler(String spieler);", "public Artikel erstelleArtikel(String bezeichnung, int bestand, double preis, int packungsgroesse, Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istMitarbeiter(p)){\r\n\t\t\tArtikel art = av.erstelleArtikel(bezeichnung, bestand, preis, packungsgroesse);\r\n\t\t\t//Ereignis erzeugen\r\n\t\t\tev.ereignisErstellen(p, Typ.NEU, art, bestand);\r\n\t\t\treturn art;\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Artikel anlegen\\\"\");\r\n\t\t}\r\n\t}", "public Mannschaft(String bezeichnung) {\n this.bezeichnung = bezeichnung;\n }", "public List<Artikel> getArtikelBestandSortiertNachBezeichnung() {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\tergebnis.addAll(artikelBestand);\n\t\tCollections.sort(ergebnis, new SortierungNachBezeichnung());\n\t\treturn ergebnis;\n\t}", "public abstract String getBeschreibung();", "@Test\n\tpublic void getNameCorrect(){\n\t\tassertEquals(\"BARBARZYŃCA\", adventurer1.getName());\n\t}", "static void constructor(){\n /*SK*/ /*CZ*/ /*EN*/ \n /*0*/ SK.add(\"Základné nastavenia a konštanty\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); //language String value at position \n/*1*/ SK.add(\"A :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*2*/ SK.add(\"Z :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*3*/ SK.add(\"Dľžka rozpätia \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*4*/ SK.add(\"Počítaná vzdialenosť od osi vedenia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*5*/ SK.add(\"\\u0394l \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*6*/ SK.add(\"Dľžka elementu reťazovky\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*7*/ SK.add(\"Aplikovať terén\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*8*/ SK.add(\"Aplikovat modelovaný terén?\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*9*/ SK.add(\"A/Z hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*10*/ SK.add(\"hranice priestoru su v tvare obdlžnika dopočítaneho na základe hodnôt konštánt AZ\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*11*/ SK.add(\"Generované hranice\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*12*/ SK.add(\"hranice priestoru sú generovane an základe vstupných bodov pozn. Comlex Hull\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*13*/ SK.add(\"Teren\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*14*/ SK.add(\"Model terénu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*15*/ SK.add(\"Hlavná os rozpätia\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*16*/ SK.add(\"X1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*17*/ SK.add(\"X-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*18*/ SK.add(\"Z1 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*19*/ SK.add(\"Z-sová súradnica stožiara 1\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*20*/ SK.add(\"X2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*21*/ SK.add(\"X-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n /*22*/ SK.add(\"Z2 :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*23*/ SK.add(\"Z-sová súradnica stožiara 2\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*24*/ SK.add(\"Ukažka terenu\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*25*/ SK.add(\"Y :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*26*/ SK.add(\"Výškový offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*27*/ SK.add(\"block offset\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*28*/ SK.add(\"Blokuje daný ofset \"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*29*/ SK.add(\"Strana počitaneho štvorca\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\");\n/*30*/ SK.add(\"H :\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n/*31*/ SK.add(\"Vyska pre vertikalne mapovanie\"); \n CZ.add(\"MT3 software, SAG Elektrovod, autoři Jozef Bendík & Matej Cenký 2016 1.release\"); \n EN.add(\"MT3 software, SAG Elektrovod, created by Jozef Bendík & Matej Cenký 2016 1.release\"); \n \n \n \n \n \n \n \n \n \n \n \n \n // language_main_frame.LangLabel(constants.getLanguage_option(),0) \n inicializovane = true;\n}", "private void pulsarItemMayus(){\n if (mayus) {\n mayus = false;\n texto_frases = texto_frases.toLowerCase();\n }\n else {\n mayus = true;\n texto_frases = texto_frases.toUpperCase();\n }\n fillList(false);\n }", "public String getArtikelName() {\r\n\t\treturn artikelName;\r\n\t}", "public void sendeSpielerWeg(String spieler);", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public void bucheZugang(int artikelNr, int menge){\n int stelle = bestandOperationen(artikelNr, menge);\n getArtikel(stelle).bucheZugang(menge);\n }", "public final String zza() {\n return this.mainText;\n }", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void reagir(String frase) {\n if (frase.equals(\"toma comida\") || frase.equals(\"olá\")) {\n System.out.println(\"abanar e latir\");\n } else {\n System.out.println(\"rosnar\");\n }\n }", "public synchronized void entfernen(int artikelnummer) throws ArtikelExistiertNichtException {\n\t\tint index = -1;\n\n\t\tIterator<Artikel> iter = artikelBestand.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tArtikel artikel = iter.next();\n\t\t\tif (artikel.getArtikelnummer() == artikelnummer)\n\t\t\t\tindex = artikelBestand.indexOf(artikel);\n\t\t}\n\t\t\n\t\tif (index != -1)\n\t\t\tartikelBestand.remove(index);\n\t\telse\n\t\t\tthrow new ArtikelExistiertNichtException(artikelnummer, \" - in 'entfernen()'\");\n\t}", "public void savePrioritaet(String bezeichnung) throws Exception;", "@Override\n\t\tpublic Image marche(String nom, int frequence) {\n\t\t\t\n\t\t\tString str;\n\t\t\tImageIcon ico;\n\t\t\tImage img;\n\t\t\t\n\t\t\tif(this.marche == false || Main.level.getxPos() <= 0 || Main.level.getxPos() > 4430) {//si le personnage est arreter ou completement a gauche\n\t\t\t\tif(this.versDroite == true) {//si vers la droite image de droite\n\t\t\t\t\tstr = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}//si non image de gauche\n\t\t\t}else {//ou le personnage se deplace, on incremente donc le compteur a chaque fois que la scene est redessiné\n\t\t\t\tthis.compteur++;\n\t\t\t\tif(this.compteur / frequence == 0) {//si compteur/par frequence est = a 0 c'est que le personnage est a l'arret donc:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}\n\t\t\t\t}else {\t//si non c'est que le personnage se deplace:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"MarcheDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"MarcheGauche.png\";}\n\t\t\t\t}\n\t\t\t\tif(this.compteur == 2 * frequence) {this.compteur = 0;}//si compteur est = a 2fois la frequence ont remet le compteur a zero\t\n\t\t\t}\n\t\t\t//affichage de l'image du personnage\n\t\t\tico = new ImageIcon(getClass().getResource(str));//TROUVER LE PROBLEME LIÉ A CETTE LIGNE.....\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\t\n\t\t\t\t\t\n\t\t}", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String aan() {\n AppMethodBeat.i(54302);\n if (this.kum == null) {\n this.kum = o.ahl().c(this.kua.field_imgPath, false, false);\n if (!(bo.isNullOrNil(this.kum) || this.kum.endsWith(\"hd\") || !e.ct(this.kum + \"hd\"))) {\n this.kum += \"hd\";\n }\n }\n String str = this.kum;\n AppMethodBeat.o(54302);\n return str;\n }", "@Test\r\n public void testWortUeberpruefen() {\r\n System.out.println(\"wortUeberpruefen\");\r\n String eingabewort = \"\";\r\n Turingband t = null;\r\n Texteinlesen instance = new Texteinlesen();\r\n instance.wortUeberpruefen(eingabewort, t);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "private static String expandUmlauts(String name) {\n return name.toLowerCase().replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\");\n }", "private void laadSpellen() {\r\n this.spellen = this.dc.geefOpgeslagenSpellen();\r\n int index = 0;\r\n String res = String.format(\"%25s %20s\", r.getString(\"spelNaam\"), r.getString(\"moeilijkheidsGraad\"));\r\n for (String[] rij : spellen) {\r\n index++;\r\n res += String.format(\"%n%d) %20s\", index, rij[0]);\r\n switch (rij[1]) {\r\n case \"1\":\r\n res += String.format(\"%20s\", r.getString(\"makkelijk\"));\r\n break;\r\n case \"2\":\r\n res += String.format(\"%20s\", r.getString(\"gemiddeld\"));\r\n break;\r\n case \"3\":\r\n res += String.format(\"%20s\", r.getString(\"moeilijk\"));\r\n break;\r\n }\r\n \r\n }\r\n System.out.printf(res);\r\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "@Override\r\n\tpublic Town getDroghedaName() {\n\t\treturn new Town(\"Highlanes Gallery\");\r\n\t}", "@Test\n\tpublic final void testUmlaut() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\t// U - upper case\n\t\tassertSingleResult(\"2797607\", fldName, \"Über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"uber\");\n\t\t// u - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwürdigkeit\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwurdigkeit\");\n\t\t// o - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomäki\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomaki\");\n\t}", "@Override\r\n\t\tpublic String nazivLika() {\r\n\t\t\treturn \"ELIPSA\";\r\n\t\t}", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public String umlauteErsetzen(String quellcode){\r\n\t\t // HTML Umlaute werden ersetzt\r\n\t\t quellcode = quellcode.replaceAll(\"&uuml;\",\"ü\");\r\n\t\t quellcode = quellcode.replaceAll(\"&Uuml;\",\"Ü\");\r\n\t\t quellcode = quellcode.replaceAll(\"&ouml;\",\"ö\");\r\n\t\t quellcode = quellcode.replaceAll(\"&Ouml;\",\"Ö\");\r\n\t\t quellcode = quellcode.replaceAll(\"&auml;\",\"ä\");\r\n\t\t quellcode = quellcode.replaceAll(\"&Auml;\",\"Ä\");\r\n\t\t quellcode = quellcode.replaceAll(\"&szlig;\",\"ß\");\r\n\t\t \r\n\t\t return quellcode;\r\n\t}", "public void decidiOrdine() {\n\r\n }", "@Test\n public void sucheSaeleBezT() throws Exception {\n System.out.println(\"sucheSaele nach Bezeichnung\");\n bezeichnung = \"Halle 1\";\n typ = \"\";\n plaetzeMin = null;\n ort = null;\n SaalDAO dao=DAOFactory.getSaalDAO();\n query = \"bezeichnung like '%\" + bezeichnung + \"%' \";\n explist = dao.find(query);\n System.out.println(query);\n List<Saal> result = SaalHelper.sucheSaele(bezeichnung, typ, plaetzeMin, ort);\n assertEquals(explist, result);\n \n }", "private void yas(){\n System.out.println(namn);\n \n try{\n String fraga = \"SELECT TEXT FROM INLAGG WHERE RUBRIK = 'Borttappad strumpa'\";\n String XD = db.fetchSingle(fraga);\n System.out.println(XD);\n txtInlagg.append(XD);\n }\n catch(InfException e){\n JOptionPane.showMessageDialog(null, \"Kunde ej hämta inlägg\");\n }\n }", "@Override\n\tpublic String maju() {\n\t\tif (gigiMasuk) {\n\t\t\treturn super.maju();\n\t\t}else {\n\t\t\treturn \"..............\";\n\t\t}\n\t}", "public static String getArtName(int id) {\n String artname = \"\";\n if (ConfigHandler.artReversed.get(id) != null) {\n artname = ConfigHandler.artReversed.get(id);\n }\n return artname;\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public Fische(String name, String gattung, int lebenserwartung, String geburtsart, String haltung, String futter, String nutzen, int flossenzahl, int schwarmgroesse, String schuppenart, String schuppenfarbe)\n {\n super(name, gattung, lebenserwartung, geburtsart, haltung, futter, nutzen, flossenzahl, schwarmgroesse);\n this.schuppenart=schuppenart;\n this.schuppenfarbe=schuppenfarbe;\n }", "@Override\n public int altura() {\n return altura(this.raiz);\n }", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "private static void createTestBestellungHorizontal(){\n\t\ta = new Artikel(\"ASPIRIN Tabl 500 mg Ad 20 Stk\", \"Medikament\", \"0\");\n\t\ta.setEAN(\"7680085370118\");\n\t\tsetPharmacode(a, \"0058910\");\n\t\tAnwender anwender = new Anwender(\"007\", \"topsecret\");\n\t\torder = new Bestellung(\"Test-Bestellung\", anwender);\n\t\torder.addItem(a, 1);\n\t\t\n\t}", "@Override\n\t\t\tpublic void suprimer(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n\t\tString ausgang = \"wörter starten mit großbuchstaben. pause nicht\";\r\n\t\tString newausgang = \"\";\r\n\r\n\t\tfor (int i = 0; i < ausgang.length(); i++) {\r\n\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tnewausgang = newausgang + Character.toUpperCase(ausgang.charAt(i));\r\n\r\n\t\t\t} else if (ausgang.charAt(i - 1) == ' ') {\r\n\t\t\t\tnewausgang = newausgang + Character.toUpperCase(ausgang.charAt(i));\r\n\t\t\t} else {\r\n\t\t\t\tnewausgang = newausgang + ausgang.charAt(i);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// normal dazu geben\r\n\t\t}\r\n\t\tSystem.out.println(ausgang);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(newausgang);\r\n\r\n\t}", "public void laadSpelIn(int keuze){\r\n String naam = spellen[keuze-1][0];\r\n this.dc.selecteerSpel(naam);\r\n UC1.ua.geefSpelbordWeer();\r\n this.uc3.start();\r\n }", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "@Test\r\n\tpublic void testGetTitleEU() {\r\n\t\tassertEquals(\"ExternUnit\", externu1.getTitle());\r\n\t}" ]
[ "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.55409765", "0.5529052", "0.5493539", "0.5483832", "0.54701596", "0.54696184", "0.54483294", "0.5436214", "0.54360694", "0.54349506", "0.5405002", "0.5400144", "0.53910047", "0.53901553", "0.53869915", "0.5386937", "0.5379121", "0.5377093", "0.53649056", "0.5359004", "0.5337121", "0.5331033", "0.53307986", "0.530675", "0.5297732", "0.529705", "0.5274081", "0.52606255", "0.5251582", "0.52435255", "0.52409226", "0.5238849", "0.5238848", "0.52366155", "0.5232621", "0.5228403", "0.52272266", "0.5223363", "0.52223396", "0.52133936", "0.51982766", "0.51967394", "0.5196018", "0.5191374", "0.5184722", "0.5178181", "0.5176737", "0.51714844", "0.51674736", "0.5166327", "0.51629126", "0.51587147", "0.5153482", "0.5150931", "0.5147016", "0.513457", "0.5131555", "0.51311177", "0.5123787", "0.51237744", "0.5123265", "0.51222605", "0.51201886", "0.5119211", "0.51184267", "0.51153034", "0.5114636", "0.5111564", "0.5110762", "0.5108524", "0.5107334", "0.5105593", "0.5104739", "0.51024646", "0.51023823", "0.50999755", "0.50992054", "0.50966305", "0.50953513" ]
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 == null) database = new Database();\n return database;\n }", "public static DbManager getInstance() {\n \t\treturn INSTANCE;\n \t}", "static AppDatabase getDatabase(final Context context) {\n if (INSTANCE == null) { //only a single thread can run this block at once\n //we only want this because we don't want to run too many databases\n synchronized (AppDatabase.class) {\n if(INSTANCE == null) {\n INSTANCE = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, \"saved_locations_db\").build(); //build a database object\n }\n\n }\n }\n return INSTANCE;\n }", "public static Database getInstance() {\r\n\t\t\r\n\t\tif(database_instance == null) {\r\n\t\t\tdatabase_instance = new Database();\t\t\t\r\n\t\t}\r\n\t\treturn database_instance;\t\t\r\n\t}", "public static synchronized DatabaseContext getInstance() {\r\n if (instance == null) {\r\n instance = new DatabaseContext();\r\n }\r\n return instance;\r\n }", "public static DBManager getInstance() {\n DBManager current = db;\n // fast check to see if already created\n if (current == null) {\n // sync so not more then one creates it\n synchronized (DBManager.class) {\n current = db;\n // check if between first check and sync if someone has created it\n if (current == null) {\n //create it\n db = current = new DBManager();\n }\n }\n }\n return current;\n }", "public static DbHandler getInstance()\n\t{\n\t\treturn instance;\n\t}", "public static synchronized AppDatabase getInstance(Context context){\n if(instance == null){\n //TODO: Remove allowMainThreadQueries, because it can freeze UI on big queries (but normally not on this project). Better to call queries outside of the UI thread.\n instance = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, \"app_db\").fallbackToDestructiveMigration().allowMainThreadQueries().build();\n }\n return instance;\n }", "public static synchronized DatabaseService getInstance() {\n\t\tif (service == null) {\n\t\t\tservice = new DatabaseService();\n\t\t}\n\t\treturn service;\n\t}", "public static synchronized RecipeDatabase getInstance(Context context)\n {\n if(instance==null)\n {\n instance=new RecipeDatabase(context.getApplicationContext());\n }\n return instance;\n\n }", "public static DbHelper getInstance(){\n\t\treturn _DbHelperHold.INSTANCE;\n\t}", "public static Database getInstance() {\n\t\treturn OfflineDatabase.getInstance();\n\t}", "public static MyDatabase getDatabase() {\n if (instance == null) {\n synchronized (MyDatabase.class) {\n if (instance == null) {\n instance = Room.databaseBuilder(Constants.context.getApplicationContext(),\n MyDatabase.class, Constants.DATABASE_NAME)\n .build();\n }\n }\n }\n return instance;\n }", "public static DatabaseHandler getInstance(){\n if(handler == null){\n handler = new DatabaseHandler();\n }\n return handler;\n }", "public static synchronized DAO getInstance(){\n\t if (instance == null)\n\t instance = new DAOImpl();\n\t return instance; \n\t }", "public static synchronized NoteDatabase getInstance(Context context){\n if(instance == null){//Instantiate if instance is null\n instance = Room.databaseBuilder(context.getApplicationContext(),NoteDatabase.class,\"note_database\")\n .fallbackToDestructiveMigration()\n .addCallback(roomCallBack)\n .build();\n }\n return instance;\n }", "public static DatabaseConnection getInstance() throws SQLException {\n if (instance == null) {//if we didn't create it earlier\n instance = new DatabaseConnection();//we create new one\n }\n return instance;//otherwise it returns old one\n }", "public static synchronized DatabaseHandler getInstance(Context context) {\n\t if (sInstance == null) {\r\n\t sInstance = new DatabaseHandler(context.getApplicationContext());\r\n\t }\r\n\t return sInstance;\r\n\t}", "public static ThreadSafeLazyDBConnection getInstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeLazyDBConnection.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeLazyDBConnection();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static Database getInstance() throws SQLException, ClassNotFoundException {\r\n if (Database.instance == null) {\r\n instance = new Database();\r\n }\r\n return instance;\r\n }", "public static DatabaseRepository getInstance() {\n if (instance == null) instance = new DatabaseRepository();\n return instance;\n }", "public static DatabaseAccess getInstance(Context context){\n if(instance == null){\n instance=new DatabaseAccess(context);\n }\n return instance;\n }", "public GraphDatabaseService GetDatabaseInstance() {\r\n\t\treturn _db;\r\n\t}", "public static Database getInstance(Context ctx) {\n if (mInstance == null) {\n mInstance = new Database(ctx.getApplicationContext());\n }\n return mInstance;\n }", "public static DBUtils getINSTANCE() {\n return INSTANCE;\n }", "public static synchronized LocalDatabaseSingleton getInstance(Context context) {\r\n if (mInstance == null) {\r\n mInstance = new LocalDatabaseSingleton(context);\r\n }\r\n return mInstance;\r\n }", "public static synchronized DBPresenter getInstance() {\r\n if (instance == null || !instance.getDbPath().equals(PropertiesLoader.getInstance().getDbLocation())\r\n || !instance.getDbHost().equals(PropertiesLoader.getInstance().getDbHost())\r\n || !instance.getDbPort().equals(PropertiesLoader.getInstance().getDbPort())) {\r\n instance = new DBPresenter(PropertiesLoader.getInstance().getDbLocation(), PropertiesLoader.getInstance()\r\n .getDbHost(),\r\n PropertiesLoader.getInstance().getDbPort());\r\n DBReaderWriter.createDatabasePresenter();\r\n }\r\n return instance;\r\n }", "public SQLiteDatabase getDatabaseInstance() {\n return db;\n }", "public static DBManager getInstance() {\n if (instance == null) {\n try {\n instance = new DBManager();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return instance;\n }", "public static synchronized DatabaseHandler getInstance(Context context) {\n if (sInstance == null) {\r\n sInstance = new DatabaseHandler(context.getApplicationContext());\r\n }\r\n return sInstance;\r\n }", "public static synchronized DatabaseHelper getInstance(Context context) {\n /* Use the application context, which will ensure that you don't accidentally leak an\n * Activity's context. See this article for more information: http://bit.ly/6LRzfx*/\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static synchronized DatabaseManager getInstance() {\n\n if (instance == null) {\n System.err.println(\"DatabaseManager is not initialized. \" +\n \"Call DatabaseManager.initializeInstance(...) first.\");\n }\n\n return instance;\n }", "public static synchronized TasksDatabase getInstance(Context context){\n if (instance == null){\n instance = Room.databaseBuilder(context.getApplicationContext(),TasksDatabase.class,\n \"tasks_database\")\n .fallbackToDestructiveMigration() //deletes database and recreates it when there's a version update\n .build();\n }\n return instance ;\n }", "public static DBCatalog getInstance(){\n return instance;\n }", "Object getDB();", "public static synchronized DatabaseHelper getInstance(Context context) { \n\t\t // Use the application context, which will ensure that you \n\t\t // don't accidentally leak an Activity's context.\n\t\t // See this article for more information: http://bit.ly/6LRzfx\n\t\t if (sInstance == null) {\n\t\t sInstance = new DatabaseHelper(context.getApplicationContext());\n\t\t }\n\t\t return sInstance;\n\t\t}", "public static DBUtil getInstance() {\n\t\tif (instance == null) {\n//\t\t\tlogger.log(Level.INFO, \"creating instance\");\n\t\t\tinstance = new DBUtil();\n\t\t}\n\t\treturn instance;\n\t}", "public static DbConnection getInstance() {\n if (!DbConnectionHolder.INSTANCE.isInitialized.get()) {\n synchronized (lock) {\n DbConnectionHolder.INSTANCE.initialize();\n }\n }\n return DbConnectionHolder.INSTANCE;\n }", "public static AppDatabase getInstance(final Context context) {\n if (sInstance == null) {\n synchronized (AppDatabase.class) {\n if (sInstance == null) {\n sInstance = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, DATABASE_NAME).build();\n }\n }\n }\n return sInstance;\n }", "public static synchronized DatabaseHandler getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHandler(context.getApplicationContext());\n }\n return sInstance;\n }", "public Dao getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static synchronized DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static DAOFactory getInstance() {\r\n return instance;\r\n }", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "public static AbstractDatabaseController getInstance(){\r\n\t\treturn AbstractDatabaseController.instance;\r\n\t}", "private void getDatabase(){\n\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DBMaster GetAnInstanceOfDBMaster() {\n\t\tif (singletonDBMaster == null) {\r\n\t\t\tsingletonDBMaster = new DBMaster();\r\n\t\t}\r\n\t\t\r\n\t\treturn singletonDBMaster;\r\n\t}", "public static synchronized PurchaseDB getInstance() {\n\t\tif (m_instance == null) {\n\t\t\tm_instance = new PurchaseDB();\n\t\t}\n\t\t\n\t\treturn m_instance;\n\t}", "@Override\n public CheckDBDAO getInitDBDAO() {\n if (instanceCheckDBDAO == null) {\n return new MySQLCheckDBDAO(connection);\n } else {\n return instanceCheckDBDAO;\n }\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public static DatabaseConnection getDb() {\n return db;\n }", "public synchronized static DatabaseStorage query(Context context)\n {\n if (instance == null)\n {\n instance = new DatabaseStorage(context);\n }\n\n return instance;\n }", "public static BookingDatabase getDbInstance(final Context context) {\n // If a database instance hasn't been created already\n if (dbInstance == null) {\n synchronized (BookingDatabase.class) {\n if (dbInstance == null) {\n dbInstance = Room.databaseBuilder(context.getApplicationContext(),\n BookingDatabase.class, \"booking_db\")\n .fallbackToDestructiveMigration()\n .addCallback(insertCallback)\n .build();\n }\n }\n }\n return dbInstance;\n }", "public static DataStore getInstance() {\n if (ourInstance == null) {\n ourInstance = new DataStore();\n }\n return ourInstance;\n }", "public static DatabaseManager getInstance(Context context) {\n if (databaseManager == null) {\n databaseManager = new DatabaseManager(context);\n }\n\n return databaseManager;\n }", "public ODatabaseInternal<?> db() {\n return ODatabaseRecordThreadLocal.INSTANCE.get().getDatabaseOwner();\n }", "public static MySQL getInstance() {\n\t\tif (_instance == null)\n\t\t\t_instance = new MySQL();\n\t\treturn _instance;\n\t}", "public static synchronized LocationsDB getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new LocationsDB(context.getApplicationContext());\n\n }\n return sInstance;\n }", "public static DatabaseHelper getInstance(Context ctx) {\n if (mInstance == null) {\n mInstance = new DatabaseHelper(ctx.getApplicationContext());\n }\n return mInstance;\n }", "public static DataConnection getInstance() {\n if (INSTANCE == null) createInstance();\n return INSTANCE;\n }", "public static LevelDBAuthenticationManager getDB() {\n if (singletonDB == null) {\n synchronized (LevelDBAuthenticationManager.class) {\n if (singletonDB == null) {\n singletonDB = new LevelDBAuthenticationManager();\n }\n }\n }\n return singletonDB;\n }", "public static synchronized DatabaseHelper getInstance (Context context){\n\n if(mHelper == null) {\n mHelper = new DatabaseHelper(context.getApplicationContext());\n }\n return mHelper;\n }", "public static DataStore getInstance() {\n if (instance == null) {\n synchronized (mutex) {\n if (instance == null)\n instance = new DataStore();\n }\n }\n return instance;\n }", "public Database getDatabase() {\n return dbHandle;\n }", "public static PopularMovieDatabase getInstance(Context context) {\n if (sInstance == null) {\n synchronized (LOCK) {\n Log.d(TAG, \"Creating new database instance\");\n sInstance = Room.databaseBuilder(context.getApplicationContext(),\n PopularMovieDatabase.class, PopularMovieDatabase.DATABASE_NAME)\n //.allowMainThreadQueries()\n .fallbackToDestructiveMigration()\n .build();\n }\n }\n Log.d(TAG, \"Getting the database instance \");\n return sInstance;\n }", "private DatabaseHandler(){\n createConnection();\n }", "private DB getDB() {\n\t\tServletContext context = this.getServletContext();\n\t\tsynchronized (context) {\n\t\t\tDB db = (DB)context.getAttribute(\"DB\");\n\t\t\tif(db == null) {\n\t\t\t\tdb = DBMaker.newFileDB(new File(\"db\")).closeOnJvmShutdown().make();\n\t\t\t\tcontext.setAttribute(\"DB\", db);\n\t\t\t}\n\t\t\tcheckAdminInDB(db);\n\t\t\tcheckCategoriaInDB(db);\n\t\t\treturn db;\n\t\t}\n\t}", "private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }", "public static DataBaseCreator getInstance() {\r\n if (instance == null) {\r\n synchronized (lock) {\r\n if (instance == null) {\r\n instance = new DataBaseCreator();\r\n }\r\n }\r\n }\r\n\r\n return instance;\r\n }", "public static SQLiteStorage instance() {\n return instance;\n }", "public static DbConnector getInstancia() {\r\n\t\tif (instancia == null) {\r\n\t\t\tinstancia = new DbConnector();\r\n\t\t}\r\n\t\treturn instancia;\r\n\t}", "public static DBController getInstance() {\n if (instance.getConnector() == null) {\n throw new NullPointerException(\"DB Connector hadn't been set.\");\n } else if (instance.getHandler() == null) {\n throw new NullPointerException(\"DB Handler hadn't been set.\");\n } else {\n return instance;\n }\n }", "public synchronized static Connection getInstance()\n\t{\n\t\tif(connect == null)\n\t\t{\n\t\t\tnew DAOconnexion();\n\t\t}\n\t\treturn connect;\n\t}", "public Database<T> getDatabase();", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "public static MapsDatabaseHelper getInstance(Context ctx) {\n if (mInstancedb == null) {\n mInstancedb = new MapsDatabaseHelper(ctx.getApplicationContext());\n }\n return mInstancedb;\n }", "public synchronized static DatabaseHelper getInstance(Context context) {\n if(DATABASE_HELPER == null) {\n DATABASE_HELPER = new DatabaseHelper(context.getApplicationContext());\n }\n return DATABASE_HELPER;\n }", "public static HibernateToListDAO getInstance()\r\n\t{\r\n\t\tif(_instanceDAO == null) {\r\n\t\t\t_instanceDAO = new HibernateToListDAO();\r\n\t }\r\n\t\treturn _instanceDAO;\r\n\t}", "public DatabaseManager getDatabase() {\n\t\treturn (db);\n\t}", "public static FieldGuideDatabase getInstance(Context ctx) {\n\t if (mInstance == null) {\n\t mInstance = new FieldGuideDatabase(ctx.getApplicationContext());\n\t }\n\t return mInstance;\n\t }", "public static DatabaseHandler getInstance(Context ctx) {\n if (mInstance == null) {\n mInstance = new DatabaseHandler(ctx.getApplicationContext());\n }\n return mInstance;\n }", "public static DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static DatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DatabaseHelper(context.getApplicationContext());\n }\n return sInstance;\n }", "public static EntryDatabase getInstance(Context context) {\n if (EntryDatabase.instance != null) {\n return EntryDatabase.instance;\n } else {\n EntryDatabase.instance = new EntryDatabase(context, \"entries\", null, 1);\n return EntryDatabase.instance;\n }\n }", "static synchronized DownloadDatabaseHelper getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new DownloadDatabaseHelper(context);\n }\n return sInstance;\n }", "Database getDataBase() {\n return database;\n }", "public static BankingDBOpenHelper getInstance() {\n return getInstance(mCtx);\n }", "private OpenSimDB() {\n instance = this;\n }", "public static synchronized DBAdapter getInstance(Context context) {\n //We use the application context so we don't accidentally leak an activities Context. see http://bit.ly/6LRzfx\n if (sInstance == null) {\n sInstance = new DBAdapter(context.getApplicationContext());\n }\n return sInstance;\n }", "public static DataModule getInstance() {\n return Holder.INSTANCE;\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static Connection getDBInstance() {\r\n\t\tif (db == null)\r\n\t\t\ttry {\r\n\t\t\t\tloadDBDriver();\r\n\t\t\t\tdb = DriverManager.getConnection(url, user, password);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\treturn db;\r\n\t}", "public static Connection getInstance() {\n return LazyHolder.INSTANCE;\n }", "public static CabsDAO getInstance()\n {\n return getInstance( FuberConstants.FUBER_DB );\n }", "public static ProductCategoryDaoJDBC getInstance() {\n if (instance == null) {\n instance = new ProductCategoryDaoJDBC();\n }\n return instance;\n }" ]
[ "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.7207735", "0.7204676", "0.7203557", "0.7202374", "0.7169261", "0.71522194", "0.71509135", "0.71444255", "0.7143943", "0.7133889", "0.7113341", "0.7112829", "0.7105288", "0.70983225", "0.7097044", "0.7093793", "0.7090576", "0.7073081", "0.70549005", "0.7053418", "0.70381564", "0.7015153", "0.7000811", "0.69546247", "0.69458264", "0.693976", "0.6930626", "0.6930235", "0.69270927", "0.69270927", "0.69270927", "0.69270927", "0.69245785", "0.69195575", "0.6919268", "0.69147605", "0.69120044", "0.68854684", "0.68523777", "0.6849904", "0.68416053", "0.682807", "0.6827472", "0.682546", "0.6822227", "0.68162185", "0.68085027", "0.6796832", "0.6794818", "0.67834455", "0.6778744", "0.6757603", "0.6754704", "0.6750913", "0.6747274", "0.6729231", "0.6723607", "0.6723402", "0.67156184", "0.6714179", "0.6705117", "0.6691556", "0.6689815", "0.668548", "0.6676442", "0.66751385", "0.6674489", "0.66731083", "0.66731083", "0.6668399", "0.6667442", "0.6665441", "0.6664708", "0.666203", "0.6659822", "0.66551125", "0.6654979", "0.66537565", "0.66502786", "0.66405684", "0.66350543" ]
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 totSpAtk = calculateStat(baseStats.spAtk, ivStats.spAtk, evStats.spAtk, natureStats.spAtk);\n int totSpDef = calculateStat(baseStats.spDef, ivStats.spDef, evStats.spDef, natureStats.spDef);\n int totSpd = calculateStat(baseStats.spd, ivStats.spd, evStats.spd, natureStats.spd);\n totalStats = new Stats(totHp, totAtk, totDef, totSpAtk, totSpDef, totSpd);\n combatStats = new Stats(totHp, 0, 0, 0, 0, 0);\n }", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "private void addItemToAllRegisteredTypes(List<String> legTypes, StatType statType, double item) {\n\t\tfor ( String legType : legTypes ) {\n\n\t\t\t// ... finally add the \"item\" to the correct bin in the container:\n\t\t\tint idx = this.statsContainer.get(statType).getIndex(item) ;\n\t\t\tthis.statsContainer.get(statType).inc( legType, idx ) ;\n\n\t\t\t// also add it to the sums container:\n\t\t\tthis.sumsContainer.get(statType).addValue( legType, item ) ;\n\n\t\t}\n\t}", "public static void addAll(){\n /* Add kill Achievements. */\n AchievementManager.addAchievement(kill1);\n AchievementManager.addAchievement(kill2);\n AchievementManager.addAchievement(kill3);\n AchievementManager.addAchievement(kill4);\n\n /* Add Death Achievements. */\n AchievementManager.addAchievement(death1);\n AchievementManager.addAchievement(death2);\n AchievementManager.addAchievement(death3);\n AchievementManager.addAchievement(death4);\n\n /* Add Score Achievements. */\n AchievementManager.addAchievement(score1);\n AchievementManager.addAchievement(score2);\n AchievementManager.addAchievement(score3);\n AchievementManager.addAchievement(score4);\n\n /* Add Time Achievements. */\n AchievementManager.addAchievement(time1);\n AchievementManager.addAchievement(time2);\n AchievementManager.addAchievement(time3);\n AchievementManager.addAchievement(time4);\n\n /* Random Achievements. */\n AchievementManager.addAchievement(tutorialAch);\n AchievementManager.addAchievement(secretAch);\n }", "@Override\n public void updateStats() {\n if (entering || isLogoutStarted()) {\n return;\n }\n\n refreshOverloaded();\n refreshExpertisePenalty();\n super.updateStats();\n }", "public void growStats() {\r\n\t\tLIFE += increment;\r\n\t\tSTRENGTH += increment;\r\n\t}", "public void resetActiveStats() {\n if (!valid)\n return;\n\n\n Handler handler = new Handler(getLooper());\n handler.post(() -> {\n recentStats.activeRequests = toLoad.size() + loading.size();\n recentStats.maxActiveRequests = recentStats.activeRequests;\n });\n }", "public void upgradeStats()\n {\n reload-=1;\n damage*=2;\n range+=50;\n }", "public XmlWorkerUserstats(){\r\n \t\tthis.statsDS = new UserstatsDS();\r\n \t\titemResolver = new hModItemResolver(new File(statsDS.getDataFolder(),\"items.txt\"));\r\n \t\tresolveCats = new String[]{\"blockdestroy\", \"blockcreate\", \"itemdrop\", \"itempickup\"};\r\n \t}", "public void collectStatsFromAggregator(IStatsGatherDesc conf) {\n basicStatsWork.setAggKey(conf.getStatsAggPrefix());\n basicStatsWork.setStatsTmpDir(conf.getTmpStatsDir());\n basicStatsWork.setStatsReliable(statsReliable);\n }", "private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }", "public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}", "private void updateBonusStats(double percentage) {\n baseStats.setHealth((int) (baseStats.getHealth() * percentage));\n baseStats.setStrength((int) (baseStats.getStrength() * percentage));\n baseStats.setDexterity((int) (baseStats.getDexterity() * percentage));\n baseStats.setIntelligence((int) (baseStats.getIntelligence() * percentage));\n }", "public StatsTracker() {\n\t\tthis.handStats = new ArrayList<HandStats>();\n\t}", "void setReviewStats()\n {\n if (hasInfo)\n {\n curReviewPageNum = 1;\n WalmartRequestHelper walmartRequestHelper = new WalmartRequestHelper(itemID, curReviewPageNum);\n\n curReviewURL = walmartRequestHelper.getRequestURL();\n\n Integer numStars[] = new Integer[5];\n\n for (int i = 0; i < 5; i++)\n {\n numStars[i] = 0;\n }\n\n try\n {\n Document reviewResultPage = Jsoup.connect(curReviewURL).userAgent(\"Mozilla\")\n .ignoreHttpErrors(true).ignoreContentType(true).get();\n\n // Handles the rare case where the API gives an error.\n if (reviewResultPage.getElementsByTag(\"title\").text().equals(\"Error\"))\n {\n return;\n }\n\n Elements unparsedRatings = reviewResultPage.getElementsByTag(\"ratingCounts\");\n\n // Review statistics are only generated if ratings can be found.\n if (unparsedRatings.size() != 0)\n {\n for (int i = 0; i < unparsedRatings.size(); i++)\n {\n String unparsedRatingCount = unparsedRatings.get(i).getElementsByTag(\"count\").text();\n\n if (!unparsedRatingCount.equals(\"\"))\n {\n numStars[i] = Integer.parseInt(unparsedRatings.get(i).text());\n }\n else\n {\n // No ratings could be found\n numStars[i] = 0;\n }\n }\n\n reviewStats = new ReviewStats(numStars);\n }\n else\n {\n reviewStats = new ReviewStats(numStars);\n }\n }\n catch (IOException ioe)\n {\n ioe.printStackTrace();\n }\n }\n }", "public static void populateViewHolder(StatisticsViewHolder holder, Object siteStat)\n {\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "private void summarizeTimeslot ()\n {\n if (null == brokers) {\n // first time through\n brokers = new ArrayList<>();\n stats = new HashMap<>();\n\n data.print(\"Broker Name,\");\n data.print(\"Power Type,\");\n data.print(\"Customers,\");\n data.print(\"Usage (kWh),\");\n data.println(\"Income Gained\");\n\n // set up the maps of brokers, and stats by power type\n for (Broker broker : brokerRepo.findRetailBrokers())\n {\n brokers.add(broker);\n stats.put(broker, new HashMap<>());\n for (PowerType type : powerTypes)\n {\n StatsTracked theseStats = new StatsTracked();\n HashMap<PowerType, StatsTracked> map = stats.get(broker);\n map.put(type, theseStats);\n stats.put(broker, map);\n }\n }\n\n // store customer statistics\n\n }\n\n if (ttx.size() > 0) {\n // there are some signups and withdraws here\n for (TariffTransaction tx : ttx) {\n Broker broker = tx.getBroker();\n PowerType type = tx.getTariffSpec().getPowerType();\n HashMap<PowerType, StatsTracked> brokerMap = stats.get(broker);\n StatsTracked theseStats = brokerMap.get(type);\n if (tx.getTxType() == TariffTransaction.Type.CONSUME ||\n tx.getTxType() == TariffTransaction.Type.PRODUCE) {\n theseStats.updateUsage(tx.getKWh());\n theseStats.updateProfit(tx.getCharge());\n }\n else if (tx.getTxType() == TariffTransaction.Type.SIGNUP)\n theseStats.updateCustomers(tx.getCustomerCount());\n\n // reupdate the tracking...\n brokerMap.put(type, theseStats);\n stats.put(broker, brokerMap);\n }\n }\n ttx.clear();\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}", "private void addIdleUsage() {\n final double suspendPowerMaMs = (mTypeBatteryRealtimeUs / 1000) *\n mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND);\n final double idlePowerMaMs = (mTypeBatteryUptimeUs / 1000) *\n mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE);\n final double totalPowerMah = (suspendPowerMaMs + idlePowerMaMs) / (60 * 60 * 1000);\n if (DEBUG && totalPowerMah != 0) {\n Log.d(TAG, \"Suspend: time=\" + (mTypeBatteryRealtimeUs / 1000)\n + \" power=\" + makemAh(suspendPowerMaMs / (60 * 60 * 1000)));\n Log.d(TAG, \"Idle: time=\" + (mTypeBatteryUptimeUs / 1000)\n + \" power=\" + makemAh(idlePowerMaMs / (60 * 60 * 1000)));\n }\n\n if (totalPowerMah != 0) {\n addEntry(BatterySipper.DrainType.IDLE, mTypeBatteryRealtimeUs / 1000, totalPowerMah);\n }\n }", "protected void updateSummaries() { }", "protected void updateSummaries() { }", "private String getItemStats(ItemType item, int level) {\n\t\tString stats = \"\";\n\t\tif (item instanceof WeaponType) {\n\t\t\tfloat multipler = ((WeaponType) item)\n\t\t\t\t\t.getItemLevelMultipliers()[level - 1];\n\t\t\tstats = \"Name: \" + item.getName() + \"\\nType: Weapon\\nDamage: \"\n\t\t\t\t\t+ (int) (((WeaponType) item).getWeaponDamage() * multipler)\n\t\t\t\t\t+ \"\\nSpeed: \"\n\t\t\t\t\t+ (int) (((WeaponType) item).getWeaponSpeed() * multipler)\n\t\t\t\t\t+ \"\\nRange: \"\n\t\t\t\t\t+ (int) (((WeaponType) item).getWeaponRange() * multipler);\n\t\t} else if (item instanceof ArmourType) {\n\t\t\tfloat multiplier = ((ArmourType) item)\n\t\t\t\t\t.getItemLevelMultipliers()[level - 1];\n\t\t\tstats = \"Name: \" + this.getName() + \"\\nType: Armour\\nArmour: \"\n\t\t\t\t\t+ (int) (((ArmourType) item).getArmourValue() * multiplier)\n\t\t\t\t\t+ \"\\nMaxHealth: \"\n\t\t\t\t\t+ (int) (((ArmourType) item).getArmourHealth() * multiplier)\n\t\t\t\t\t+ \"\\nMove Speed: \"\n\t\t\t\t\t+ (int) (((ArmourType) item).getMoveSpeed() * multiplier);\n\t\t} else if (item instanceof SpecialType) {\n\t\t\tstats = item.getDescription();\n\t\t}\n\t\treturn stats;\n\t}", "public void updateAllSummaries() {\r\n for (WjrClassItem classItem : classItems.values()) {\r\n classItem.updateSummary(this);\r\n }\r\n root.updateSummary(this);\r\n }", "public void fillUserStats(){\n\t\t \t\t\t \t\n\t\t \tif (curResults.getCount()==0){ // sets to 0 if there are no results\n\t\t \t\ttxtTime.setText(\"0\");\n\t\t \t\ttxtDate.setText(\"0\");\n\n\t\t \t}\n\t\t \telse{ //sets them to the users last result if there are results\n\t\t \t\tcurResults.moveToLast();\n\t\t \t\ttxtTime.setText(curResults.getString(3));\n\t\t \t\ttxtDate.setText(curResults.getString(2));\n\t\t \t}\n\t\t }", "public void upgrade(){\n\n //upgrade stats\n this.setLevel(this.getLevel() + 1);\n this.setMaxHealth(this.getMaxHealth() + 500);\n this.setHealth(this.getHealth() + 500);\n this.maxCapacity += 20;\n\n }", "public void addPlayerToStats(Player player) {\n\t\tfindForPlayer(player);\n\t}", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "private void UpdateAdds() {\n Adds = (Level + CurrentHealth)/10;\n }", "public void updateWithTestStats() {\n\t\tBasicDBObject updateQuery = new BasicDBObject(); \n\t\tBasicDBObject fieldSets = new BasicDBObject(); \n\t\tfieldSets.put(\"numFailedTests\", numFailedTests); \n\t\tfieldSets.put(\"numPassedTests\", numPassedTests); \n\t\tfieldSets.put(\"testSuiteName\", testSuiteName); \n\t\tfieldSets.put(\"testEndTime\", testEndTime); \n\t\tupdateQuery.put( \"$set\", fieldSets); \n\t\tappendData(updateQuery);\n\t}", "private void updateAllBonuses() {\n\t\tfor(int i = 0; i < bonuses.length; i++)\n\t\t\tbonuses[i] = 0;\n\t\tfor(Item item : getItems()) {\n\t\t\tupdateBonus(null, item);\n\t\t}\n\t}", "private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}", "@DebugLog\n public void setItems(ArrayList<Update> items) {\n if (items != null) {\n for (Update item : items) {\n mItems.add(new OverviewItem(item));\n }\n }\n notifyDataSetChanged();\n //Remove the isloading\n if (getBasicItemCount() <= 0) return;\n try {\n OverviewItem overviewItem = mItems.get(getBasicItemCount() - items.size() - 1);\n if (overviewItem.isLoadingItem) {\n mItems.remove(getBasicItemCount() - items.size() - 1);\n notifyDataSetChanged();\n }\n }catch(ArrayIndexOutOfBoundsException e)\n {\n //theres no loading overview\n return;\n }\n\n }", "public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}", "protected void addMaterialStats(MaterialId location, IMaterialStats... stats) {\n allMaterialStats.computeIfAbsent(location, materialId -> new ArrayList<>())\n .addAll(Arrays.asList(stats));\n }", "protected abstract void addMaterialStats();", "public void saveStats() {\n this.saveStats(null);\n }", "@Override\n\tpublic void onAdd(final CSimulation game, final CUnit unit) {\n\t\tfinal List<CUnitAttack> unitSpecificAttacks = unit.getUnitSpecificAttacks();\n\t\tfinal int originalAttackCount = unitSpecificAttacks.size();\n\t\toriginalBaseAttackRates = new float[originalAttackCount];\n\t\tfor (int i = 0; i < originalAttackCount; i++) {\n\t\t\tfinal CUnitAttack originalAttack = unitSpecificAttacks.get(i);\n\t\t\toriginalBaseAttackRates[i] = originalAttack.getCooldownTime();\n\t\t}\n\t\tunit.setDisableAttacks(true);\n\t\tsuper.onAdd(game, unit);\n\t}", "private void initializeStats() {\n for (Stat stat:Stat.values()) {\n stats.put(stat, initialValue);\n }\n }", "@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }", "public void addStatsForHand(int handId, int handWager, int dealerTotal, int playerTotal, int playerChipCount, String handOutcome) {\n\t\thandStats.add(new HandStats(handId, handWager, dealerTotal, playerTotal, playerChipCount, handOutcome));\n\t}", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "public void resetStats(){\n curA = attack;\n curD = defense;\n curSpA = spAttack;\n curSpD = spDefense;\n curS = speed;\n }", "private static void updateTotals()\r\n\t{\r\n\t\ttaxAmount = Math.round(subtotalAmount * salesTax / 100.0);\r\n\t\ttotalAmount = subtotalAmount + taxAmount;\r\n\t}", "public void resetStats() {\n recentStats = new Stats();\n }", "@VisibleForTesting\n void reportOnce() {\n additionalAttributes = additionalAttributesSupplier.get();\n if (additionalAttributes == null) {\n additionalAttributes = Collections.emptyMap();\n }\n\n metricRegistry.getGauges().forEach(this::reportGauge);\n\n metricRegistry.getCounters().forEach(this::reportCounter);\n\n metricRegistry.getMeters().forEach(this::reportMeter);\n\n metricRegistry.getHistograms().forEach(this::reportHistogram);\n\n metricRegistry.getTimers().forEach(this::reportTimer);\n }", "void update_time_avg_stats() {\n double time_since_last_event;\n\n\t\t/* Compute time since last event, and update last-event-time marker. */\n\n time_since_last_event = sim_time - time_last_event;\n time_last_event = sim_time;\n\n\t\t/* Update area under number-in-queue function. */\n\n area_num_in_q += num_in_q * time_since_last_event;\n\n\t\t/* Update area under server-busy indicator function. */\n\n area_server_status += server_status.ordinal() * time_since_last_event;\n }", "public void getStats(){\n for (Shelf shelf : this.shelves){\n if (!shelf.isEmpty()){\n shelf.printStats();\n }\n\n }\n }", "private void stats ( ) {\n\n nodes = 0;\n depth = 0;\n\n parse(((GPIndividual)program).trees[0].child);\n\n }", "public void use(Consume item)\r\n {\r\n int gain = item.getRating();\r\n health += gain;\r\n \r\n if (health > maxHealth)\r\n health = maxHealth;\r\n \r\n say(\"I gained \" + gain + \" health by using \" + item.getName() + \" and now have \" + health + \"/\" + maxHealth);\r\n \r\n items.remove(item);\r\n }", "protected void addCount(List<Statistic> stats, NxQueryBuilder qb) {\n EsResult esResult = Framework.getService(ElasticSearchService.class).queryAndAggregate(qb);\n stats.add(Statistic.of(STATS_COUNT, STATS_COUNT, STATS_COUNT, null,\n esResult.getElasticsearchResponse().getHits().getTotalHits().value));\n }", "public abstract void mergeToGlobalStats(SolrQueryRequest req,\n List<ShardResponse> responses);", "@Override\n public void apply(MAltitude alt) {\n updateFlightStats();\n }", "private void resetStats() {\n }", "public Builder addStats(PersistentStats stats) {\n if (stats == null) {\n return this;\n }\n Map<String, Map<String, String>> parsedStat = stats.getMapFields();\n Map<String, Map<String, String>> currentStats = _stats.getMapFields();\n for (String statName : parsedStat.keySet()) {\n if (!currentStats.containsKey(statName)) {\n currentStats.put(statName, parsedStat.get(statName));\n }\n }\n return this;\n }", "public void getStatus()\r\n {\r\n //if this person has no weapon or armor, these values are kept\r\n String weaponName = \"bare hands\";\r\n String armorName = \"none\";\r\n int weaponAtk = 0;\r\n int armorDef = 0;\r\n \r\n if (weapon!=null)\r\n {\r\n weaponName = weapon.getName();\r\n weaponAtk = weapon.getRating();\r\n }\r\n if (armor!=null)\r\n {\r\n armorName = armor.getName();\r\n armorDef = armor.getRating();\r\n }\r\n \r\n String itemList = \"\";\r\n for (Thing t : items)\r\n itemList += t.getName() + \", \";\r\n \r\n System.out.println(\"Health: \" + health + \"/\" + maxHealth + \"\\n\" +\r\n \"ATK: \" + attack + \"\\n\" +\r\n \"DEF: \" + defense + \"\\n\" +\r\n \"Weapon: \" + weaponName + \" (\" + weaponAtk + \" ATK\" + \")\" + \"\\n\" +\r\n \"Armor: \" + armorName + \" (\" + armorDef + \" DEF\" + \")\");\r\n }", "public void useItem(Item i)\n\t{\n\t\tString name = i.getName();\n\t\tPlayer player = GameController.getPlayer();\n\t\t\n\t\tswitch(name)\n\t\t{\n\t\tcase \"Polar Pop\":\n\t\t\tplayer.addHealth(30);\n\t\t\tTextHandler.displayText(\"Mmm, tastes like root beer. You restored 30 HP.\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Klondike Bar\":\n\t\t\tplayer.addHealth(50);\n\t\t\tTextHandler.displayText(\"What would you dooOOOoooo, for a klondike bar? Ha. You restored 50 HP.\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Big tiddy goth GF\":\n\t\t\tplayer.setHealth(player.getMaxHealth());\n\t\t\tplayer.setMana(player.getMaxMana());\n\t\t\tplayer.setXp(player.getMaxXp());\n\t\t\tTextHandler.displayText(\"Very scrumptious. You have regained all life and mana, and have even gained a new level\");\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tTextHandler.displayText(\"There is no use for \" + name + \".\");\n\t\t}\n\t}", "protected void realizeAll ()\r\n {\r\n for ( final String itemId : this.itemSet.keySet () )\r\n {\r\n try\r\n {\r\n realizeItem ( itemId );\r\n }\r\n catch ( final AddFailedException e )\r\n {\r\n Integer rc = e.getErrors ().get ( itemId );\r\n if ( rc == null )\r\n {\r\n rc = -1;\r\n }\r\n// logger.warn ( String.format ( \"Failed to add item: %s (%08X)\", itemId, rc ) );\r\n\r\n }\r\n catch ( final Exception e )\r\n {\r\n// logger.warn ( \"Failed to realize item: \" + itemId, e );\r\n }\r\n }\r\n }", "@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }", "public void setupStatsEndpoint() {\n HttpHandler handler =\n (httpExchange) -> {\n this.increaseEndpointHitFrequency(this.getStatsApiEndpoint());\n StringBuilder response = new StringBuilder();\n Set<Map.Entry<String, Integer>> frequencySet = this.getEndpointFrequencyEntrySet();\n for (Map.Entry<String, Integer> entry : frequencySet) {\n response\n .append(entry.getKey())\n .append(\":\")\n .append(entry.getValue())\n .append(System.getProperty(\"line.separator\"));\n }\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, response.length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(response.toString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.statsApiEndpoint, this.server.createContext(this.statsApiEndpoint));\n this.setHandler(this.getStatsApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.statsApiEndpoint, 0);\n }", "public void Loadata(){ // fill the choice box\n stats.removeAll(stats);\n String seller = \"Seller\";\n String customer = \"Customer\";\n stats.addAll(seller,customer);\n Status.getItems().addAll(stats);\n }", "private void _updateStatistics(String priority) {\n _numDropped++;\n if (\"0\".equals(priority)) {\n _numGuides++;\n } else if (\"1\".equals(priority)) {\n _numP1++;\n } else if (\"2\".equals(priority)) {\n _numP2++;\n } else if (\"3\".equals(priority)) {\n _numP3++;\n }\n }", "public Stats addToAllStats(int amountToAdd) {\n Stats sum = new Stats();\n for (Stat stat : Stat.values()) {\n Integer value = getStat(stat);\n if (value != null) {\n sum.setStat(stat, value + amountToAdd);\n }\n }\n return sum;\n }", "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "public void reportStats() {\n System.out.println(\"Number of requests: \" + (requestCount - warmUpRequests));\n System.out.println(\"Number of hits: \" + hitCount);\n System.out.println(\"hit ratio: \" + (double) hitCount / (requestCount - warmUpRequests));\n System.out.println(\"Average hit cost: \" + (double) hitCost / hitCount);\n }", "private void updateRecord(){\r\n\t\tgameStats.setVictory(victory);\r\n\t\tgameStats.setDays(days);\r\n\t\tgameStats.setBuildings(buildingCount);\r\n\t\tgameStats.setResources(wood + stone + food);\r\n\t}", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }", "private void refreshShareItemInfo() {\n boolean hasRequredFields = checkIfHasRequiredFields(getMainItem());\n\n if (getMainItem() instanceof BoxFile){\n BoxRequestsFile.GetFileInfo request = mFileApi.getInfoRequest(getMainItem().getId());\n if (hasRequredFields){\n request.setIfNoneMatchEtag(getMainItem().getEtag());\n }\n executeRequest(request);\n } else if (getMainItem() instanceof BoxFolder){\n BoxRequestsFolder.GetFolderInfo request = mFolderApi.getInfoRequest(getMainItem().getId());\n if (hasRequredFields){\n request.setIfNoneMatchEtag(getMainItem().getEtag());\n }\n executeRequest(request);\n } else if (getMainItem() instanceof BoxBookmark){\n BoxRequestsBookmark.GetBookmarkInfo request = mBookmarkApi.getInfoRequest(getMainItem().getId());\n if (hasRequredFields){\n request.setIfNoneMatchEtag(getMainItem().getEtag());\n }\n executeRequest(request);\n }\n }", "private void clearStats() {\n stats_ = emptyProtobufList();\n }", "public void rollStats() {\n\t\tRandom roll = new Random();\n\t\tint rolled;\n\t\tint sign;\n\t\t\n\t\t\n\t\trolled = roll.nextInt(4);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetMaxHealth(getMaxHealth() + rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t} else {\n\t\t\tsetMaxHealth(getMaxHealth() - rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetAttack(getAttack() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetAttack(getAttack() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetDefense(getDefense() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetDefense(getDefense() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetSpeed(getSpeed() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetSpeed(getSpeed() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t}", "public abstract void sendGlobalStats(ResponseBuilder rb, ShardRequest outgoing);", "public void handleItem(String item) {\r\n switch (item) {\r\n // Restore all health points\r\n case \"potionvie\":\r\n setHealthPoints(5);\r\n System.out.println(\"Vous trouvez une potion de vie!\");\r\n break;\r\n // Restore health points by 1\r\n case \"coeur\":\r\n if (getHealthPoints() < 5) {\r\n setHealthPoints(getHealthPoints() + 1);\r\n }\r\n System.out.println(\"Vous trouvez un coeur!\");\r\n break;\r\n // Increase hexaforce count by 1\r\n case \"hexaforce\":\r\n setHexaforces(getHexaforces() + 1);\r\n System.out.println(\"Vous trouvez un morceau d'Hexaforce!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n }", "public void addHealth(int amt) {\n currentHealth = currentHealth + amt;\n }", "public void updateStatistics(List<Creature> mobs) {\n time++;\n statisticsPane.printStatistics(mobs, time);\n }", "public static void updateDeclareAttackStatistic() {\r\n Game.statisticsNumAttDeclarations++;\r\n }", "public void processAppBatteryUsage() {\n create();\n\n SensorManager sensorManager = (SensorManager) mContext\n .getSystemService(Context.SENSOR_SERVICE);\n final int which = mStatsType;\n final int speedSteps = mPowerProfile.getNumSpeedSteps();\n final double[] powerCpuNormal = new double[speedSteps];\n final long[] cpuSpeedStepTimes = new long[speedSteps];\n for (int p = 0; p < speedSteps; p++) {\n powerCpuNormal[p] = mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE, p);\n }\n final double averageCostPerByte = getAverageDataCost();\n long uSecTime = mStats.computeBatteryRealtime(SystemClock.elapsedRealtime() * 1000, which);\n long appWakelockTime = 0;\n // BatterySipper osApp = null;\n mStatsPeriod = uSecTime;\n SparseArray<? extends Uid> uidStats = mStats.getUidStats();\n final int NU = uidStats.size();\n for (int iu = 0; iu < NU; iu++) {\n Uid u = uidStats.valueAt(iu);\n double power = 0;\n double highestDrain = 0;\n String packageWithHighestDrain = null;\n //mUsageList.add(new AppUsage(u.getUid(), new double[] {power}));\n Map<String, ? extends BatteryStats.Uid.Proc> processStats = u.getProcessStats();\n long cpuTime = 0;\n long cpuFgTime = 0;\n long wakelockTime = 0;\n long gpsTime = 0;\n if (processStats.size() > 0) {\n // Process CPU time\n for (Map.Entry<String, ? extends BatteryStats.Uid.Proc> ent : processStats\n .entrySet()) {\n Log.print(\"Process name = \" + ent.getKey());\n Uid.Proc ps = ent.getValue();\n final long userTime = ps.getUserTime(which);\n final long systemTime = ps.getSystemTime(which);\n final long foregroundTime = ps.getForegroundTime(which);\n cpuFgTime += foregroundTime * 10; // convert to millis\n final long tmpCpuTime = (userTime + systemTime) * 10; // convert to millis\n int totalTimeAtSpeeds = 0;\n // Get the total first\n for (int step = 0; step < speedSteps; step++) {\n cpuSpeedStepTimes[step] = ps.getTimeAtCpuSpeedStep(step, which);\n totalTimeAtSpeeds += cpuSpeedStepTimes[step];\n }\n if (totalTimeAtSpeeds == 0)\n totalTimeAtSpeeds = 1;\n // Then compute the ratio of time spent at each speed\n double processPower = 0;\n for (int step = 0; step < speedSteps; step++) {\n double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds;\n processPower += ratio * tmpCpuTime * powerCpuNormal[step];\n }\n cpuTime += tmpCpuTime;\n power += processPower;\n if (packageWithHighestDrain == null || packageWithHighestDrain.startsWith(\"*\")) {\n highestDrain = processPower;\n packageWithHighestDrain = ent.getKey();\n } else if (highestDrain < processPower && !ent.getKey().startsWith(\"*\")) {\n highestDrain = processPower;\n packageWithHighestDrain = ent.getKey();\n }\n }\n Log.print(\"Max drain of \" + highestDrain + \" by \" + packageWithHighestDrain);\n }\n if (cpuFgTime > cpuTime) {\n if (cpuFgTime > cpuTime + 10000) {\n Log.print(\"WARNING! Cputime is more than 10 seconds behind Foreground time\");\n }\n cpuTime = cpuFgTime; // Statistics may not have been gathered yet.\n }\n power /= 1000;\n\n // Process wake lock usage\n Map<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats = u.getWakelockStats();\n for (Map.Entry<String, ? extends BatteryStats.Uid.Wakelock> wakelockEntry : wakelockStats\n .entrySet()) {\n Uid.Wakelock wakelock = wakelockEntry.getValue();\n // Only care about partial wake locks since full wake locks\n // are canceled when the user turns the screen off.\n BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL);\n if (timer != null) {\n wakelockTime += timer.getTotalTimeLocked(uSecTime, which);\n }\n }\n wakelockTime /= 1000; // convert to millis\n appWakelockTime += wakelockTime;\n\n // Add cost of holding a wake lock\n power += (wakelockTime * mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_AWAKE)) / 1000;\n\n // Add cost of data traffic\n long tcpBytesReceived = u.getTcpBytesReceived(mStatsType);\n long tcpBytesSent = u.getTcpBytesSent(mStatsType);\n power += (tcpBytesReceived + tcpBytesSent) * averageCostPerByte;\n\n // Add cost of keeping WIFI running.\n long wifiRunningTimeMs = u.getWifiRunningTime(uSecTime, which) / 1000;\n mAppWifiRunning += wifiRunningTimeMs;\n power += (wifiRunningTimeMs * mPowerProfile.getAveragePower(PowerProfile.POWER_WIFI_ON)) / 1000;\n\n // Process Sensor usage\n Map<Integer, ? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();\n for (Map.Entry<Integer, ? extends BatteryStats.Uid.Sensor> sensorEntry : sensorStats\n .entrySet()) {\n Uid.Sensor sensor = sensorEntry.getValue();\n int sensorType = sensor.getHandle();\n BatteryStats.Timer timer = sensor.getSensorTime();\n long sensorTime = timer.getTotalTimeLocked(uSecTime, which) / 1000;\n double multiplier = 0;\n switch (sensorType) {\n case Uid.Sensor.GPS:\n multiplier = mPowerProfile.getAveragePower(PowerProfile.POWER_GPS_ON);\n gpsTime = sensorTime;\n break;\n default:\n android.hardware.Sensor sensorData = sensorManager.getDefaultSensor(sensorType);\n if (sensorData != null) {\n multiplier = sensorData.getPower();\n Log.print(\"Got sensor \" + sensorData.getName() + \" with power = \"\n + multiplier);\n }\n }\n power += (multiplier * sensorTime) / 1000;\n }\n\n // Log.print(\"UID \" + u.getUid() + \": power=\" + power);\n Log.print(\"PACKAGE \" + packageWithHighestDrain + \": power=\" + power);\n\n // // Add the app to the list if it is consuming power\n // if (power != 0 || u.getUid() == 0) {\n // BatterySipper app = new BatterySipper(getActivity(), mRequestQueue, mHandler,\n // packageWithHighestDrain, DrainType.APP, 0, u,\n // new double[] {power});\n // app.cpuTime = cpuTime;\n // app.gpsTime = gpsTime;\n // app.wifiRunningTime = wifiRunningTimeMs;\n // app.cpuFgTime = cpuFgTime;\n // app.wakeLockTime = wakelockTime;\n // app.tcpBytesReceived = tcpBytesReceived;\n // app.tcpBytesSent = tcpBytesSent;\n // if (u.getUid() == Process.WIFI_UID) {\n // mWifiSippers.add(app);\n // } else if (u.getUid() == Process.BLUETOOTH_GID) {\n // mBluetoothSippers.add(app);\n // } else {\n // mUsageList.add(app);\n // }\n // if (u.getUid() == 0) {\n // osApp = app;\n // }\n // }\n // if (u.getUid() == Process.WIFI_UID) {\n // mWifiPower += power;\n // } else if (u.getUid() == Process.BLUETOOTH_GID) {\n // mBluetoothPower += power;\n // } else {\n // if (power > mMaxPower) mMaxPower = power;\n // mTotalPower += power;\n // }\n // if (DEBUG) Log.i(TAG, \"Added power = \" + power);\n }\n\n // The device has probably been awake for longer than the screen on\n // time and application wake lock time would account for. Assign\n // this remainder to the OS, if possible.\n // if (osApp != null) {\n // long wakeTimeMillis = mStats.computeBatteryUptime(\n // SystemClock.uptimeMillis() * 1000, which) / 1000;\n // wakeTimeMillis -= appWakelockTime - (mStats.getScreenOnTime(\n // SystemClock.elapsedRealtime(), which) / 1000);\n // if (wakeTimeMillis > 0) {\n // double power = (wakeTimeMillis\n // * mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_AWAKE)) / 1000;\n // osApp.wakeLockTime += wakeTimeMillis;\n // osApp.value += power;\n // osApp.values[0] += power;\n // if (osApp.value > mMaxPower) mMaxPower = osApp.value;\n // mTotalPower += power;\n // }\n // }\n }", "private void calculateHeroStats() {\n int[] mods = calculateMods(heroRoll.hero, 40, skillOn);\n makePopupStat(hp, heroRoll, heroRoll.hero.HP, mods[0], getResources().getString(R.string.hp));\n makePopupStat(atk, heroRoll, heroRoll.hero.atk, mods[1], getResources().getString(R.string.atk));\n makePopupStat(spd, heroRoll, heroRoll.hero.speed, mods[2], getResources().getString(R.string.spd));\n makePopupStat(def, heroRoll, heroRoll.hero.def, mods[3], getResources().getString(R.string.def));\n makePopupStat(res, heroRoll, heroRoll.hero.res, mods[4], getResources().getString(R.string.res));\n\n int totalMods = mods[0] + mods[1] + mods[2] + mods[3] + mods[4];\n String bstText = heroRoll.getBST(getBaseContext()) < 0 ? \"?\" : heroRoll.getBST(getBaseContext()) - totalMods + \"\";\n bst.setText(getResources().getString(R.string.bst) + \" \" + bstText);\n bst.setTextColor(getResources().getColor(R.color.colorPrimary));\n }", "public static String addToStatistics(){\n\t\tString addedStats = Start.addToStatistics();\n\t\t//add\n\t\t//e.g.: addedStats += MyReport();\n\t\treturn addedStats;\n\t}", "public void theStats(Spy bond, Map grid, PowerUp p) {\r\n\t\tif(p != null){\r\n\t\t\tif (bond.getLives() != 0) {\r\n\t\r\n\t\t\tSystem.out.print(\"\\nThe spy has \" + bond.getLives()\r\n\t\t\t\t\t+ \" lives remaining.\");\r\n\t\t} else {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.print(\"\\nThe spy has no lives remaining! Use your last well!\");\r\n\t\t}\r\n\t\tif (p.hasBullet() == 1) {\r\n\t\t\tSystem.out.print(\"\\nThe spy has \" + p.hasBullet()\r\n\t\t\t\t\t+ \" bullet remaining.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.print(\"\\nThe spy has no bullets remaining!\");\r\n\t\t}\r\n\t\tif (grid.ninjaCount() != 0) {\r\n\t\t\tSystem.out.println(\"\\nThere are \" + grid.ninjaCount()\r\n\t\t\t\t\t+ \" ninjas remaining!\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No ninjas remain! Happy briefcase hunting!\");\r\n\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void updateUpdatesTheMemoryRecordsForAllItems() {\n FirstAidItem firstAidItem = Tests.buildFirstAidItem(Point.pt(2.5, 3.5));\n WeaponItem weaponItem = Tests.buildWeaponItem(Point.pt(1.5, 0.5), Weapon.WeaponType.HANDGUN);\n\n Bot bot = Tests.mockBot();\n ItemMemory itemMemory = new ItemMemory(bot, asList(firstAidItem, weaponItem));\n\n firstAidItem.deactivate();\n\n when(bot.isInFov(firstAidItem)).thenReturn(true);\n when(bot.isInFov(weaponItem)).thenReturn(false);\n\n itemMemory.update(100);\n\n assertThat(itemMemory.get(firstAidItem).getState(), is(ItemMemoryRecord.State.INACTIVE_UNCERTAIN));\n assertThat(itemMemory.get(weaponItem).getState(), is(ItemMemoryRecord.State.UNKNOWN));\n }", "private void additems() {\n MaVolleyRequest.getInstance(getApplicationContext()).GetMethodRequest(getLink(), null, new VolleyRequestOnResultListener() {\n @Override\n public void onSucces(String result) {\n Log.d(\"qwerty\", getLink());\n ResearchResultBeanz item = (new Gson()).fromJson((new Gson()).fromJson(result, JsonObject.class).getAsJsonObject(\"data\"), ResearchResultBeanz.class);\n if (adapter == null) {\n adapter = new GridViewAdapter2(ImageGridViewActivity.this, Utils.fromArrayToList(item.items));\n gridView.setAdapter(adapter);\n } else {\n adapter.appendData (Utils.fromArrayToList(item.items));\n }\n flag_loading = false;\n }\n @Override\n public void onFailure(String error) {\n makeToast(\"Loading failure\");\n flag_loading = false;\n }\n });\n }", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "@Override\n\tpublic void onDamage(WorldObj obj, Items item) {\n\n\t\tif(is_stunned) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint dmg = (int) item.type.ATK;\n\t\t\n\t\tOnScreenText.AddText(\"\"+dmg, bounds.x , bounds.y + 1.1f);\n\t\t\n\t\tvelX = obj.direction * 5;\n\t\tvelY = 5;\n\t\tgrounded = false;\n\t\t\n\t\tHP -= dmg;\n\t\t\n\n\t\tstun_counter = 0;\n\t\t\n\t\tif(HP <= 0 && !isDead) {\n\t\t\tonDeath();\n\t\t}\n\t\t\n\t}", "public void add(T item) {\n\t\tcounts.put(item, counts.getOrDefault(item, 0) + 1);\n\t}", "@Override\n public void enterInitLevel(statsDSLParser.InitLevelContext ctx) {\n final StatsData statsData = new StatsData();\n\n ctx.statDef().forEach((statDefContext) -> {\n\n final String number = statDefContext.NUMBER().getText();\n\n if (statDefContext.stat().AGI() != null) {\n statsData.setAgi(number);\n }\n else if (statDefContext.stat().ATK() != null) {\n statsData.setAtk(number);\n }\n else if (statDefContext.stat().DEF() != null) {\n statsData.setDef(number);\n }\n else if (statDefContext.stat().MAG() != null) {\n statsData.setMag(number);\n }\n else if (statDefContext.stat().HP() != null) {\n statsData.setHp(number);\n }\n });\n\n statsData.setForLevel(ctx.NUMBER().getText());\n statsData.setNeededXp(ctx.xpDef().NUMBER().getText());\n if(!statsData.isValid()) {\n throw new RuntimeException(\"Error in stats data at \" + ctx.getText());\n }\n\n currentClassData.addStatsData(statsData);\n }", "private void addPortMetric(Map<String, Object> context, PortStat stat) {\n Stat fePortStat = new Stat();\n fePortStat.setServiceType(Constants._Block);\n fePortStat.setTimeCollected(stat.sampleTime);\n fePortStat.setTotalIOs(stat.iops);\n fePortStat.setKbytesTransferred(stat.kbytes);\n fePortStat.setNativeGuid(stat.port.getNativeGuid());\n fePortStat.setResourceId(stat.port.getId());\n @SuppressWarnings(\"unchecked\")\n List<Stat> metrics = (List<Stat>) context.get(Constants._Stats);\n metrics.add(fePortStat);\n }", "private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }", "private void updateStats(final int nbTasks, final long elapsed, final long elapsedInNode) {\n //server.getStatsManager().taskExecuted(newBundle.getTaskCount(), elapsed / 1000000L, newBundle.getNodeExecutionTime() / 1000000L);\n JPPFStatistics stats = JPPFDriver.getInstance().getStatistics();\n stats.addValue(JPPFStatisticsHelper.TASK_DISPATCH, nbTasks);\n stats.addValues(JPPFStatisticsHelper.EXECUTION, elapsed, nbTasks);\n stats.addValues(JPPFStatisticsHelper.NODE_EXECUTION, elapsedInNode, nbTasks);\n stats.addValues(JPPFStatisticsHelper.TRANSPORT_TIME, elapsed - elapsedInNode, nbTasks);\n }", "protected void postRun() {\r\n\t\tthis.calculateFlowBandwidthHops();\r\n\t\tdouble abt = this.ABT();\r\n\t\tdouble agt = this.AGT();\r\n\t\tthis.metrics.add(new ResultMetric(\"ABT\", abt));\r\n\t\tthis.metrics.add(new ResultMetric(\"AGT\", agt));\r\n\t\tthis.metrics.add(new ResultMetric(\"Hops\", this.Hops()));\r\n\t\tthis.metrics.add(new ResultMetric(\"AveHops\", this.Hops()\r\n\t\t\t\t/ this.flows.size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"SuccCount\", this.successfulCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"FailCount\", this.failedCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"ServerNum\", this.dcn\r\n\t\t\t\t.getServerUUIDs().size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"ThroughputPerLink\", abt\r\n\t\t\t\t/ this.dcn.linkCount()));\r\n\t}", "public abstract void statsReset();", "@Override\n public void bindTo(final MeterRegistry registry) {\n final Supplier<PoolStats> stats = memoizeWithExpiration(manager::getTotalStats, 1, MINUTES);\n\n gauge(registry, \"available\", stats, PoolStats::getAvailable);\n gauge(registry, \"leased\", stats, PoolStats::getLeased);\n gauge(registry, \"max\", stats, PoolStats::getMax);\n gauge(registry, \"pending\", stats, PoolStats::getPending);\n }", "public void reloadAll() {\n for (String str : this.mTunableLookup.keySet()) {\n String stringForUser = Settings.Secure.getStringForUser(this.mContentResolver, str, this.mCurrentUser);\n for (TunerService.Tunable tunable : this.mTunableLookup.get(str)) {\n tunable.onTuningChanged(str, stringForUser);\n }\n }\n }", "@Override\n public void addInfo(CurrentPlayer currentPlayer) {\n godPower.addInfo(currentPlayer);\n }", "private void callForStats() throws SQLException, ClassNotFoundException{\n\t\tString[] stats;\n\t\toutputTA.setText(\"\");\n\t\tif(custTypeCB.getSelectedIndex() == Globals.SINGLE_CUST)\n\t\t\tstats = dBConnection.getStats(Integer.parseInt(custIdTF.getText()));\n\t\telse\n\t\t\tstats = dBConnection.getStats(custTypeCB.getSelectedIndex());\n\t\t\n\t\tfor(String str : stats){\n\t if(str == null)\n\t \tcontinue;\n\t outputTA.append(str+\"\\n\");\n\t\t}\n\t}", "public void awardStat(ResourceLocation debug1) {\n/* 1498 */ awardStat(Stats.CUSTOM.get(debug1));\n/* */ }", "public void setStats(Map aMap) {\n stats = aMap;\n }", "@Override\n\tpublic void execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}", "@Ignore(\"Google's LRU map max size is not predictable\")\n\t@Override\n\tpublic void statsTest()\n\t{\n\t}" ]
[ "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.5299954", "0.52892035", "0.52892035", "0.5245246", "0.5206936", "0.5190136", "0.5179846", "0.5159", "0.51545674", "0.5152371", "0.51489896", "0.5141891", "0.51199734", "0.5118431", "0.51184213", "0.5105399", "0.5092458", "0.5091973", "0.5086163", "0.5084874", "0.5083874", "0.5082708", "0.5070968", "0.5068921", "0.50688934", "0.5067405", "0.5047144", "0.50429446", "0.5039574", "0.5037563", "0.50336415", "0.5019805", "0.50128436", "0.5001371", "0.49918568", "0.49888346", "0.49886987", "0.49873003", "0.49743485", "0.4969196", "0.49532723", "0.49510348", "0.49497974", "0.49492794", "0.49389896", "0.49276137", "0.49179876", "0.49161458", "0.49141788", "0.49100712", "0.490199", "0.48958677", "0.4887779", "0.48797908", "0.48644572", "0.48639563", "0.48618734", "0.4858446", "0.48564914", "0.4854425", "0.48521325", "0.4849221", "0.484006", "0.4837961", "0.48376882", "0.48369402", "0.48275062", "0.48265412", "0.48084363", "0.47995588", "0.47948352", "0.479374", "0.47897", "0.47892237", "0.47775862", "0.47768775", "0.47714016", "0.47686008", "0.4767288", "0.47662738" ]
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 playerName) {\n this.playerName = playerName;\n }", "public Player(String username)\n\t{\n\t\tm_username = username;\n\t\tm_requests = new HashMap<String, RequestType>();\n\t}", "public Player(String name) {\r\n this.name = name;\r\n }", "public Player(String name) {\n this(name, null);\n }", "public Player(String name)\n\t{\n\t\tthis.name = name;\n\t}", "public Player(String name) {\r\n this.name = name;\r\n// Maxnum = 0;\r\n special = 0;\r\n index = 0;\r\n }", "public Player(String name)\n {\n // initialise instance variables\n this.name = name;\n // start out with $100 in your wallet\n wallet = new Wallet(100);\n inventory = new HashMap<String, Item>();\n currentRoom = null;\n olcc = new OLCC();\n\n }", "public Player(String name) {\n this.name = name;\n this.points = 0;\n }", "public Player(String name) {\n this.NAME = name;\n this.ownedCountries = new ArrayList<>();\n this.totArmyCount = 0;\n this.PlayerTurn = false;\n }", "public StudentPlayer() {\n super(\"260740998\");\n }", "public StudentPlayer() {\n super(\"260622641\");\n }", "public Player()\n\t{\n\t\tsetUserName(\"\");\n\t\tsetFamilyName(\"\");\n\t\tsetGivenName(\"\");\n\t\tsetGamesPlayed(0);\n\t\tsetGamesWon(0);\n\t\tsetGamesDrawn(0);\n\t}", "public Player(){\r\n\t\tname = \"\";\r\n\t\tchip = 0;\r\n\t\tbet = 0;\r\n\t\tplayerHand = new PlayerHand();\r\n\t\ttable = null;\r\n\t}", "public Player(){\n default_init();\n }", "public StudentPlayer() {\n super(\"260719721\");\n }", "public Player(String s) //only constructor\n {\n \tsuper(s,1,false);\n \tposition=-1;\n \tship=false;\n \tSetHealth();\n \tSetWealth();\n }", "public Player() {\n fleetMap = new Map();\n battleMap = new Map();\n sunkShipNum = 0;\n }", "public StudentPlayer() {\r\n super(\"260767897\");\r\n }", "public Player() {\r\n\t\tname=null;\r\n\t\tinitializeGameboard();\r\n\t\tlastRedNumber=2; \r\n\t\tlastYellowNumber=2;\r\n\t\tlastGreenNumber=12;\r\n\t\tlastBlueNumber=12;\r\n\t\tnegativePoints=0;\r\n }", "public Player(String name) {\n setName(name);\n setId(++idCounter);\n setHealthPoints(100);\n setYourTurn(false);\n }", "public Player(String name)\n\t{\n\t\tthis.money = START_MONEY;\n\t\tthis.name = name;\n\t}", "public Player()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.numPlayed = 0;\n\t\tthis.numCompleted = 0;\n\t\tthis.averageTime = new Time(0);\n\t\tthis.bestTime = new Time(0);\n\t\tthis.accuracy = 0;\n\t}", "public Player(Player p){\n this.dead = p.dead;\n this.hiddenTreasures = p.hiddenTreasures;\n this.level = p.level;\n this.name = p.name;\n this.pendingBadConsequence = p.pendingBadConsequence;\n this.visibleTreasures = p.visibleTreasures;\n }", "public AbstractPlayer() {\r\n }", "public Player()\r\n\t{\r\n\t\tscore = 0;\r\n\t\tsetPlayerName();\r\n\t}", "public Player1() {\n dbg = new DBG(DBG.PLAYERS, \"Player1\");\n }", "public Player(String playerId) {\n\t\tthis.playerid = playerId;\n\t\tthis.pieceType = null;\n\t}", "public Player(String Name)\n {\n // initialise instance variables\n score = 0;\n energy = 100;\n this.name = Name;\n items = new ArrayList<>();\n }", "Player(String name, int playerNumber, int age, int salary, PlayerStat playerStats) {\n this.name = name; \n this.playerNumber = playerNumber;\n this.age = age;\n this.salary = salary; \n this.playerStats = playerStats;\n\n this.playerRating = -1; //sets the rating as a clear wrong value\n }", "public Player2(){\n super();\n name=\"110\";\n }", "public Player() {\n\n\t\tnumberOfPlayers++;\n\t\tthis.playerNumber = \"Player \" + numberOfPlayers; \n\t\tthis.balance = 500.00; \n\t\tthis.numberOfLoans = 0;\n\t\tthis.score = 0;\n\t\tthis.inRound = true; \n\t}", "Player(String name){\n\t\tthis.name = name;\n\t}", "public ExtendedPlayer(EntityPlayer player)\n\t{\n\t\t// TODO: Do I need to worry that this constructor might be overwriting stored values?\n\t\tthis.player = player;\n\t\tthis.authyCell = \"\";\n\t\tthis.playerEmail = \"\";\n\t\tthis.authyID = \"\";\t\t\t\t\t\t\n\t\tthis.authySuccessDate = null;\t\t\t// By default user has never successfully completed 2FA phase.\n\t\tthis.playerAwaitingAuthy = false;\t\t// By default player is not enforced to perform 2FA.\n\t\tthis.authyCountryCode = \"1\"; \t\t\t// Default to US for the country of the phone number.\n\t\tthis.authySecuredDoorLocation = new int[] {0};\n\t\tthis.pushRequestUUID = \"\";\n\t\tthis.pushRequestStatus = \"\";\n\t}", "public HumanPlayer(String name) {\n super(name);\n }", "public FootballPlayerV3()\n {\n }", "public Player(String inName)\n {\n // initialise instance variables\n mName = inName;\n mBrokenRules = new RuleBook();\n }", "public Player(String name) {\n this.name = name;\n this.badges = new LinkedList<>();\n }", "public Player()\n\t{\n\t\tmyName = DEFAULT_NAME;\n\t\tmyHand = new PokerHand(5);\n\t\tmyNumberWins = 0;\n\t\tmyAmAI = false;\n\t}", "public GamePlayer() {}", "public Player(String name) {\r\n\t\tthis.name=name;\r\n\t\tinitializeGameboard();\r\n\t\tlastRedNumber=2; \r\n\t\tlastYellowNumber=2;\r\n\t\tlastGreenNumber=12;\r\n\t\tlastBlueNumber=12;\r\n\t\tnegativePoints=0;\r\n\t}", "public Player(String name, int x, int y) {\n \t\t\n \t\tsuper(x*Main.gridSize, y*Main.gridSize);\n \t\t\n \t\tsetMaxHP(100);\n \t\tsetMaxPP(100);\n \t\t\n \t\tsetLevel(1);\n \t\tsetExp(0);\n \t\t\n \t\tsetScene(0, 0);\n \t\t\n \t\tthis.name = name;\n \t}", "public Player(String type){\n \n this.type = type;\n }", "public Player2(State state){\n super(state);\n name=\"110\";\n }", "public Multi_Player()\r\n {\r\n \r\n }", "public Info() {\n super();\n }", "public Player(String nickname) {\n this(nickname, -1, -1);\n }", "Player(String Name){\n\t\tthis.Name=Name;\n\t\tdate=new Date();\n\t\tthis.Score=Score;\n\t\tScore=0;\n\t}", "public Player(Player p)\r\n {\r\n this(p.isCompletingGame, p.averageTime, p.fastestTime, p.gamesCompleted, p.rank, p.title, p.username);\r\n }", "public HexComputerPlayer1(String name) {\n // invoke superclass constructor\n super(name); // invoke superclass constructor\n }", "Player()\n\t{\n\t\tiHP = 30;\n\t\tstrEquippedWeapon = \"None\";\n\t\tiLocation = 1;\n\t\tblnPlayerState = true;\n\t\tblnPlayerVictory = false;\n\t\tblnSearchedDirt = false;\n\t\tblnSearchedBarrels = false;\n\t\t\n\t}", "public Player()\n // POST: A default Player object is created with all class members set to 0\n\t{\n\t\tthis(2000, 0);\n\t}", "Player(int id, String name){\n\t\tthis();\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t}", "public Player(int playerNumber, Map map, CommandRelay commandRelay, MapObserver observer, UnitObserver unitObserver, StructureObserver structureObserver, StatusObserver statusObserver, PlayerObservator playerObservator, int startingX, int startingY){\n\n this.playerNumber = playerNumber;\n customID=new CustomID(IdType.PLAYER, String.valueOf(playerNumber));\n\n// entities = new EntityOwnership(customID, commandRelay, startingX, startingY); //TODO should entity ownership know Player?\n\n entities = new EntityOwnership(customID, commandRelay,startingX, startingY); //TODO should entity ownership know Player?\n entities.setMapObserver(observer);\n entities.setUnitObserver(unitObserver);\n\n keymap = new HashMap<KeyCode, String>();\n\n // Defualt keys\n keymap.put(KeyCode.NUMPAD2, \"SOUTH\");\n keymap.put(KeyCode.NUMPAD8, \"NORTH\");\n keymap.put(KeyCode.NUMPAD7, \"NW\");\n keymap.put(KeyCode.NUMPAD1, \"SW\");\n keymap.put(KeyCode.NUMPAD9, \"NE\");\n keymap.put(KeyCode.NUMPAD3, \"SE\");\n\n\n\n resources = new ResourceOwnership(customID);\n resources.addResource(new Resource(ResourceType.ENERGY, 100));\n resources.addResource(new Resource(ResourceType.ORE, 100));\n resources.addResource(new Resource(ResourceType.FOOD, 100));\n this.playerMap = map; // TODO for the moment global map is shared, later each player will have own map\n this.registerMapObserver(observer);\n this.registerUnitObserver(unitObserver);\n this.registerStructureObserver(structureObserver);\n this.registerStatusObserver(statusObserver);\n this.registerPlayerObserver(playerObservator);\n }", "Player(String name, int health)\r\n {\r\n this.name = name;\r\n this.health = health;\r\n }", "public Player(String name, int playerIndex) {\r\n\t\tthis.name = name;\r\n\t\tthis.playerIndex = playerIndex;\r\n }", "public Player()\r\n {\r\n playerItem = new ArrayList();\r\n }", "public Player(Position position) {\n this.position = position;\n this.image = new Image(\"O\");\n }", "public Player(String name)\n {\n this.name = name;\n cash = 0;\n }", "public computerPlayer(Player player) {\n\t\tsuper(player);\n\t\t\n\t}", "public Player(String nickname, String color) {\n //Creating objects\n this.nickname = nickname;\n this.resources = new Assets();\n this.strengths = new Strengths();\n this.leaderCards = new ArrayList<>();\n this.familyMembers = new ArrayList<>();\n this.pickDiscounts = new HashMap<>();\n this.diceOverride = new HashMap<>();\n this.defaultHarvestBonus = new Assets();\n this.defaultProductionBonus = new Assets();\n this.color = color;\n this.cards = new HashMap<>();\n DEFAULT_TOWERS_COLORS.forEach(towerColor -> this.pickDiscounts.put(towerColor, new Assets()));\n pickDiscounts.put(BLACK_COLOR, new Assets());\n getLog().log(Level.INFO, \"New empty player %s created.\", nickname);\n }", "public ClientPlayer(String username, Level level) {\r\n\t\tsuper(username, level);\r\n\t}", "public Player(int i){\r\n playerID=i;\r\n }", "public Player(String name)\n { \n if (name == \"\")\n {\n setName(\"Anonymous\");\n }\n else\n {\n setName(name);\n }\n }", "public Player(String name){\n this.name = name;\n this.gold = 0;\n this.score = 0;\n this.ressource = new HashMap<Ressource, Integer>();\n this.ressource.put(Ressource.ROCHE, 0);\n this.ressource.put(Ressource.BLE, 0);\n this.ressource.put(Ressource.SABLE, 0);\n this.ressource.put(Ressource.BOIS, 0);\n }", "public Player()\n {\n playerItem = new ArrayList();\n }", "public Player(String name) {\n\t\tthis.name = name;\n\t\tscore = 0;\n\t}", "public ClientPlayer(String username, Integer id, Level level) {\r\n\t\tsuper(username, id, level);\r\n\t}", "public Player(Level l, Tile t)\n {\n \tstartTile = t;\n \tsetLevel(l);\n setUpStartPosition();\n \n System.out.println(\"----------> new Player\");\n \n if(!setUp)\n { \n initAnim(); \n setUpCollisionBox();\n initBow();\n setUpPlayerSpeed();\n setUp = true;\n }\n }", "public Player() {\n\t\tsetDimensions(16, 16);\n\t\tsetLocation(512 + 16, 512 + 16);\n\t\tsetKeyBindings();\n\t}", "public Player(byte id, short xPos, short yPos, byte hp, String name, ArrayList<Pair<Byte, Short>> weapons, ArrayList<Bullet> bullets, LinkedList<Byte> trakedWeapons, boolean jumpState, boolean fallState, short initial_y, byte currentWeapon,short currWeaponammo, short shootingDirection, boolean sprint, int score, byte roundsWon, boolean ready,int stateOfMovement,byte charId){\n this.id =id;\n this.score = score;\n this.ready = ready;\n this.xPos = xPos;\n this.yPos = yPos;\n this.hp = hp;\n this.weapons = weapons;\n this.name = name;\n character_id = 1;\n this.weaponEntryTracker = trakedWeapons;\n this.isJumping=jumpState;\n this.isFalling=fallState;\n this.bulletsFired = bullets;\n this.currentWeapon = new Pair<>(currentWeapon,currWeaponammo);\n this.initial_y = initial_y;\n this.shootingDirection = shootingDirection;\n this.sprint = sprint;\n this.roundsWon = roundsWon;\n this.stateOfMovement = stateOfMovement;\n this.character_id = charId;\n audioHandler = new AudioHandler();\n }", "public Pawn(Player player) {\n super(player);\n }", "public TestPlayer()\n {\n }", "private GameInformation() {\n }", "public Player(String name, int id) {\r\n this.name = name;\r\n this.id = id; //to account for array being 0\r\n emptyHand();\r\n \r\n wins =0;\r\n losses = 0;\r\n }", "public LabyrinthComputerPlayer2(String name) {\n // invoke superclass constructor\n super(name);\n }", "public DefensivePlayers(){}", "public Player(String unitId, int x, int y) {\n this(unitId, x, y, new Random());\n }", "public Player(Level level, double x, double y){\n\t\tsuper(level ,x, y);\n\t\tsprite = sprite.player;\n\t\twidth = sprite.getWidth();\n\t\theight = sprite.getHeight();\n\t\tspeed = 1.5;\n\t}", "public GameLevel(LevelInformation info, KeyboardSensor kboard, AnimationRunner aRunner,\n ScoreIndicator scoreInd, LivesIndicator lifeInd, Counter scoreC, Counter livesC) {\n this.levelInfo = info;\n this.keyboard = kboard;\n this.runner = aRunner;\n this.scoreIndi = scoreInd;\n this.lifeIndi = lifeInd;\n this.scoreCounter = scoreC;\n this.lifeCounter = livesC;\n }", "public Player(JsonObject jsonPlayer) {\n this.nickname = jsonPlayer.get(\"nickname\").getAsString();\n this.nRedAmmo = jsonPlayer.get(\"nRedAmmo\").getAsInt();\n this.nBlueAmmo = jsonPlayer.get(\"nBlueAmmo\").getAsInt();\n this.nYellowAmmo = jsonPlayer.get(\"nYellowAmmo\").getAsInt();\n this.points = jsonPlayer.get(\"points\").getAsInt();\n\n this.weaponList = new ArrayList<>();\n JsonArray jsonWeaponList = jsonPlayer.get(\"weaponList\").getAsJsonArray();\n for (int i = 0; i < jsonWeaponList.size(); i++) {\n Weapon w = new Weapon(jsonWeaponList.get(i).getAsJsonObject());\n this.weaponList.add(w);\n }\n\n this.powerUpList = new ArrayList<>();\n JsonArray jsonPowerUpList = jsonPlayer.get(\"powerUpList\").getAsJsonArray();\n for (int i = 0; i < jsonPowerUpList.size(); i++) {\n PowerUp p = new PowerUp(jsonPowerUpList.get(i).getAsJsonObject());\n this.powerUpList.add(p);\n }\n\n this.damages = new ArrayList<>();\n JsonArray jsonDamages = jsonPlayer.get(\"damages\").getAsJsonArray();\n for (int i = 0; i < jsonDamages.size(); i++) {\n String s = jsonDamages.get(i).getAsString();\n this.damages.add(s);\n }\n\n this.marks = new ArrayList<>();\n JsonArray jsonMarks = jsonPlayer.get(\"marks\").getAsJsonArray();\n for (int i = 0; i < jsonMarks.size(); i++) {\n String s = jsonMarks.get(i).getAsString();\n this.marks.add(s);\n }\n\n this.nDeaths = jsonPlayer.get(\"nDeaths\").getAsInt();\n this.xPosition = jsonPlayer.get(\"xPosition\").getAsInt();\n this.yPosition = jsonPlayer.get(\"yPosition\").getAsInt();\n this.isDead = jsonPlayer.get(\"isDead\").getAsBoolean();\n this.nMoves = jsonPlayer.get(\"nMoves\").getAsInt();\n this.nMovesBeforeGrabbing = jsonPlayer.get(\"nMovesBeforeGrabbing\").getAsInt();\n this.nMovesBeforeShooting = jsonPlayer.get(\"nMovesBeforeShooting\").getAsInt();\n this.playerStatus = new PlayerStatus(jsonPlayer.get(\"playerStatus\").getAsJsonObject());\n }", "public Player(String playerName, int playerNumber) {\n\t\tthis.playerName = playerName;\n\t\tthis.playerNumber = playerNumber;\n\t\tthis.carrotCards = 65;\n\t\tthis.lettuceCards = 3;\n\t\tthis.playerSpace = 0;\n\t\tthis.carrotsPaid = 0;\n\t\tthis.missGo = false;\n\t\tthis.playerQuit = false;\n\t}", "public Player(World world) {\n\n super(world, playerShape);\n addImage(idleImage);\n score = 0;\n lives = 3;\n\n }", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "public Player(){\r\n cards = new ArrayList<String>();\r\n indexes = new ArrayList<Integer>();\r\n }", "public Player(String name, Pool p)\n\t{\n\t\tsetName(name); // sets the name for the player\n\t\tsetScore(0); // sets the intial score for the player\n\t\tsetFrame(p); // assigns a frame to the player\n\t}", "public Player(Game game){\r\n this.game = game;\r\n }", "public Player( double lat, double lon, int Speed ) {\n\t\t\n\t\tpoint = new Point3D(lat, lon, 0);\n\t\tspeed = Speed;\n\t\tradius = 1;\n\t\ttype = \"M\";\n\t\tscore = 0;\n\t\tpixels = new int[2];\n\t\t\n\t}", "public Player(String name)\n\t{\n\t\tif (name.contains(\" \"))\n\t\t\tthrow new IllegalArgumentException(\"Name cannot contain a space character!\");\n\n\t\tthis.name = name;\n\t\tthis.numPlayed = 0;\n\t\tthis.numCompleted = 0;\n\t\tthis.averageTime = new Time(0);\n\t\tthis.bestTime = new Time(0);\n\t\tthis.accuracy = 0;\n\t}", "public abstract void info(Player p);", "public Command(int Player) {\r\n\t\tmyPlayer = Player;\r\n\t}" ]
[ "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.68548137", "0.6832901", "0.6828792", "0.6824767", "0.6823344", "0.6822135", "0.68189836", "0.67971665", "0.6786213", "0.6764059", "0.67549497", "0.6715447", "0.6714525", "0.6711147", "0.6710498", "0.67063046", "0.6699876", "0.66940504", "0.66724074", "0.6662544", "0.6647969", "0.66428024", "0.6579452", "0.6576957", "0.6574101", "0.6544483", "0.65415967", "0.65401375", "0.6523763", "0.651483", "0.65128154", "0.6503644", "0.65031624", "0.6481479", "0.64789414", "0.6478905", "0.64690477", "0.64551634", "0.6437319", "0.64128363", "0.6402129", "0.6397378", "0.6389249", "0.6383758", "0.6371157", "0.6366761", "0.6365011", "0.6363095", "0.63605165", "0.63591325", "0.6352154", "0.63465357", "0.6339094", "0.63247156", "0.63224894", "0.63181823", "0.63153386", "0.63056743", "0.63035303", "0.6278543", "0.62762356", "0.6265586", "0.62499833", "0.62364686", "0.62250465", "0.62198436", "0.62151384", "0.6212859", "0.620572", "0.62045264", "0.62006605", "0.620038", "0.61982447", "0.6191616", "0.6189483", "0.61844635", "0.6179822", "0.6179429", "0.61744946", "0.61643505" ]
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() {\n recentStats = new Stats();\n }", "void statsReset();", "public void reset() {\n\t\tfor (int i = 0; i < stats.size(); i++) {\n\t\t\tstats.get(i).reset();\n\t\t}\n\t}", "private void clearStats() {\n stats_ = emptyProtobufList();\n }", "public abstract void statsReset();", "public void resetStatistics()\n {\n }", "public void resetStats(){\n curA = attack;\n curD = defense;\n curSpA = spAttack;\n curSpD = spDefense;\n curS = speed;\n }", "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "private void resetAll() {\n resetResources();\n resetStory();\n refresh();\n }", "public void resetActiveStats() {\n if (!valid)\n return;\n\n\n Handler handler = new Handler(getLooper());\n handler.post(() -> {\n recentStats.activeRequests = toLoad.size() + loading.size();\n recentStats.maxActiveRequests = recentStats.activeRequests;\n });\n }", "private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }", "private void refreshView() {\n this.view.updateRobots();\n }", "private void reload() {\n if (running == false) {\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.entrySet().forEach((pair) -> {\n IPlayer player = pair.getValue();\n try {\n player.setPoints(0);\n player.resetStrategy();\n addNewAgent(player, player.getStrategy());\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n\n }\n\n }", "public void resetAll() {\n reset(getAll());\n }", "protected void refreshAll() {\n refreshProperties();\n\t}", "private void reset() {\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.clear();\n dominator = \"\";\n firstBlood = false;\n }", "protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "public void resetHitStatistics()\n {\n m_stats.resetHitStatistics();\n }", "public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }", "public static void resetAll() {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tmSensors.get(x).reset();\n\t\t}\n\t}", "@Override\n public void robotPeriodic() {\n putTelemetry();\n }", "public void refresh()\n {\n refresh( null );\n }", "private void reset() {\n\n\n spaceShips.clear();\n playerOne = null;\n playerTwo = null;\n friendlyBullets.clear();\n enemyBullets.clear();\n powerUps.clear();\n enemyGenerator.reset();\n difficulty.reset();\n Bullets.BulletType.resetSpeed();\n\n for (int i = 0; i < enemies.size(); i++) {\n enemies.get(i).getEnemyImage().delete();\n }\n enemies.clear();\n }", "protected static void resetManager() {\n externalCameras.clear();\n resolutionMap.clear();\n isStartedMap.clear();\n trackerAPIMap.clear();\n internalCamera = null;\n internalCameraId = null;\n }", "void clearStatistics();", "public void reloadAll() {\n for (String str : this.mTunableLookup.keySet()) {\n String stringForUser = Settings.Secure.getStringForUser(this.mContentResolver, str, this.mCurrentUser);\n for (TunerService.Tunable tunable : this.mTunableLookup.get(str)) {\n tunable.onTuningChanged(str, stringForUser);\n }\n }\n }", "public static synchronized void resetAllTimers() {\r\n _count = 0;\r\n _time = 0;\r\n _serverStarted = -1;\r\n _timers.clear();\r\n }", "public void resetAll() {\n triggered = false;\n classBlacklist.clear();\n policies.clear();\n protectedFiles.clear();\n System.setSecurityManager(defaultSecurityManager);\n }", "public void resetCounters() {\n\t\t//RobotMap.leftEncoder.reset();\n\t\t//RobotMap.rightEncoder.reset();\n\t\tRobotMap.ahrs.zeroYaw();\n\t\tRobotMap.talonLeft.setSelectedSensorPosition(0, 0, 10);\n\t\tRobotMap.talonRight.setSelectedSensorPosition(0, 0, 10);\n\t\tbearing = 0;\n\t}", "public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }", "public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }", "public void resetAll() {\r\n for (PropertyChangeListener pcl : pcs.getPropertyChangeListeners()) {\r\n pcs.removePropertyChangeListener(pcl);\r\n }\r\n GameInfo.getInstance().init();\r\n MazeMap.getInstance().init();\r\n addListener(Constants.MAZE, MazeMap.getInstance());\r\n addListener(Constants.GAMEINFO, GameInfo.getInstance());\r\n PacMan pacMan = initPacMan();\r\n initGhosts(pacMan);\r\n }", "@Override\n boolean resetStatistics();", "public void refresh() {\n \t\tphysics.physik();\n \t\tcycleTest();\n \t}", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "void clearAllLists() {\n this.pm10Sensors.clear();\n this.tempSensors.clear();\n this.humidSensors.clear();\n }", "public void reset() {\n gameStatus = null;\n userId = null;\n gameId = null;\n gameUpdated = false;\n selectedTile = null;\n moved = false;\n }", "public void reset(){\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm -r data/games_module\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"sed -i \\\"1s/.*/ \"+\"0\"+\" /\\\" data/winnings\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"sed -i \\\"1s/.*/ \"+\"175\"+\" /\\\" data/tts_speed\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/answered_questions\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/five_random_categories\");\n\t\tBashCmdUtil.bashCmdNoOutput(\"rm data/current_player\");\n\t\t_currentPlayer = null;\n\t\t_internationalUnlocked = false;\n\t\t_gamesData.clear();\n\t\t_fiveRandomCategories.clear();\n\t\tfor (int i= 0; i<5;i++) {\n\t\t\t_answeredQuestions[i]=0;\n\t\t}\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/answered_questions\");\n\t\tinitialiseCategories();\n\t\ttry {\n\t\t\treadCategories();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsetFiveRandomCategories();\n\t}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }", "public void reset() {\n state = SearchState.NEW;\n objectiveOptimal = false;\n solutionCount = 0;\n timeCount = 0;\n stopStopwatch();\n nodeCount = 0;\n backtrackCount = 0;\n failCount = 0;\n restartCount = 0;\n depth = 0;\n maxDepth = 0;\n }", "void shutdownAllBots() {\n LinkedList<String> names = new LinkedList<String>();\n\n for( ChildBot c : m_botStable.values() ) {\n if( c != null ) {\n names.add( c.getBot().getBotName() );\n }\n }\n\n for( String name : names ) {\n removeBot( name, \"core shutdown\" );\n m_botAction.sendChatMessage( 1, name + \" logged off. (Core shutdown.)\" );\n }\n\n m_botTypes.clear();\n }", "public void refresh(){\r\n\t \t//providerMap.clear();\r\n\t \trefresh(null);\r\n\t }", "public static void reset() {\n\t\tCAUGHT.clear();\n\t\tLOAD_CACHE.clear();\n\t}", "@Override\n public void reset() {\n globalIndex = new AtomicLong(0);\n lastIssuedMap = new ConcurrentHashMap<>();\n }", "private void resetStatistics() {\n worst = Integer.MAX_VALUE;\n best = Integer.MIN_VALUE;\n }", "public void resetUpdateCount() {\n updateCount = 0;\n numNucleiToRemove = 0;\n }", "public void reset() {\n monster.setHealth(10);\n player.setHealth(10);\n\n }", "void clearStatistics() throws IOException;", "public void reset() {\n\tthis.pinguins = new ArrayList<>();\n\tthis.pinguinCourant = null;\n\tthis.pret = false;\n\tthis.scoreGlacons = 0;\n\tthis.scorePoissons = 0;\n }", "public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }", "public static void reset(){\n\t\t\n\t\t// clear hashmap\n\t\tvisitorListMap.clear();\n\t\t\n\t\t// clear visitor list model\n\t\tvisitorListModel.clear();\n\t\t\n\t\t// clear server info\n\t\tlblServerInfoIP.setText(\"IP address: Not connected.\");\n\t\tlblServerInfoPort.setText(\"Port: \");\n\t\t\n\t\t// disable leave room\n\t\tlblLeave.setVisible(false);\n\t\t\n\t}", "public void reset() {\n counters = null;\n counterMap = null;\n counterValueMap = null;\n }", "public void reset()\r\n {\n if_list.removeAllElements();\r\n ls_db.reset();\r\n spf_root = null;\r\n vertex_list.removeAllElements();\r\n router_lsa_self = null;\r\n floodLastTime = Double.NaN;\r\n delayFlood = false;\r\n spf_calculation = 0;\r\n lsa_refresh_timer = null;\r\n }", "@UnsupportedAppUsage\n public void clearStats() {\n mStats = null;\n }", "protected void refreshAllUsers() {}", "protected void reset(VwStatsPerGame dto)\n\t{\n\t}", "public void resetAll() throws ConnectionLostException, InterruptedException {\n\t\t\t\tstateLedOff = false;\n\t\t\t\tServoSettings sett = RoboTarPC.this.getServoSettings();\n\t\t\t\tfor (int servo = 0; servo < 12; servo++) {\n\t\t\t\t\tsetServo(servo, sett.getInitial(servo));\n\t\t\t\t}\n\t\t\t\tturnOffFretLEDs();\n\t\t\t\tLOG.info(\"Servos in neutral position default\");\n\t\t\t}", "public void reset() {\n\t\tVector2 gravity = new Vector2(world.getGravity() );\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.deactivatePhysics(world);\n\t\t}\n\t\tobjects.clear();\n\t\taddQueue.clear();\n\t\tworld.dispose();\n\t\t\n\t\tworld = new World(gravity,false);\n\t\tsetComplete(false);\n\t\tsetFailure(false);\n\t\tpopulateLevel();\n\t}", "public default void reloadAll() {\n\t\tBukkit.getConsoleSender().sendMessage(\"Reloading \" + getClass().getSimpleName() + \"'s Configs!\");\n\t\treload();\n\t\tBukkit.getConsoleSender().sendMessage(\"Finished \" + getClass().getSimpleName() + \"'s Configs!\");\n\t}", "public void resetServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n }", "private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}", "public static void reset() {\n HealthCheck.failed = false;\n HealthCheck.checks.clear();\n }", "public void resetBalls() {\n\t\tBALL_LIST.clear();\n\t}", "public synchronized void reset() {\n for (TreeManagementModel model : mgrModels.values()) {\n model.reset();\n }\n }", "public void saveStats() {\n this.saveStats(null);\n }", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "public void refresh() {\n\n odp.refresh();\n\n\n }", "void reset() {\n synchronized (instances) {\n instances.clear();\n }\n }", "public synchronized void flushAll()\n {\n profiles.clear();\n flushProfileNames();\n flushUserProfileAssignments();\n profilePerms.clear();\n nameToId.clear();\n }", "private void initRobots() {\n\t\tthis.robots.clear();\n\t\tGraphRobot robot = new GraphRobot();\n\t\tString info = game.toString();\n\t\ttry {\n\t\t\tJSONObject line = new JSONObject(info);\n\t\t\tJSONObject ttt = line.getJSONObject(\"GameServer\");\n\t\t\tint rs = ttt.getInt(\"robots\");\n\t\t\tfor(int a = 0;a<rs;a++) {\n\t\t\t\tgame.addRobot(a);\n\t\t\t}\n\t\t}\n\t\tcatch (JSONException e) {e.printStackTrace();}\n\n\t\tList<String> r = game.getRobots();\n\t\tfor(String s : r) {\n\t\t\trobot.initRobot(s);\n\t\t\tthis.robots.add(robot);\n\t\t}\n\t}", "public void resetCounters() {\n setErrorCounter(0);\n setDelayCounter(0);\n }", "protected void refresh() {\n\t}", "public void reset() {\n noIndex= false;\n noFollow= false;\n noCache= false;\n baseHref= null;\n }", "public void reload()\r\n\t{\r\n\t\tmEntities.clear();\r\n\t\tmParticles.clear();\r\n\t\tStats.instance().setBananaLevel();\r\n\t\tloadBlocks();\r\n\t}", "private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }", "public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n this.requestRebind();\n }", "protected void clearData()\r\n {\r\n System.getProperties().put(\"https.proxyHost\", \"\");\r\n System.getProperties().put(\"https.proxyPort\", \"\");\r\n System.getProperties().put(\"http.proxyHost\", \"\");\r\n System.getProperties().put(\"http.proxyPort\", \"\");\r\n proxyScheme = null;\r\n proxyName = null;\r\n proxyPswd = null;\r\n proxyRealm = null;\r\n proxyPort = null;\r\n proxyHost = null;\r\n been_here = false;\r\n success = false;\r\n message = null;\r\n }", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void resetTracking() {\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.clear();\n\t\transac.reset();\n\t}", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "public void refresh() {\n getIndexOperations().refresh();\n }", "@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }", "public static void Reset(){\n\t\ttstr = 0;\n\t\ttluc = 0;\n\t\ttmag = 0; \n\t\ttacc = 0;\n\t\ttdef = 0; \n\t\ttspe = 0;\n\t\ttHP = 10;\n\t\ttMP = 0;\n\t\tstatPoints = 13;\n\t}", "private void recalculateAllRoutes() {\n robotModels.parallelStream().forEach(m -> m.recalculateRoute(target, obstacles));\n }", "public void refresh() {\r\n\t\tinit();\r\n\t}", "private void reset() {\n\t\tfiles = new HashMap<>();\n\t\tparams = new HashMap<>();\n\t}", "private static void _reset() {\n // clear metrics\n HystrixCommandMetrics.reset();\n HystrixThreadPoolMetrics.reset();\n HystrixCollapserMetrics.reset();\n // clear collapsers\n HystrixCollapser.reset();\n // clear circuit breakers\n HystrixCircuitBreaker.Factory.reset();\n HystrixPlugins.reset();\n HystrixPropertiesFactory.reset();\n currentCommand.set(new LinkedList<HystrixCommandKey>());\n }", "public void reset() {\n cooldowns.clear();\n }", "protected void speedRefresh() {\r\n\t\t\ttStartTime = System.currentTimeMillis();\r\n\t\t\ttDownloaded = 0;\r\n\t\t}", "public void resetLocation()\r\n {\r\n locations.clear();\r\n }", "private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }", "public void clear() {\n synchronized (mLock) {\n mNumStartRangingCalls = 0;\n mOverallStatusHistogram.clear();\n mPerPeerTypeInfo[PEER_AP] = new PerPeerTypeInfo();\n mPerPeerTypeInfo[PEER_AWARE] = new PerPeerTypeInfo();\n }\n }", "public static void reload()\r\n {\r\n reloadAsynch();\r\n waitWhileLoading();\r\n }", "public void reset()\n\t{\n\t\tassociations = new Vector<Association>();\n\t\tif(hotspots != null)\n\t\t{\n\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t{\n\t\t\t\thotspots.elementAt(i).bound = null;\n\t\t\t\thotspots.elementAt(i).setHighlighted(false);\n\t\t\t}\n\t\t}\n\n\t\tif(movableObjects != null)\n\t\t{\n\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t{\n\t\t\t\tmovableObjects.elementAt(i).resetPos();\n\t\t\t\tmovableObjects.elementAt(i).bound = null;\n\t\t\t}\n\t\t}\n\t\tuser_responses=0;\n\t\tmov = null;\n\t\tstart = null;\n\t\tmpos = null;\n\t\tsetFeedback();\n\t\trepaint();\n\t}", "public static void clearWinners(){winners.clear();}", "protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }" ]
[ "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.5867948", "0.5862687", "0.58548844", "0.58445454", "0.5842581", "0.5841131", "0.58263916", "0.58211", "0.5806645", "0.57998294", "0.5782463", "0.5782396", "0.5776021", "0.57720876", "0.5748065", "0.5738242", "0.57308686", "0.5715145", "0.5705955", "0.57053363", "0.5694011", "0.56938565", "0.56830126", "0.56817", "0.56806856", "0.5679841", "0.56700903", "0.5668274", "0.56613505", "0.56587905", "0.5655216", "0.56505835", "0.5649587", "0.56466246", "0.5646439", "0.56463623", "0.56389046", "0.5637963", "0.5629126", "0.56095886", "0.5608876", "0.56054294", "0.56007385", "0.5587185", "0.557427", "0.55711347", "0.5548935", "0.5546965", "0.5544717", "0.55365676", "0.55359715", "0.55324936", "0.5532152", "0.5523296", "0.5516182", "0.5509884", "0.55090886", "0.55046207", "0.550268", "0.5484957", "0.5484638", "0.5479732", "0.5478974", "0.54780596", "0.54759884", "0.54758495", "0.54744554", "0.546313", "0.5462266", "0.54613656", "0.5453186", "0.5450048", "0.5449703", "0.5445419", "0.5442086", "0.5441281", "0.5439738", "0.5439146", "0.543896", "0.54363483" ]
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 return mField;\n }", "java.lang.String getField1015();", "java.lang.String getField1008();", "java.lang.String getField1702();", "java.lang.String getField1600();", "java.lang.String getField1307();", "java.lang.String getField1736();", "public AIObject getAIObject(FreeColGameObject fcgo) {\n return getAIObject(fcgo.getId());\n }", "java.lang.String getField1700();", "java.lang.String getField1720();", "public Player getAiPlayer() {\n return aiPlayer;\n }", "java.lang.String getField1738();", "java.lang.String getField1170();", "public String getIfield(int position){\n\t\treturn ifield.get(position);\n\t}", "java.lang.String getField1748();", "java.lang.String getField1780();", "java.lang.String getField1725();", "protected ElectromagnetFieldAdaptor getFieldAdaptor() {\n\t\treturn FIELD_ADAPTOR;\n\t}", "java.lang.String getField1800();", "java.lang.String getField1730();", "java.lang.String getField1721();", "java.lang.String getField1733();", "java.lang.String getField1771();", "java.lang.String getField1781();", "java.lang.String getField1737();", "java.lang.String getField1712();", "java.lang.String getField1790();", "java.lang.String getField1646();", "java.lang.String getField1723();", "java.lang.String getField1759();", "java.lang.String getField1740();", "java.lang.String getField1791();", "java.lang.String getField1138();", "java.lang.String getField1793();", "java.lang.String getField1774();", "java.lang.String getField1731();", "java.lang.String getField1843();", "java.lang.String getField1782();", "java.lang.String getField1770();", "java.lang.String getField1772();", "java.lang.String getField1758();", "java.lang.String getField1525();", "java.lang.String getField1638();", "java.lang.String getField1936();", "java.lang.String getField1938();", "java.lang.String getField1760();", "java.lang.String getField1050();", "java.lang.String getField1538();", "java.lang.String getField1163();", "java.lang.String getField1767();", "java.lang.String getField1136();", "java.lang.String getField1710();", "java.lang.String getField1735();", "public int getNiveauIA() {\n\t\treturn niveauIA;\r\n\t}", "java.lang.String getField1788();", "java.lang.String getField1925();", "java.lang.String getField1038();", "java.lang.String getField1691();", "java.lang.String getField1150();", "java.lang.String getField1520();", "java.lang.String getField1581();", "java.lang.String getField1798();", "java.lang.String getField1739();", "java.lang.String getField1717();", "java.lang.String getField1792();", "java.lang.String getField1681();", "java.lang.String getField1007();", "java.lang.String getField1768();", "java.lang.String getField1779();", "java.lang.String getField1216();", "java.lang.String getField1795();", "java.lang.String getField1537();", "java.lang.String getField1778();", "java.lang.String getField1783();", "public String getLOAI()\n {\n return this.LOAI;\n }", "java.lang.String getField1988();", "protected Field getField()\n {\n return field;\n }", "protected Field getField()\n {\n return field;\n }", "java.lang.String getField1671();", "java.lang.String getField1766();", "java.lang.String getField1799();", "java.lang.String getField1796();", "java.lang.String getField1761();", "java.lang.String getField1764();", "java.lang.String getField1168();", "java.lang.String getField1967();", "java.lang.String getField1570();", "java.lang.String getField1773();", "java.lang.String getField1763();", "java.lang.String getField1580();", "java.lang.String getField1625();", "java.lang.String getField1137();", "java.lang.String getField1670();", "java.lang.String getField1769();", "java.lang.String getField1744();" ]
[ "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.583181", "0.5830681", "0.5826551", "0.58096796", "0.58059376", "0.5798074", "0.57945764", "0.57891583", "0.5788918", "0.57882077", "0.5784786", "0.5781791", "0.57814556", "0.57809144", "0.57797366", "0.57786053", "0.57769614", "0.5776008", "0.5773389", "0.57733744", "0.5773118", "0.57713926", "0.5771014", "0.57665914", "0.576561", "0.5763011", "0.5761804", "0.57615364", "0.5761001", "0.5758937", "0.5755203", "0.5754574", "0.57503456", "0.57494175", "0.5747731", "0.57471496", "0.5746414", "0.574625", "0.57449764", "0.5739965", "0.5737899", "0.5737675", "0.57363695", "0.5732554", "0.57322013", "0.5731141", "0.57303256", "0.57301754", "0.5730007", "0.57277817", "0.57269996", "0.5726858", "0.57257026", "0.57252765", "0.572084", "0.5720476", "0.5720233", "0.5719914", "0.5719625", "0.57194877", "0.5719024", "0.571715", "0.571671", "0.571671", "0.5716152", "0.5715766", "0.5714703", "0.57122266", "0.5710327", "0.57097745", "0.5708916", "0.5708691", "0.57078665", "0.5706729", "0.5706094", "0.57056487", "0.57042414", "0.5701405", "0.5701351", "0.570109", "0.56995106" ]
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\tbreak;\r\n\t\tcase \"tank\":\r\n\t\t\tindex = 2;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new Exception(\"Unknown/Invalid robot type.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn this.robots.get(index);\r\n\t}", "public Robot getRobot() {\n\t\treturn this.robot;\n\t}", "public RobotID getRobot() {\n return robot;\n }", "public BasicRobot getRobot() {\n\t\treturn robot;\n\t}", "@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}", "public String getRobot() {\n return nombre;\n }", "public static BrowserType getBrowserType() {\n logger.trace(\"Get the BrowserType\");\n return driverThread.get().getBrowserType();\n }", "public boolean isRobot() {\n\t\treturn isRobot;\n\t}", "public OperatingSystemTypes osType() {\n return this.osType;\n }", "public String getMovementType() {\n\t\treturn (String) get_Value(\"MovementType\");\n\t}", "public OperatingSystemTypes getOsType() {\n return this.osType;\n }", "public String getRealCombotype() {\r\n return realCombotype;\r\n }", "public Robot getRobot(String nombre);", "public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}", "public String Type()\t{\r\n\t\treturn BrickFinder.getDefault().getType();\r\n\t}", "public com.profitbricks.api.ws.OsType getOsType() {\r\n return osType;\r\n }", "@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleType getVehicleType() {\n return vehicleType_ == null ? google.maps.fleetengine.v1.Vehicle.VehicleType.getDefaultInstance() : vehicleType_;\n }", "public PlatformType getPlatformType();", "public java.lang.CharSequence getVehicleType() {\n return vehicleType;\n }", "public java.lang.CharSequence getVehicleType() {\n return vehicleType;\n }", "public String getrType() {\n return rType;\n }", "public int getActuatorType() \n\t{\n\t\treturn this.actuatorType;\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public OSType osType() {\n return this.osType;\n }", "public String getType() {\r\n return this.getClass().getName();\r\n }", "public static String getType() {\n\t\treturn type;\n\t}", "MachineType getType();", "@Override\n public IronGolemType getType() {\n return IronGolemType.TYPE;\n }", "public final String getType() {\n return this.getClass().getName();\n }", "public VehicleType getVehicleType() {\r\n VehicleType vt = new VehicleType(this.vehicleType.getCategory());\r\n return vt;\r\n }", "public static String getType() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_type_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_type_name);\n String type = sp.getString(value, defaultValue);\n return type;\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public Type getType() {\n \t\tif(type == null) {\n \t\t\ttry {\n \t\t\t\tsetType(B3BackendActivator.instance.getBundle().loadClass(getQualifiedName()));\n \t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO: ?? Need to handle this, so the \"not found\" surfaces to the user...\n\t\t\t\t// Handled via model validation - type can not be null\n \t\t\t}\n \t\t}\n \t\treturn type;\n \t}", "public String getType() {\n\t\treturn TYPE_NAME;\n\t}", "public ItineraryLegType journeyLegType() {\n if (walk != null) {\n return ItineraryLegType.WALK;\n } else {\n return ItineraryLegType.BUS;\n }\n }", "public ObjType getType () {\n\t\tif (type == null) {\n\t\t\ttype = Virtue.getInstance().getConfigProvider().getObjTypes().list(id);\n\t\t}\n\t\treturn type;\n\t}", "private static BrowserType getBrowserType()\n\t{\n\t\tString browserType = System.getProperty(BROWSER_KEY);\n\t\tif (browserType == null || browserType.isEmpty())\n\t\t{ \n\t\t\treturn BrowserType.Firefox;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint type = Integer.parseInt(browserType);\n\t\t\t\n\t\t\tif (BrowserType.InternetExplorer.getCode() == type)\n\t\t\t{\n\t\t\t\treturn BrowserType.InternetExplorer;\n\t\t\t}\n\t\t\telse if (BrowserType.Chrome.getCode() == type)\n\t\t\t{\n\t\t\t\treturn BrowserType.Chrome;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn BrowserType.Firefox;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }", "Robot getRobot(Position pos);", "public String getTYPE() {\n return TYPE;\n }", "public String getType()\r\n {\r\n return type;\r\n }", "@java.lang.Override\n public speech.multilang.Params.ScoringControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ScoringControllerParams.Type result = speech.multilang.Params.ScoringControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ScoringControllerParams.Type.UNKNOWN : result;\n }", "public String type();", "public VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}", "java.lang.String getMachineType();", "public synchronized String getType() {\n\t\treturn type;\n\t}", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType () {\n return type;\n }", "public String getType () {\n return type;\n }", "public String getType () {\n return type;\n }", "public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}", "public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n return (String) getObject(\"type\");\n }", "String getType() {\n return type;\n }", "public java.lang.String getType() {\n return type;\n }", "public java.lang.String getType() {\n return type;\n }" ]
[ "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.5978546", "0.5976101", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5967188", "0.5963212", "0.5961151", "0.595678", "0.59322834", "0.5905385", "0.5898571", "0.58844024", "0.58779216", "0.5876286", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.58691937", "0.5864364", "0.58552825", "0.58547604", "0.5849802", "0.5838569", "0.58384764", "0.58250844", "0.58209294", "0.58149976", "0.5799468", "0.57981336", "0.5797935", "0.5793539", "0.5787186", "0.5779298", "0.5779298", "0.5779298", "0.5779298", "0.5779298", "0.5779298", "0.5779203", "0.5779203", "0.5779203", "0.57711005", "0.5765157", "0.5762445", "0.57570523", "0.57569486", "0.57552993", "0.57552993" ]
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 targetVisible = false;\n for (VuforiaTrackable trackable : allTrackables) {\n if (((VuforiaTrackableDefaultListener)trackable.getListener()).isVisible()) {\n telemetry.addData(\"Visible Target\", trackable.getName());\n targetVisible = true;\n\n // Get the position of the visible target and put the X & Y position in visTgtX and visTgtY\n // We will use these for determining bearing and range to the visible target\n OpenGLMatrix tgtLocation = trackable.getLocation();\n VectorF tgtTranslation = tgtLocation.getTranslation();\n visTgtX = tgtTranslation.get(0) / mmPerInch;\n visTgtY = tgtTranslation.get(1) / mmPerInch;\n //telemetry.addData(\"Tgt X & Y\", \"{X, Y} = %.1f, %.1f\", visTgtX, visTgtY);\n\n // getUpdatedRobotLocation() will return null if no new information is available since\n // the last time that call was made, or if the trackable is not currently visible.\n OpenGLMatrix robotLocationTransform = ((VuforiaTrackableDefaultListener)trackable.getListener()).getUpdatedRobotLocation();\n if (robotLocationTransform != null) {\n lastLocation = robotLocationTransform;\n }\n break;\n }\n }\n\n // Provide feedback as to where the robot is located (if we know).\n if (targetVisible) {\n // express position (translation) of robot in inches.\n VectorF translation = lastLocation.getTranslation();\n //telemetry.addData(\"Pos (in)\", \"{X, Y, Z} = %.1f, %.1f, %.1f\",\n // translation.get(0) / mmPerInch, translation.get(1) / mmPerInch, translation.get(2) / mmPerInch);\n\n // express the rotation of the robot in degrees.\n Orientation rotation = Orientation.getOrientation(lastLocation, EXTRINSIC, XYZ, DEGREES);\n //telemetry.addData(\"Rot (deg)\", \"{Roll, Pitch, Heading} = %.0f, %.0f, %.0f\", rotation.firstAngle, rotation.secondAngle, rotation.thirdAngle);\n\n // Robot position is defined by the standard Matrix translation (x and y)\n robotX = translation.get(0)/ mmPerInch;\n robotY = translation.get(1)/ mmPerInch;\n\n // Robot bearing (in +vc CCW cartesian system) is defined by the standard Matrix z rotation\n robotBearing = rotation.thirdAngle;\n\n // target range is based on distance from robot position to the visible target\n // Pythagorean Theorum\n targetRange = Math.sqrt((Math.pow(visTgtX - robotX, 2) + Math.pow(visTgtY - robotY, 2)));\n\n // target bearing is based on angle formed between the X axis to the target range line\n // Always use \"Head minus Tail\" when working with vectors\n targetBearing = Math.toDegrees(Math.atan((visTgtY - robotY)/(visTgtX - robotX)));\n\n // Target relative bearing is the target Heading relative to the direction the robot is pointing.\n // This can be used as an error signal to have the robot point the target\n relativeBearing = targetBearing - robotBearing;\n // Display the current visible target name, robot info, target info, and required robot action.\n\n telemetry.addData(\"Robot\", \"[X]:[Y] (Heading) [%5.0fin]:[%5.0fin] (%4.0f°)\",\n robotX, robotY, robotBearing);\n telemetry.addData(\"Target\", \"[TgtRange] (TgtBearing):(RelB) [%5.0fin] (%4.0f°):(%4.0f°)\",\n targetRange, targetBearing, relativeBearing);\n }\n else {\n telemetry.addData(\"Visible Target\", \"none\");\n }\n }", "public abstract void interagir (Robot robot);", "public void setRobot(Robot robot) {\n this.robot = robot;\n }", "boolean findRobot();", "public abstract void interagir(Robot robot);", "@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}", "protected RobotCoordinates getRobotCoordinates() { return currentPos; }", "public Robot getRobot(String nombre);", "@Override\r\n \tprotected Robot getRobot() {\t\t\r\n \t\treturn null;\r\n \t}", "public void setRobot(Robot robot) {\n\t\tthis.robot = robot;\n\t}", "public String getRobot() {\n return nombre;\n }", "public Robot choisitRobot() {\r\n List<Robot> indisponibles = new ArrayList<Robot>();\r\n List<Robot> disponibles = new ArrayList<Robot>();\r\n for (Robot robot : robots) {\r\n if (robot.initDep().isEmpty()) {\r\n indisponibles.add(robot);\r\n } else {\r\n disponibles.add(robot);\r\n }\r\n }\r\n for (Robot r : indisponibles) {\r\n System.out.println(r.toString() + \" ne peut pas se deplacer :(\");\r\n }\r\n int i = 1;\r\n for (Robot robot : disponibles) {\r\n System.out.println(\"\\t\" + i + \" : \" + robot.toString());\r\n i += 1;\r\n }\r\n i = secureInput(1, i - 1);\r\n if (disponibles.isEmpty()) {\r\n return null;\r\n }\r\n return disponibles.get(i - 1);\r\n }", "public void agregarRobot(Robot robot);", "public Robot getRobot(int type) {\r\n\t\treturn this.robots.get(type);\r\n\t}", "@Override\n\tpublic void robotInit() {\n\t\toi = new OI();\n\t\tdrivebase.calibrateGyro();\n\t\tSmartDashboard.putData(\"Zero Gyro\", new ZeroGyro());\n\t\tSmartDashboard.putData(\"Calibrate Gyro - WHILE ROBOT NOT MOVING\", new CalibrateGyro());\n\t\tchooser.addDefault(\"Default Prepare Gear Auto\", new PrepareGearManipulator());\n\t\t//shooterModeChooser.addDefault(\"Shooter at Nominal Preset when Pressed\", object);\n\t\t/*chooser.addObject(\"Left Gear Auto\", new LeftGearGroup());\n\t\tchooser.addObject(\"Center Gear Auto\", new CenterGearGroup());*/\n\t//\tchooser.addObject(\"Test Vision Auto\", new TurnTillPerpVision(true));\n\t//\tchooser.addObject(\"Testing turn gyro\", new RotateToGyroAngle(90,4));\n\t\t//chooser.addObject(\"DriveStraightTest\", new GoAndReturn());\n\t\t //UNNECESSARY AUTOS FOR TESTING ^\n\t\tchooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\tchooser.addObject(\"Vision center TESTING!!!\", new TurnTillPerpVision());\n\t\tchooser.addObject(\"Boiler Auto RED\", new BoilerAuto(true));\n\t\tchooser.addObject(\"Boiler Auto BLUE\", new BoilerAuto(false));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t//\tchooser.addObject(\"Center Gear Encoder Auto (do not place )\", new DriveToFace(false, false, false));\n\t\tchooser.addObject(\"Baseline\", new DriveToLeftRightFace(false,false,false,false));\n\t\tchooser.addObject(\"TEST DRIVETANK AUTO\", new DriveTimedTank(0.7,0.7,5));\n\t\tchooser.addObject(\"Side Gear Auto RIGHT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,false));\n\n\t\tchooser.addObject(\"Side Gear Auto LEFT (manual straight lineup)(place)(TURN AFTER AND START CYCLE)\", new DriveStraightSide(true,true));\n\t\t//chooser.addObject(\"Side Gear Auto (place)\", new DriveToLeftRightFace(true,false,false,false));\n\t\t//chooser.addObject(\"Test DriveStraight Auto\", new DriveStraightPosition(10,5));\n\t\t//chooser.addObject(\"Center Gear Encoder Auto (place)\", new DriveStraightCenter());\n\t\t/*InterpreterGroup interp = new InterpreterGroup();\n\t\t(interp.init()){\n\t\t\tchooser.addObject(\"Interpreter\",interp);\n\t\t}*/\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\tSmartDashboard.putData(\"Auto Chooser\", chooser);\n\n\t\tRobot.drivebase.leftDrive1.setPosition(0);\n \tRobot.drivebase.rightDrive1.setPosition(0);\n \t\n\t\t\n \tRobot.leds.initializei2cBus();\n \tbyte mode = 0;\n \tRobot.leds.setMode(mode);\n \tgearcamera = CameraServer.getInstance();\n\t\t\n \tUsbCamera gearUsb = gearcamera.startAutomaticCapture();\n \tgearUsb.setFPS(25);\n \tgearUsb.setResolution(256, 144);\n\n\t\t//NetworkTable.setClientMode();\n \t//NetworkTable.setIPAddress(\"raspberrypi.local\");\n\t\t\n\t\t\n\t\t/*\n\t\t * new Thread(() -> { UsbCamera goalcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * goalcamera.setResolution(320, 240); goalcamera.setFPS(30);\n\t\t * goalcamera.setBrightness(1); goalcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink goalCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { goalCvSink.grabFrame(source);\n\t\t * goaloutputmat = source; } }).start();\n\t\t * goalPipeline.process(goaloutputmat);\n\t\t * \n\t\t * new Thread(() -> { UsbCamera gearcamera =\n\t\t * CameraServer.getInstance().startAutomaticCapture();\n\t\t * gearcamera.setResolution(320, 240); gearcamera.setFPS(30);\n\t\t * gearcamera.setBrightness(1); gearcamera.setExposureManual(1);\n\t\t * \n\t\t * CvSink gearCvSink = CameraServer.getInstance().getVideo();\n\t\t * \n\t\t * Mat source = new Mat();\n\t\t * \n\t\t * while(!Thread.interrupted()) { gearCvSink.grabFrame(source);\n\t\t * gearoutputmat = source; } }).start();\n\t\t * gearPipeline.process(gearoutputmat);\n\t\t */\n\t}", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "@Override\n public void robotInit() {\n }", "public void robotInit() {\n\n }", "public void robotInit() {\n\n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n SmartDashboard.putData(leftMotor1);\n SmartDashboard.putData(leftMotor2);\n SmartDashboard.putData(rightMotor1);\n SmartDashboard.putData(rightMotor2);\n SmartDashboard.putData(firstMotor);\n SmartDashboard.putData(secondMotor);\n \n\n\n\n }", "interface Robot {\n // Returns true if the cell in front is open and robot moves into the cell.\n // Returns false if the cell in front is blocked and robot stays in the current cell.\n public boolean move();\n\n // Robot will stay in the same cell after calling turnLeft/turnRight.\n // Each turn will be 90 degrees.\n public void turnLeft();\n\n public void turnRight();\n\n // Clean the current cell.\n public void clean();\n }", "@Override\n public void robotInit() {\n\n // Motor controllers\n leftMotor = new CANSparkMax(1, MotorType.kBrushless);\n leftMotor.setInverted(false);\n leftMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax leftSlave1 = new CANSparkMax(2, MotorType.kBrushless);\n leftSlave1.setInverted(false);\n leftSlave1.setIdleMode(IdleMode.kBrake);\n leftSlave1.follow(leftMotor);\n\n CANSparkMax leftSlave2 = new CANSparkMax(3, MotorType.kBrushless);\n leftSlave2.setInverted(false);\n leftSlave2.setIdleMode(IdleMode.kBrake);\n leftSlave2.follow(leftMotor);\n\n rightMotor = new CANSparkMax(4, MotorType.kBrushless);\n rightMotor.setInverted(false);\n rightMotor.setIdleMode(IdleMode.kBrake);\n\n CANSparkMax rightSlave1 = new CANSparkMax(5, MotorType.kBrushless);\n rightSlave1.setInverted(false);\n rightSlave1.setIdleMode(IdleMode.kBrake);\n rightSlave1.follow(leftMotor);\n\n CANSparkMax rightSlave2 = new CANSparkMax(6, MotorType.kBrushless);\n rightSlave2.setInverted(false);\n rightSlave2.setIdleMode(IdleMode.kBrake);\n rightSlave2.follow(leftMotor);\n\n // Encoders\n leftEncoder = leftMotor.getEncoder();\n rightEncoder = rightMotor.getEncoder();\n\n // Gyro\n gyro = new ADXRS450_Gyro();\n\n }", "@Override\n public void robotInit() {\n\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n drive = new Drive();\n pDP = new PDP();\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n camera1 = CameraServer.getInstance().startAutomaticCapture(0);\n camera2 = CameraServer.getInstance().startAutomaticCapture(1);\n camera1.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n camera2.setConnectionStrategy(VideoSource.ConnectionStrategy.kKeepOpen);\n server = CameraServer.getInstance().getServer();\n flipped = true;\n server.setSource(camera1);\n vexGyro = new AnalogGyro(0);\n vexGyro.setSensitivity(.00175);\n //rightEncoder = new Encoder(0, 1, false);\n //leftEncoder = new Encoder(2, 3, true);\n // Add commands to Autonomous Sendable Chooser\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n\n chooser.setDefaultOption(\"Autonomous Command\", new AutonomousCommand());\n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n if(centerBlock == null)\n {\n SmartDashboard.putString(\"target good? \", \"no, is null\");\n }\n else{\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out);\n if (centerBlock.yCenter < 200){\n SmartDashboard.putString(\"target good?\", \"YES!!! ycenter less than 200\");\n }\n }\n \n \n\n\n \n \n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=AUTONOMOUS\n SmartDashboard.putData(\"Auto mode\", chooser);\n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n }", "public abstract boolean interactionPossible(Robot robot);", "@Override\n public void robotInit() {\n SmartDashboard.putBoolean(\"CLIMB\", false);\n SmartDashboard.putNumber(\"servo\", 0);\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n //coast.\n if (RobotMap.DRIVE_TRAIN_DRAGON_FLY_IS_AVAILABLE)\n getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(false, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n\n getRobotContainer().configureButtonBindings();\n getRobotContainer().getTecbotSensors().initializeAllSensors();\n getRobotContainer().getTecbotSensors().getTecbotGyro().reset();\n\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_MIDDLE_WHEEL_PORT);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_LEFT_CHASSIS_PORTS);\n Robot.getRobotContainer().getDriveTrain().setCANSparkMaxMotorsState(true, RobotMap.DRIVE_TRAIN_RIGHT_CHASSIS_PORTS);\n\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n\n m_chooser.addOption(\"Move 3 m\", new SpeedReductionStraight(3, .75, 0));\n m_chooser.addOption(\"Rotate 90 degrees\", new SpeedReductionTurn(90, .5));\n m_chooser.setDefaultOption(\"El chido\", new DR01D3K4());\n m_chooser.addOption(\"Collect, go back and shoot\", new CollectPowerCellsGoBackShoot());\n m_chooser.addOption(\"Transport\", new SequentialCommandGroup(new FrontIntakeSetRaw(.75),\n new TransportationSystemSetRaw(.5)));\n m_chooser.addOption(\"Shoot 3PCs n' Move\", new SHOOT_3_PCs_N_MOVE());\n SmartDashboard.putData(\"Auto Mode\", m_chooser);\n\n //camera.setExposureManual(79);\n\n\n }", "@Override\n\tpublic void robotInit() {\n\t\toi = new OI();\n\t\t\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\tSmartDashboard.putData(\"Auto mode\", chooser);\n\t\tSystem.out.println(\"I am here\");\n\t\ttopRight = new CANTalon(1);\n\t\tmiddleRight = new CANTalon(3);\n\t\tbottomRight = new CANTalon(2);\n\t\ttopLeft = new CANTalon(5);\n\t\tmiddleLeft = new CANTalon(6);\n\t\tbottomLeft = new CANTalon(7);\n\t\tclimber = new CANTalon(4);\n\t\tshifter = new DoubleSolenoid(2,3);\n\t\tshifter.set(Value.kForward);\n\t\tbucket= new DoubleSolenoid(0, 1);\n\t\tclimber.reverseOutput(true);\n\t\t//Setting Followers\n\t\t//topRight is Right Side Master (TalonSRX #1)0.062, 0.00062, 0.62)\n\t\t//middleRight.reset();\n//\t\tmiddleRight.setProfile(0);\n//\t\tmiddleRight.setPID( 0.0, 0.0, 0.0);//TODO: make multiple profiles\n\t\t\n//\t\tmiddleRight.setFeedbackDevice(FeedbackDevice.CtreMagEncoder_Absolute);\n//\t\tmiddleRight.setEncPosition(0);\n//\t\tmiddleRight.setAllowableClosedLoopErr(10);\n\t\tmiddleRight.reverseSensor(true);\n//\t\tmiddleRight.configNominalOutputVoltage(+0f, -0f);\n//\t\tmiddleRight.configPeakOutputVoltage(+12f, -12f);\n\t\ttopRight.changeControlMode(TalonControlMode.Follower);\n\t\ttopRight.set(middleRight.getDeviceID());\n\t\ttopRight.reverseOutput(true);\n\t\tbottomRight.changeControlMode(TalonControlMode.Follower); //TalonSRX #3\n\t\tbottomRight.set(middleRight.getDeviceID());\n//\t\tmiddleRight.setProfile(1);\n//\t\tmiddleRight.setPID( 0.0, 0.0, 0.0);\n\t\t//climber is the climber Motor (TalonSRX #4)\n\t\t//TopLeft is Right Side Master (TalonSRX #5)\n\t\t//middleLeft.reset();\n\t\t//middleLeft.setProfile(0);\n//\t\tmiddleLeft.setPID(0.0, 0.00, 0.0);\n//\t\tmiddleLeft.setEncPosition(0);\n//\t\tmiddleLeft.setFeedbackDevice(FeedbackDevice.CtreMagEncoder_Absolute);\n//\t\tmiddleLeft.configNominalOutputVoltage(+0f, -0f);\n//\t\tmiddleLeft.configPeakOutputVoltage(+12f, -12f);\n\t\tmiddleLeft.reverseSensor(false);\n//\t\tmiddleLeft.setAllowableClosedLoopErr(10);\n\t\ttopLeft.changeControlMode(TalonControlMode.Follower); //TalonSRX #6\n\t\ttopLeft.set(middleLeft.getDeviceID());\n\t\ttopLeft.reverseOutput(true);\n\t\tbottomLeft.changeControlMode(TalonControlMode.Follower); //TalonSRX #7\n\t\tbottomLeft.set(middleLeft.getDeviceID());\n//\t\tmiddleLeft.setProfile(1);\n//\t\tmiddleLeft.setPID(0, 0, 0);\n\t\t//Sensors\n\t\timu = new ADIS16448IMU();\n\t\tclimberSubsystem = new ClimberSubsystem();\n\t\tbucketSubsystem = new BucketSubsystem();\n\t\tdriveSubsystem = new DriveSubsystem();\n\t}", "@Override\r\n\tpublic String getAttr_isrobot_ind() {\n\t\treturn super.getAttr_isrobot_ind();\r\n\t}", "public boolean mueveRobot(String idAgente,Coordenada coord){\n\t\treturn mueveAgente(idAgente,coord,\"Robot\");\n\t}", "@Override\n public void robotInit() {\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n \n left_motor_1= new CANSparkMax(2,MotorType.kBrushless);\n left_motor_2=new CANSparkMax(3,MotorType.kBrushless);\n right_motor_1=new CANSparkMax(5,MotorType.kBrushless);\n right_motor_2=new CANSparkMax(6,MotorType.kBrushless);\n ball_collection_motor=new CANSparkMax(4,MotorType.kBrushless);\n left_high_eject=new CANSparkMax(1, MotorType.kBrushless);\n right_high_eject=new CANSparkMax(7,MotorType.kBrushless);\n left_belt=new TalonSRX(9);\n right_belt=new TalonSRX(11);\n left_low_eject=new TalonSRX(8);\n right_low_eject=new TalonSRX(12);\n double_solenoid_1=new DoubleSolenoid(0,1);\n joystick=new Joystick(1);\n servo=new Servo(0);\n if_correted=false;\n xbox_controller=new XboxController(0);\n servo_angle=1;\n eject_speed=0;\n go_speed=0;\n turn_speed=0;\n high_eject_run=false;\n clockwise=false;\n left_motor_1.restoreFactoryDefaults();\n left_motor_2.restoreFactoryDefaults();\n right_motor_1.restoreFactoryDefaults();\n right_motor_2.restoreFactoryDefaults();\n \n left_motor_2.follow(left_motor_1);\n right_motor_1.follow(right_motor_2);\n servo.set(0);\n currentServoAngle = 0;\n factor = 0.01;\n pushed = false;\n //right_high_eject.follow(left_high_eject);\n //right_low_eject.follow(left_low_eject);\n\n }", "public String toString() {\n return \"Robot motors\";\n }", "@Override\n\tpublic void robotInit() {\n\t\tdt = new DriveTrain();\n\t\t//Initialize drive Talons\n\t\tRobotMap.vspLeft = new WPI_TalonSRX(RobotMap.dtLeft);\n\t\tRobotMap.vspRight = new WPI_TalonSRX(RobotMap.dtRight);\n\t\t//Initialize drive slave Victors\n\t\t//RobotMap.slaveLeft = new WPI_VictorSPX(RobotMap.slaveDriveLeft);\n\t\t//RobotMap.slaveRight = new WPI_VictorSPX(RobotMap.slaveDriveRight);\n\t\t//Set drive slaves to follower mode\n\t\t//RobotMap.slaveLeft.follow(RobotMap.vspLeft);\n\t\t//RobotMap.slaveRight.follow(RobotMap.vspRight);\n\t\t//Initialize drive train\n\t\tRobotMap.rd = new DifferentialDrive(RobotMap.vspLeft, RobotMap.vspRight);\n\t\t//Initialize drive joystick\n\t\tRobotMap.stick = new Joystick(RobotMap.joystickPort);\n\t\t//Disabled drive safety\n\t\tRobotMap.vspLeft.setSafetyEnabled(false);\n\t\tRobotMap.vspRight.setSafetyEnabled(false);\n\t\tRobotMap.rd.setSafetyEnabled(false);\n\t\t//Initialize lift Talon\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(5);\n\t\t//Initialize operator controller\n\t\tRobotMap.controller = new Joystick(RobotMap.controllerPort);\n\t\t//Initialize intake Victors\n\t\tRobotMap.intakeVictorLeft = new WPI_VictorSPX(RobotMap.intakeMaster);\n\t\tRobotMap.intakeVictorRight = new WPI_VictorSPX(RobotMap.intakeSlave);\n\t\t//Set right intake Victor to follow left intake Victor\n\t\tRobotMap.intakeVictorRight.follow(RobotMap.intakeVictorLeft);\n\t\t\n\t\tRobotMap.climberVictorLeft = new WPI_VictorSPX(RobotMap.climberLeftAddress);\n\t\tRobotMap.climberVictorRight = new WPI_VictorSPX(RobotMap.climberRightAddress);\n\t\t\n\t\tRobotMap.climberVictorRight.follow(RobotMap.climberVictorLeft);\n\t\t\n\t\tRobotMap.piston = new DoubleSolenoid(RobotMap.inChannel, RobotMap.outChannel);\n\t\t\n\t\tRobotMap.intakeLifter = new WPI_VictorSPX(2);\n\t\t\n\t\tRobotMap.liftTalon = new WPI_TalonSRX(RobotMap.liftTalonAddress);\n\t\t\n\t\tautoChooser = new SendableChooser();\n\t\tautoChooser.addDefault(\"Drive to baseline\" , new DriveToBaseline());\n\t\tautoChooser.addObject(\"Null auto\", new NullAuto());\n\t\tautoChooser.addObject(\"Switch from right\", new SwitchFromRight());\n\t\tautoChooser.addObject(\"Switch from left\", new SwitchFromLeft());\n\t\tautoChooser.addObject(\"PID from left\", new PIDfromLeft());\n\t\tautoChooser.addObject(\"PID from right\", new PIDfromRight());\n\t\tautoChooser.addObject(\"Scale from right\", new ScaleAutoRight());\n\t\tautoChooser.addObject(\"Scale from left\", new ScaleAutoLeft());\n\t\tautoChooser.addObject(\"PID tester\", new PIDTESTER());\n\t\tautoChooser.addObject(\"Joe use this one\", new leftOnly());\n\t\tSmartDashboard.putData(\"Autonomous mode chooser\", autoChooser);\n\t\t\n\t\t//RobotMap.liftVictor.follow(RobotMap.climberTalon);\n\t\t\n\t\tRobotMap.vspLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\tRobotMap.vspRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 0);\n\t\t\n\t\tRobotMap.intakeLifted = new DigitalInput(1);\n\t\tRobotMap.isAtTop = new DigitalInput(2);\n\t\tRobotMap.isAtBottom = new DigitalInput(0);\n\t\t\n\t\tRobotMap.vspLeft.configVelocityMeasurementPeriod(VelocityMeasPeriod.Period_100Ms, 1);\n\t\tRobotMap.vspRight.configVelocityMeasurementWindow(64, 1); \n\t\t\n\t\toi = new OI();\n\t}", "public void robotInit() {\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", defaultAuto);\n chooser.addObject(\"My Auto\", customAuto);\n SmartDashboard.putData(\"Auto choices\", chooser);\n \n // camera stuff\n robotCamera = CameraServer.getInstance();\n robotCamera.setQuality(50);\n robotCamera.startAutomaticCapture(\"cam0\");\n\n //our robot stuff\n // myChassis\t= new RobotDrive(0,1);\n leftSide\t= new VictorSP(1);\n rightSide\t= new VictorSP(0);\n spinWheels\t= new TalonSRX(2);\n armLifty\t= new TalonSRX(3);\n drivePad\t= new Joystick(0);\n statesPad\t= new Joystick(1);\n LiveWindow.addActuator(\"stud\", \"talonsrx\", armLifty);\n \n //arm position stuff\n armPosition\t\t= new AnalogInput(0);\n armPortSwitch\t= new DigitalInput(0);\n \n //solenoid stuff\n //solenoidThing = new Solenoid(1);\n \n //init button states\n lBPX\t\t\t= false;\n bIPX\t\t\t= false;\n \n //driver buttons\n ballSpitButton\t= 4;\n ballSuckButton\t= 2;\n \n //state machine variables\n defaultState\t\t= 0;\n portState\t\t\t= 1;\n chevellState\t\t= 2;\n ballGrabState\t\t= 10;\n driveState\t\t\t= 11;\n lowBarState\t\t\t= 8;\n rockState\t\t\t= driveState;\n roughState\t\t\t= driveState;\n moatState\t\t\t= driveState;\n rampartState\t\t= driveState;\n drawState\t\t\t= driveState;\n sallyState\t\t\t= driveState;\n liftOverride\t\t= 0.09;\n terrainStates\t\t= 0;\n autoLiftSpeed\t\t= 1.0;\n armLiftBuffer\t\t= 0.01;\n //port state variables\n portPosition1\t\t= 1.7;\n portPosition2\t\t= 0.9;\n portSwitch\t\t\t= 0;\n //chevell state variables\n chevellPosition1\t= 1.135;\n chevellPosition2\t= 2.0;\n chevellSwitch \t\t= 0;\n chevellWheelSpeed\t= 0.3;\n //ball grab state variables\n ballGrabPosition1\t= 1.35;\n ballGrabSwitch\t\t= 0;\n ballGrabWheelSpeed\t= -0.635;\n ballSpitWheelSpeed\t= 1.0;\n //lowbar state variables\n lowBarPosition\t\t= 1.6;\n lowBarSwitch\t\t= 0;\n //drive state variables\n driveSwitch\t\t\t= 1;\n \n }", "public Atendiendo(Robot robot){\n this.robot = robot;\n }", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n \n //Initialize Drive Train Motors/\n LeftFront = new WPI_TalonSRX(11);\n RightFront = new WPI_TalonSRX(13);\n LeftBack = new WPI_TalonSRX(10);\n RightBack = new WPI_TalonSRX(12);\n RobotDT = new MecanumDrive(LeftFront, LeftBack, RightFront, RightBack);\n \n //Initialize Xbox Controller or Joystick/\n xcontroller1 = new XboxController(0);\n xcontroller2 = new XboxController(1);\n \n //Initialize Cameras/\n RoboCam = CameraServer.getInstance();\n FrontCamera = RoboCam.startAutomaticCapture(0);\n BackCamera = RoboCam.startAutomaticCapture(1);\n\n //GPM Init/\n mGPM = new GPM();\n \n }", "public RobotInfo senseRobotInfo(Robot r) throws GameActionException;", "public Point getRobotLocation();", "private void robotMovement()\n {\n\n /* If it will be rotating, don't drive */\n if (!joystick.rightShouldMove()) {\n\n if (joystick.leftShouldMove()) {\n\n /* Derive movement values from gamepad */\n Joystick.Direction direction = joystick.getLeftDirection();\n double power = joystick.getLeftPower();\n\n int[] modifier;\n\n if (direction == Joystick.Direction.UP) {\n modifier = modUP;\n } else if (direction == Joystick.Direction.DOWN) {\n modifier = modDOWN;\n } else if (direction == Joystick.Direction.RIGHT) {\n modifier = modRIGHT;\n } else {\n modifier = modLEFT;\n }\n\n motorLeftFront.setPower(modifier[0] * ((power * 0.8) + (0.01 * frontInc)));\n motorRightFront.setPower(modifier[1] * ((power * 0.8) + (0.01 * frontInc)));\n motorLeftBack.setPower(modifier[2] * ((power * 0.8) + (0.01 * backInc)));\n motorRightBack.setPower(modifier[3] * ((power * 0.8) + (0.01 * backInc)));\n\n } else {\n setMotorPowerToZero();\n }\n\n } else {\n\n /* Rotation modifiers for sides of bot */\n Joystick.Direction d = joystick.getRightDirection();\n double power = joystick.getRightPower();\n boolean left = d == Joystick.Direction.LEFT;\n double sideMod = left ? 1 : -1;\n\n /* Set motor power */\n motorLeftFront.setPower(sideMod * power);\n motorLeftBack.setPower(sideMod * power);\n motorRightFront.setPower(sideMod * power);\n motorRightBack.setPower(sideMod * power);\n\n }\n\n }", "public interface RobotMap {\n\t// CAN Device IDs\n\n\tpublic static final int WINCH_TALON = 1;\n\t// winch motors\n\n\tpublic static final int LEFT_ALIGN_TALON = 3;\n\tpublic static final int RIGHT_ALIGN_TALON = 4;\n\t// allignment wheels\n\n\tpublic static final int REAR_RIGHT_TALON = 5;\n\tpublic static final int REAR_LEFT_TALON = 6;\n\tpublic static final int FRONT_RIGHT_TALON = 7;\n\tpublic static final int FRONT_LEFT_TALON = 8;\n\t// drivetrain wheels\n\n\tpublic static final int PCM_MAIN = 9;\n\n\t/******************\n ** PNEUMATICS ** \n ******************/ \n\tpublic static final int FLIPPER_RIGHT = 0;\n\tpublic static final int FLIPPER_LEFT = 1;\n\tpublic static final int ARMS_A = 2;\n\tpublic static final int ARMS_B = 3;\n\t// End Pneumatic Channels\n\n\t/******************\n **PID CONTROLLER** \n ******************/ \n public static final double ABS_TOL = 100;\n public static final double P = .4;\n public static final double I = .01;\n public static final double D = 11;\n public static final double OUT_RANGE_L = -0.8;\n public static final double OUT_RANGE_H = 0.8;\n\n}", "@Override\n public void robotInit() {\n m_driveTrain = new DriveTrain();\n m_oi = new OI(); \n encoder = new Encoder();\n JoystickDrive = new JoystickDrive();\n RoboticArm = new RoboticArm();\n Science = new Science();\n pid = new PID();\n inverse = new Inverse();\n\n // workingSerialCom = new serialComWorking();\n\n\n // while(true){\n // // ros_string = workingSerialCom.read();\n // // System.out.println(ros_string);\n // LeftFront = Robot.m_driveTrain.dr+iveTrainLeftFrontMotor.getSelectedSensorVelocity()*(10/4096);\n // RightFront = Robot.m_driveTrain.driveTrainRightFrontMotor.getSelectedSensorVelocity()*(10/4096);\n // LeftFront_ros = workingSerialCom.floattosString(LeftFront);\n // RigthFront_ros = workingSerialCom.floattosString(RightFront);\n\n // ros_string = workingSerialCom.read();\n // gulce = workingSerialCom.StringConverter(ros_string, 1);\n // System.out.println(gulce);\n // workingSerialCom.write(LeftFront_ros+RigthFront_ros+\"\\n\");\n // }\n // workingSerialCom.write(\"Yavuz\\n\");\n // // RoboticArm.run();\n // // m_driveTrain.run();\n // // workingSerialCom.StringConverter(ros_string, 3);\n }", "@Override\n public void robotInit() {\n m_oi = new OI();\n m_chooser.setDefaultOption(\"Default Auto\", new ExampleCommand());\n // chooser.addOption(\"My Auto\", new MyAutoCommand());\n SmartDashboard.putData(\"Auto mode\", m_chooser);\n\n Comp = new Compressor();\n\n //ClimbBack = new DoubleSolenoid(PCM_COMP_24V, 0, 1);\n //ClimbFront = new DoubleSolenoid(PCM_COMP_24V, 2, 3);\n LegFrontL = new VictorSPX(30);\n LegFrontR = new Spark(9);\n LegBackL = new VictorSPX(31);\n LegBackR = new VictorSPX(32);\n\n BackFootMover = new VictorSP(1);\n FrontFootMover = new Spark(2);\n //FeetMovers = new SpeedControllerGroup(BackFootMoverFootMover);\n\n MainRight = new CANSparkMax(9, MotorType.kBrushless);\n AltRight = new CANSparkMax(10, MotorType.kBrushless);\n MainLeft = new CANSparkMax(11, MotorType.kBrushless);\n AltLeft = new CANSparkMax(12, MotorType.kBrushless);\n\n MainRight.setIdleMode(IdleMode.kCoast);\n AltRight.setIdleMode(IdleMode.kCoast);\n MainLeft.setIdleMode(IdleMode.kCoast);\n AltLeft.setIdleMode(IdleMode.kCoast);\n\n AltLeft.follow(MainLeft);\n AltRight.follow(MainRight);\n\n Drive = new DifferentialDrive(MainLeft, MainRight);\n\n Lifter = new TalonSRX(6);\n Lifter.setNeutralMode(NeutralMode.Brake);\n Lifter.enableCurrentLimit(false);\n /*Lifter.configContinuousCurrentLimit(40);\n Lifter.configPeakCurrentLimit(50);\n Lifter.configPeakCurrentDuration(1500);*/\n //Lifter.configReverseSoftLimitEnable(true);\n //Lifter.configReverseSoftLimitThreshold(-27000);\n //Lifter.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen);\n //Lifter.configClearPositionOnLimitF(true, 0);\n Lifter.selectProfileSlot(0, 0);\n LiftSetpoint = 0;\n\n LiftFollower = new TalonSRX(5);\n LiftFollower.follow(Lifter);\n LiftFollower.setNeutralMode(NeutralMode.Brake);\n\n ArmExtender = new Solenoid(0);\n ArmOpener = new Solenoid(1);\n ArmGrippers = new Spark(0);\n\n HatchSwitch0 = new DigitalInput(0);\n HatchSwitch1 = new DigitalInput(1);\n\n Accel = new BuiltInAccelerometer(Range.k2G);\n\n //Diagnostics = new DiagnosticsLogger();\n // Uncomment this line to enable diagnostics. Warning: this may\n // cause the robot to be slower than it is supposed to be because of lag.\n //Diagnostics.start();\n\n xbox = new XboxController(0);\n joystick = new Joystick(1);\n \n LiftRamp = new SRamp();\n SpeedRamp = new SRamp();\n\n NetworkTableInstance nt = NetworkTableInstance.getDefault();\n\n VisionTable = nt.getTable(\"ChickenVision\");\n TapeDetectedEntry = VisionTable.getEntry(\"tapeDetected\");\n TapePitchEntry = VisionTable.getEntry(\"tapePitch\");\n TapeYawEntry = VisionTable.getEntry(\"tapeYaw\");\n\n LedTable = nt.getTable(\"LedInfo\");\n LedScript = LedTable.getEntry(\"CurrentScript\");\n LedScriptArgument = LedTable.getEntry(\"ScriptArgument\");\n LedArmsClosed = LedTable.getEntry(\"ArmsClosed\");\n\n UsbCamera cam = CameraServer.getInstance().startAutomaticCapture();\n cam.setPixelFormat(PixelFormat.kMJPEG);\n cam.setResolution(320, 240);\n cam.setFPS(15);\n \n\n LedScript.setString(\"ColorWaves\");\n LedScriptArgument.setString(\"\");\n\n limits = new DigitalInput[8];\n\n for (int i = 0; i < limits.length; i++) {\n limits[i] = new DigitalInput(i + 2);\n }\n }", "@Override\n\tpublic void robotInit() {\n\t\tdrive = new Drive();\n\t\tintake = new Intake();\n\t\tshooter = new Shooter();\n\t\taimShooter = new AimShooter();\n\t\tvision = new Vision();\n\t\tintakeRoller = new IntakeRoller();\n\t\taManipulators = new AManipulators();\n\t\tshooterLock = new ShooterLock();\n\n\t\t// autochooser\n\t\t// autoChooser = new SendableChooser();\n\n\t\toi = new OI();\n\t\t// instantiate the command used for the autonomous period\n\t\tlowGearCommand = new LowGear();\n\n\t\t// auto chooser commands\n\t\t// autoChooser.addDefault(\"FarLeftAuto\", new FarLeftAuto());\n\t\t// autoChooser.addObject(\"MidLeftAuto\", new MidLeftAuto());\n\t\t// autoChooser.addObject(\"MidAuto\", new MidAuto());\n\t\t// autoChooser.addObject(\"MidRightAuto\", new MidRightAuto());\n\t\t// autoChooser.addObject(\"FarRightAuto\", new FarRightAuto());\n\t\t// autoChooser.addObject(\"Uber Auto\", new UberAuto());\n\t\t// autoChooser.addObject(\"Paper Weight\", new PaperWeightAuto());\n\t\t//\n\t\t// SmartDashboard.putData(\"Autonomous\", autoChooser);\n\n\t\t// autonomousCommand = (Command) autoChooser.getSelected();\n\t\tautonomousCommand = new FarLeftAuto();\n\t\t// autonomousCommand = new MidAuto();\n\t\t// CameraServer.getInstance().startAutomaticCapture(\"cam3\");\n\t\t// autonomousCommand = new FarLeftAuto\n\n\t\tpovUpTrigger.whenActive(new MoveActuatorsUp());\n\t\tpovDownTrigger.whenActive(new MoveActuatorsDown());\n\t}", "public abstract String getRobotId();", "@Override\n public void robotInit()\n {\n System.out.println(\"RoboRIO initializing...\");\n\n // initialize cameras\n camFront = CameraServer.getInstance().startAutomaticCapture(0);\n camBack = CameraServer.getInstance().startAutomaticCapture(1);\n camServForward = CameraServer.getInstance().getServer();\n camServReverse = CameraServer.getInstance().getServer();\n\n camServForward.setSource(camFront);\n //camServReverse.setSource(camBack);\n\n // init joysticks\n Joystick[] joysticks = getControllers();\n\n driveTrain = new DriveTrain();\n hatchArm = new HatchArm();\n cargoArm = new CargoArm();\n ramp = new Ramp();\n\n driver1 = new Buttons(joysticks[0]);\n driver2 = new Buttons(joysticks[1]);\n\n // init gyro\n // try\n // {\n // gyro = new AHRS(I2C.Port.kOnboard);\n // }\n // catch (RuntimeException ex)\n // {\n // // DriverStation.reportError(\"Error instantiating navX-MXP: \" + ex.getMessage(),\n // // true);\n // System.out.println(\"Error initializing gyro!\");\n // }\n\n // // update gyro info on smart dashboard\n // SmartDashboard.putNumber(\"X angle\", gyro.getYaw() + 180);\n // SmartDashboard.putNumber(\"Y angle\", gyro.getPitch() + 180);\n // SmartDashboard.putNumber(\"Z angle\", gyro.getRoll() + 180);\n \n // SmartDashboard.putNumber(\"X vel\", gyro.getVelocityX());\n // SmartDashboard.putNumber(\"Y vel\", gyro.getVelocityY());\n // SmartDashboard.putNumber(\"Z vel\", gyro.getVelocityZ());\n\n // SmartDashboard.putData(gyro);\n updateVars();\n updateShuffleboard();\n\n System.out.println(\"RoboRIO initialization complete.\");\n }", "@Override\n\tpublic void robotInit() {\n\t\tleftDriveBack = new VictorSP(0); // PWM Port, madke sure this is set correctly.\n\t\tleftDriveFront = new VictorSP(1);\n\t\t\n\t\trightDriveFront = new VictorSP(2);\n\t\trightDriveBack = new VictorSP(3);\n\t\t\n\t\tleftIntake = new Spark(5);\n\t\trightIntake = new Spark(6);\n\t\t\n\t\tarmMotor = new TalonSRX(10);\n\t\tarmMotor.setNeutralMode(NeutralMode.Brake);\n\t\tarmMotor.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Absolute, 0, 0);\n\t\tarmMotor.configPeakCurrentLimit(30, 0);\n\t\tarmMotor.configPeakCurrentDuration(250, 0);\n\t\tarmMotor.configContinuousCurrentLimit(20, 0);\n\t\tarmMotor.configClosedloopRamp(0.25, 0);\n\t\tarmMotor.configOpenloopRamp(0.375, 0);\n\t\tarmMotor.enableCurrentLimit(true);\n\t\t\n\t\tarmMotor.configPeakOutputForward(1.0, 0);\n\t\tarmMotor.configPeakOutputReverse(-1.0, 0);\n\t\t\n\t\tarmMotor.config_kP(0, 0.0, 0);\n\t\t\n\t\tarmSetpoint = armMotor.getSelectedSensorPosition(0);\n\t\t\n\t\tstick = new Joystick(0);\n\t\tstickReversed = false;\n\t\txbox = new XboxController(1); // USB port, set in driverstation.\n\t\t\n\t\tdriveCamera = CameraServer.getInstance().startAutomaticCapture(0);\n\t}", "@Override\n public NativeRobot getNativeRobot(GraphicsDevice screen) {\n return null;\n }", "@Test\n\tpublic void testSetRobot() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\tassertNotNull(explorer.getRobot());\n\t}", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n leftFrontMotor = new CANSparkMax(10, MotorType.kBrushless);\n leftBackMotor = new CANSparkMax(11, MotorType.kBrushless);\n rightFrontMotor = new CANSparkMax(12, MotorType.kBrushless);\n rightBackMotor = new CANSparkMax(13, MotorType.kBrushless);\n leftFrontMotor.setIdleMode(IdleMode.kCoast);\n leftBackMotor.setIdleMode(IdleMode.kCoast);\n rightFrontMotor.setIdleMode(IdleMode.kCoast);\n rightBackMotor.setIdleMode(IdleMode.kCoast);\n gyro = new ADXRS450_Gyro();\n gyro.calibrate();\n stick = new Joystick(1);\n controller = new XboxController(0);\n origGyro = 0;\n }", "public int getCurType(){\r\n\t\treturn this.curRobotType;\r\n\t}", "public static RobotInfo robotInfo(Robot r) throws GameActionException {\n return RC.senseRobotInfo(r);\n }", "public MotherRobot() {\n Random random = new Random();\n int sepInt = random.nextInt(3);\n if (sepInt == 1)\n setSeparate(true);\n }", "public Direction getCorrectRobotDirection();", "public void robotInit() {\n\t\trightFront = new CANTalon(1);\n\t\tleftFront = new CANTalon(3);\n\t\trightBack = new CANTalon(2);\n\t\tleftBack = new CANTalon(4);\n\t\t\n\t\trightBack.changeControlMode(CANTalon.TalonControlMode.Follower);\n\t\tleftBack.changeControlMode(CANTalon.TalonControlMode.Follower);\n\t\t\n\t\tleftBack.set(leftFront.getDeviceID());\n\t\trightBack.set(rightFront.getDeviceID());\n\t\t\n\t\tturn = new Joystick(0);\n\t\tthrottle = new Joystick(1);\n\t}", "public void robotInit() \n {\n RobotMap.init();\n\n driveTrain = new DriveTrain();\n gripper = new Gripper();\n verticalLift = new VerticalLift();\n\n // OI must be constructed after subsystems. If the OI creates Commands \n //(which it very likely will), subsystems are not guaranteed to be \n // constructed yet. Thus, their requires() statements may grab null \n // pointers. Bad news. Don't move it.\n\n oi = new OI();\n\n autonomousChooser = new SendableChooser();\n autonomousChooser.addDefault( \"Auto: Do Nothing\" , new DoNothing () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone\" , new DriveToAutoZone () );\n autonomousChooser.addObject ( \"Auto: Drive To Auto Zone (Bump)\" , new DriveToAutoZoneBump () );\n //autonomousChooser.addObject ( \"Auto: Get One (Long)\" , new GetOneLong () );\n //autonomousChooser.addObject ( \"Auto: Get One (Short)\" , new GetOneShort () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Bump)\" , new GetOneRecycleBin () );\n autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Side)\" , new GetRecycleBinSide () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards)\" , new GetOneRecycleBinBackwards () );\n //autonomousChooser.addObject ( \"Auto: Get One Recycle Bin (Backwards, Bump)\", new GetOneRecycleBinBackwardsBump() );\n //autonomousChooser.addObject ( \"Auto: Get Two (Short)\" , new GetTwoShort () );\n //autonomousChooser.addObject ( \"Auto: Get Two Short (Special)\" , new GetTwoShortSpecial () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From left)\" , new TwoLongFromLeft () );\n //autonomousChooser.addObject ( \"Auto: Get Two (Long, From right)\" , new TwoLongFromRight () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin\" , new OneRecycleBinAndTote () );\n autonomousChooser.addObject ( \"Auto: Get One Tote and Recycle Bin (Bump)\" , new OneRecycleBinAndToteBump () );\n SmartDashboard.putData( \"Autonomous\", autonomousChooser );\n\n // instantiate the command used for the autonomous period\n //autonomousCommand = new RunAutonomousCommand();\n\n m_USBVCommand = new UpdateSBValuesCommand();\n m_USBVCommand.start();\n \n frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\n /*\n // the camera name (ex \"cam0\") can be found through the roborio web interface\n session = NIVision.IMAQdxOpenCamera(\"cam1\",\n NIVision.IMAQdxCameraControlMode.CameraControlModeController);\n NIVision.IMAQdxConfigureGrab(session);\n \n NIVision.IMAQdxStartAcquisition(session);\n */\n /*\n camServer = CameraServer.getInstance();//.startAutomaticCapture(\"cam1\");\n camServer.setQuality(30);\n \n cam = new USBCamera(\"cam1\");\n cam.openCamera();\n cam.setFPS(60);\n \n cam.setSize(320, 240);\n cam.updateSettings();\n */\n }", "@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }", "@Override\r\n\tpublic void setRobot(Robot r) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\trobot = (BasicRobot) r;\r\n\t\t//robot.setMaze(this.mC);\r\n\t\t\r\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tm_frontRight = new PWMVictorSPX(0);\n\t\tm_frontLeft = new PWMVictorSPX(2);\n\t\tm_backRight = new PWMVictorSPX(1);\n\t\tm_backLeft = new PWMVictorSPX(3);\n\n\t\tx_aligning = false;\n\n\t\tJoy = new Joystick(0);\n\t\tmyTimer = new Timer();\n\n\t\tfinal SpeedControllerGroup m_left = new SpeedControllerGroup(m_frontLeft, m_backLeft);\n\t\tfinal SpeedControllerGroup m_right = new SpeedControllerGroup(m_frontRight, m_backRight);\n\n\t\tm_drive = new DifferentialDrive(m_left, m_right);\n\n\t\tdistanceToTarget = 0;\n\n\t\tcounter = new Counter(9);\n\t\tcounter.setMaxPeriod(10.0);\n\t\tcounter.setSemiPeriodMode(true);\n\t\tcounter.reset();\n\t}", "public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}", "public void agregarRobot(String nombre);", "public void robotInit() {\n\t\toi = new OI();\n chooser = new SendableChooser();\n chooser.addDefault(\"Default Auto\", new ExampleCommand());\n// chooser.addObject(\"My Auto\", new MyfAutoCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n \n //Drive\n //this.DriveTrain = new DriveTrain();\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickLeft);\n \n //Buttons\n // oi.button1.whenPressed(new SetMaxMotorOutput());\n \n //Ultrasonic\n sonic1 = new Ultrasonic(0,1);\n sonic1.setAutomaticMode(true);\n \n }", "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\tbreak;\r\n\t\tcase \"tank\":\r\n\t\t\tindex = 2;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new Exception(\"Unknown/Invalid robot type.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn this.robots.get(index);\r\n\t}", "@Override\n\t\tprotected boolean condition() {\n\t\t\tWhichSide whichSide = VisionUtil.getPositionOfGearTarget();\n\t\t\tSystem.err.println(\"Position of gear target: \"+whichSide);\n\t\t\tif (whichSide == WhichSide.RIGHT)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public void robotInit(){\n\t\tSmartDashboard.putNumber(\"Climber Arm Speed: \", 0.5);\n\t\tSmartDashboard.putNumber(\"Climber Winch Speed: \", 0.25);\n\t}", "@Override\n\tpublic void robotInit() //starts once when the code is started\n\t{\n\t\tm_oi = new OI(); //further definition of OI\n\t\t\n\t\t// chooser.addObject(\"My Auto\", new MyAutoCommand());\n\t\t//SmartDashboard.putData(\"Auto mode\", m_chooser);\n\t\t\n\t\tnew Thread(() -> {\n\t\t\tUsbCamera camera1 = CameraServer.getInstance().startAutomaticCapture();\n\t\t\tcamera1.setResolution(640, 480);\n\t\t\tcamera1.setFPS(30);\n\t\t\tcamera1.setExposureAuto();\n\t\t\t\n\t\t\tCvSink cvSink = CameraServer.getInstance().getVideo();\n\t\t\tCvSource outputStream = CameraServer.getInstance().putVideo(\"Camera1\", 640, 480); \n\t\t\t//set up a new camera with this name in SmartDashboard (Veiw->Add->CameraServer Stream Viewer)\n\t\t\t\n\t\t\tMat source = new Mat();\n\t\t\tMat output = new Mat();\n\t\t\t\n\t\t\twhile(!Thread.interrupted())\n\t\t\t{\n\t\t\t\tcvSink.grabFrame(source);\n\t\t\t\tImgproc.cvtColor(source, output, Imgproc.COLOR_BGR2RGB);//this will show the video in black and white \n\t\t\t\toutputStream.putFrame(output);\n\t\t\t}\t\t\t\t\t\n\t\t}).start();//definition of camera, runs even when disabled\n\t\t\n\t\tdriveStick = new Joystick(0); //further definition of joystick\n\t\tgyroRotate.gyroInit(); //initializing the gyro - in Rotate_Subsystem\n\t\tultrasonic = new Ultrasonic_Sensor(); //further definition of ultrasonic\n\t\tRobotMap.encoderLeft.reset();\n\t\tRobotMap.encoderRight.reset();\n\t\tdriveToDistance.controllerInit();\n\t}", "public void robotInit() {\n\t\tmyRobot = new RobotDrive(0,1);\n\t\tteleop = new Teleop(myRobot);\n\t\tauto = new AutonomousDrive(myRobot);\n\t}", "public interface RobotConveyor {\n\n Robot createRobot();\n}", "@Override\n\tpublic void robotInit() {\n\t\t\n\t\t//CameraServer.getInstance().startAutomaticCapture(); //Minimum required for camera\n\t\t\n\t\t//new Thread(() -> {\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(640, 480);\n camera.setWhiteBalanceAuto();\n camera.setFPS(20);\n \n //CvSink cvSink = CameraServer.getInstance().getVideo();\n //CvSource outputStream = CameraServer.getInstance().putVideo(\"Blur\", 640, 480);\n /* \n Mat source = new Mat();\n Mat output = new Mat();\n \n while(!Thread.interrupted()) {\n cvSink.grabFrame(source);\n Imgproc.cvtColor(source, output, Imgproc.COLOR_BGR2GRAY);\n outputStream.putFrame(output);\n }*/\n //}).start();\n\t\t\n\t\t\n\t\t\n\t\t/**\n\t\t * 7780 long run\n\t\t */\n\t\t\n\t\tdriverStation = DriverStation.getInstance();\n\t\t// Initialize all subsystems\n\t\tm_drivetrain = new DriveTrain();\n\t\tm_pneumatics = new Pneumatics();\n\t\t\n\t\tm_pneumatics.createSolenoid(RobotMap.PNEUMATICS.GEARSHIFT_SOLENOID, \n\n\t\t\t\tRobotMap.PNEUMATICS.SOLENOID_ID_1, \n\n\t\t\t\tRobotMap.PNEUMATICS.SOLENOID_ID_2);\n\t\t\n\t\tm_pneumatics.createSolenoid(RobotMap.PNEUMATICS.FORKLIFT_SOLENOID, RobotMap.PNEUMATICS.SOLENOID_ID_3, RobotMap.PNEUMATICS.SOLENOID_ID_4);\n\t\t\n\t\tm_forklift = new ForkLift();\n\t\tm_intake = new Intake();\n\t\tm_oi = new OI();\n\n\t\t// instantiate the command used for the autonomous period\n\t\tm_autonomousCommand = new Autonomous();\n\t\tdriverXbox = m_oi.getDriverXboxControl();\n\t\toperatorXbox = m_oi.getDriverXboxControl();\n\t\tsetupAutoCommands();\n\t\t\n\t\t//chooser.addDefault(\"Left Long\",new LeftLong());\n\t\t\n\t\t//SmartDashboard.putData(\"Auto\",chooser);\n\n\t\t// Show what command your subsystem is running on the SmartDashboard\n\t\tSmartDashboard.putData(m_drivetrain);\n\t\tSmartDashboard.putData(m_forklift);\n\t\t\n\t}", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addOption(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\n\t\tJoy = new Joystick(0);\n\t\ts1 = new DoubleSolenoid(1, 0);\n\t\ts2 = new DoubleSolenoid(2, 3);\n\t\tairCompressor = new Compressor();\n\t\ttriggerValue = false;\n\t\ts1Value = false;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Think about how to use the key in robots hashtable\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tRobot.setRobotInUse(x.getRobotKey());\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tjl.setText(x.getName());\n\t \t \t\n\t \t \tvi.showVideo(x);\n\t \t \t\n\t \t \t\n\t\t\t\t\t}", "@Override\n\tpublic void robotInit() {\n\t\tSmartDashboard.putData(new TestLIDARCommand());\n\n\t\tdriveSubsystem = new DriveSubsystem();\n\t\tshooterSubsystem = new ShooterSubsystem();\n\t\tfeederSubsystem = new FeederSubsystem();\n\t\tintakeSubsystem = new IntakeSubsystem();\n\t\tgearSubsystem = new GearSubsystem();\n\t\tclimberSubsystem = new ClimberSubsystem();\n\t\tcameraSubsystem = new CameraSubsystem();\n\n\t\tnavigator = new Navigator();\n\t\toi = new OI();\n\n\t\tm_chooser = new SendableChooser<>();\n\t\tm_chooser.addDefault(\"Do Nothing\", new PistonReleaseCommand());\n\t\t//m_chooser.addObject(\"Boiler Auto (side hopper)\", new SelectBoilerAutoCommand());\n\t\tm_chooser.addObject(\"Boiler Auto (front hopper)\", new SelectBoilerAutoFrontCommand());\n\t\tm_chooser.addObject(\"Test drive straight\", new MeasureDistanceCommand(1500, 100000));\n\t\tm_chooser.addObject(\"Test max speed\", new TimedDriveCommand(5.0, 1.00));\n\t\tm_chooser.addObject(\"Gear Auto (boiler)\", new SelectGearBoilerCommand());\n\t\tm_chooser.addObject(\"Gear Auto (feeder)\", new SelectGearFeederCommand());\n\t\tm_chooser.addObject(\"Gear Auto (middle)\", new SelectGearMiddleAutoCommand());\n\t\tSmartDashboard.putData(\"Auto mode\", m_chooser);\n\n\t\tRobot.navigator.startMeasuringDistance();\n\t}", "@Override\n public void robotInit() {\n myRobot = new DifferentialDrive(leftfrontmotor, rightfrontmotor);\n leftrearmotor.follow(leftfrontmotor);\n rightrearmotor.follow(rightfrontmotor);\n leftfrontmotor.setInverted(true); // <<<<<< Adjust this until robot drives forward when stick is forward\n\t\trightfrontmotor.setInverted(true); // <<<<<< Adjust this until robot drives forward when stick is forward\n\t\tleftrearmotor.setInverted(InvertType.FollowMaster);\n rightrearmotor.setInverted(InvertType.FollowMaster);\n \n CameraServer.getInstance().startAutomaticCapture();\n\n \n\n comp.setClosedLoopControl(true);\n \n\n /* Set up Dashboard widgets */\n SmartDashboard.putNumber(\"L Stick\", gamepad.getRawAxis(1));\n\t\tSmartDashboard.putNumber(\"R Stick\", gamepad.getRawAxis(5));\n\t\tSmartDashboard.putBoolean(\"Back Button\", gamepad.getRawButton(5));\n\t\tSmartDashboard.putBoolean(\"Fwd Button\", gamepad.getRawButton(6));\n\t\t\n SmartDashboard.putNumber(\"LF\", pdp.getCurrent(leftfrontmotorid));\n\t\tSmartDashboard.putNumber(\"LR\", pdp.getCurrent(leftrearmotorid));\n\t\tSmartDashboard.putNumber(\"RF\", pdp.getCurrent(rightfrontmotorid));\n\t\tSmartDashboard.putNumber(\"RR\", pdp.getCurrent(rightrearmotorid));\n SmartDashboard.putNumber(\"Total\", pdp.getCurrent(0) + pdp.getCurrent(1) + pdp.getCurrent(2) + pdp.getCurrent(3) + pdp.getCurrent(4) + pdp.getCurrent(5) + pdp.getCurrent(6) + pdp.getCurrent(7) + pdp.getCurrent(8) + pdp.getCurrent(9) + pdp.getCurrent(10) + pdp.getCurrent(11) + pdp.getCurrent(12) + pdp.getCurrent(13) + pdp.getCurrent(14) + pdp.getCurrent(15));\n }", "@Override\n public void robotInit() {\n\t\t// set up logging\n\t\tlogger = EventLogging.getLogger(Robot.class, Level.INFO);\n\n // set up hardware\n RobotMap.init();\n\n // set up subsystems\n //initalized drive subsystem, which control motors to move robot\n driveSubsystem = new DriveSubsystem();\n\t\tbuttonSubstyem = new ButtonSubsystem();\n servoSubsystem = new ServoSubsystem();\n wingSubsystem = new WingSubsystem();\n flagSpinnerSubsystem = new FlagSpinnerSubsystem();\n // OI must be constructed after subsystems. If the OI creates Commands\n //(which it very likely will), subsystems are not guaranteed to be\n // constructed yet. Thus, their requires() statements may grab null\n // pointers. Bad news. Don't move it.\n oi = new OI();\n\n // Add commands to Autonomous Sendable Chooser\n chooser.addDefault(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"Auto mode\", chooser);\n }", "@Override\n\tpublic void robotInit() {\n\t\tm_chooser.addDefault(\"Default Auto\", kDefaultAuto);\n\t\tm_chooser.addObject(\"My Auto\", kCustomAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", m_chooser);\n\t\t\n\t\ttalonMotor10.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor11.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor12.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor13.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor14.setNeutralMode(NeutralMode.Brake);\n\t\ttalonMotor15.setNeutralMode(NeutralMode.Brake);\n\t}", "public OI(){\n driveStick = new Joystick(RobotMap.DRIVE_STICK);\n armStick = new Joystick(RobotMap.ARM_STICK);\n assoc(); \n }", "public Position getRobotPadPosition();", "public void teleopArcadeDrive(){\r\n\t\tmyRobot.arcadeDrive(-m_controls.driver_Y_Axis(), -m_controls.driver_X_Axis());\r\n\t}", "Lift(final Robot ROBOT)\n {\n _robot = ROBOT;\n }", "public void robotInit() {\n\t\toi = OI.getInstance();\r\n\t\t\r\n\t\t// instantiate the command used for the autonomous and teleop period\r\n\t\treadings = new D_SensorReadings();\r\n\t\t// Start pushing values to the SD.\r\n\t\treadings.start();\r\n\t\t//Gets the single instances of driver and operator, from OI. \r\n\t\tdriver = oi.getDriver();\r\n\t\toperator = oi.getOperator();\r\n\r\n\t\t//Sets our default auto to NoAuto, if the remainder of our code doesn't seem to work. \r\n\t\tauto = new G_NoAuto();\r\n\t\t\r\n\t\t//Sets our teleop commandGroup to T_TeleopGroup, which contains Kaj,ELevator, Intake, and Crossbow Commands. \r\n\t\tteleop = new T_TeleopGroup();\r\n\t\t\r\n\t}", "public void robotInit() {\n\t\t//Get preferences from robot flash memory\n\t\tprefs = Preferences.getInstance();\n\t\tarmCalMinPosition = prefs.getDouble(\"armCalMinPosition\", 0);\n\t\tarmCal90DegPosition = prefs.getDouble(\"armCal90DegPosition\", 0);\n\t\tif (armCalMinPosition==0 || armCal90DegPosition==0) {\n\t\t\tDriverStation.reportError(\"Error: Preferences missing from RoboRio for Shooter Arm position calibration. Shooter arm disabled.\", true);\n\t\t\tshooterArmEnabled = false;\n\t\t} else {\n\t\t\tshooterArmEnabled = true;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tdebugStream = new FileWriter(\"/home/lvuser/debug.log\", true);\n\t\t\tdebugStream.write(\"Robot program started\\n\");\n\t\t\tdebugStream.flush();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not open debug file: \" + e);\n\t\t}\n\n\t\t//Instantiates the subsystems\n\t\tdriveTrain = new DriveTrain();\n\t\tshifter = new Shifter();\n\t\tshooterArm = new ShooterArm();\n\t\tshooter = new Shooter();\n\t\tintake = new Intake();\n\t\tvision = new Vision();\n\t\tpanel = new PowerDistributionPanel();\n\t\tarmPiston = new ArmPiston();\n\n\t\t// OI must be constructed after subsystems. If the OI creates Commands\n\t\t// (which it very likely will), subsystems are not guaranteed to be\n\t\t// constructed yet. Thus, their requires() statements may grab null\n\t\t// pointers. Bad news. Don't move it.\n\t\toi = new OI();\n\n intake.motorCurrentTrigger.whenActive(new IntakeMotorStop());\n\n timerLEDs.start();\n timerTilt.start();\n timerRumble.start();\n \n // instantiate the command used for the autonomous period\n\t\t//autonomousCommand = new AutonomousCommandGroup();\n\t\traiseArm90 = new ShooterArmMoveToSetLocation(90);\n\t\t\n\t\t// Display active commands and subsystem status on SmartDashboard\n\t\tSmartDashboard.putData(Scheduler.getInstance());\n\t\tSmartDashboard.putData(driveTrain);\n\t\tSmartDashboard.putData(shifter);\n\t\tSmartDashboard.putData(shooterArm);\n\t\tSmartDashboard.putData(shooter);\n\t\tSmartDashboard.putData(intake);\n\t\tSmartDashboard.putData(vision);\n\t\tSmartDashboard.putData(armPiston);\n\t}", "@Override\n\tpublic void execute(Robot robot) {\n\t}", "public RobotHardware (LinearOpMode opmode) {\n myOpMode = opmode;\n }", "public DriveTrain(){\r\n super(\"Drive Train\");\r\n Log = new MetaCommandLog(\"DriveTrain\", \"Gyro\" , \"Left Jaguars,Right Jaguars\");\r\n gyro1 = new Gyro(RobotMap.AnalogSideCar , RobotMap.DriveTrainGyroInput);\r\n lfJag = new Jaguar(RobotMap.frontLeftMotor);\r\n lfRearJag = new Jaguar(RobotMap.rearLeftMotor);\r\n rtJag = new Jaguar(RobotMap.frontRightMotor);\r\n rtRearJag = new Jaguar(RobotMap.rearRightMotor);\r\n drive = new RobotDrive(lfJag, lfRearJag, rtJag, rtRearJag);\r\n \r\n //lfFrontJag = new Jaguar (3);\r\n //rtFrontJag = new Jaguar (4);\r\n \r\n //joystick2 = new Joystick(2);\r\n //sensor1 = new DigitalInput(1);\r\n //sensor2 = new DigitalInput (2);\r\n\r\n }", "public interface RobotConnectionManager {\n RobotConnection getConnection();\n}", "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n //starts the dual cameras\n CameraServer.getInstance().startAutomaticCapture(0);\n CameraServer.getInstance().startAutomaticCapture(1);\n //auto start (disabled atm)\n //pressBoy.setClosedLoopControl(true);\n pressBoy.setClosedLoopControl(false);\n \n \n }", "public void robotInit()\r\n {\r\n // Initialize all subsystems\r\n CommandBase.init();\r\n // instantiate the command used for the autonomous period\r\n //Initializes triggers\r\n mecanumDriveTrigger = new MechanumDriveTrigger();\r\n tankDriveTrigger = new TankDriveTrigger();\r\n resetGyro = new ResetGyro();\r\n }", "void deployRobot(){\n\n //Robot going down\n //Can be omitted if for test purposes\n if(!autonomonTesting) {\n while (robot.mechLiftLeft.getCurrentPosition() < robot.MAX_LIFT_POSITION &&\n robot.mechLiftRight.getCurrentPosition() < robot.MAX_LIFT_POSITION && !isStopRequested()) {\n robot.liftMovement(robot.LIFT_SPEED, false);\n }\n telemetry.addData(\"Lift Position\", robot.mechLiftLeft.getCurrentPosition());\n }\n else{\n telemetry.addLine(\"Tesint mode, without lift\");\n }\n robot.liftMovement(0, false);\n telemetry.update();\n\n\n //tensor activation\n if (tfod != null) {\n tfod.activate();\n }\n\n //moving to get in position for TensorFlow scan\n\n //out of the hook\n robot.setDrivetrainPosition(-300, \"translation\", .6);\n\n //away from the lander\n robot.setDrivetrainPosition(800, \"strafing\", .3);\n\n //back to initial\n robot.setDrivetrainPosition(300, \"translation\", .6);\n\n }", "public void robotInit() {\n System.out.println(\"Default robotInit() method... Override me!\");\n }", "public abstract String getRobotUri();", "public static void IAmFalconBot() {\n // How many encoder clicks per revolution (change to 2048 for falcon 500\n // encoders)\n encoderUnitsPerShaftRotation = 2048;\n // with 6 in wheels estimate 10 feet = 13038 encoder ticks\n\n // The difference between the left and right side encoder values when the robot\n // is rotated 180 degrees\n encoderUnitsPerRobotRotation = 3925;// thats the SUM of the two (this is just a rough guess)\n //these values are just guesses at the moment\n cruiseVelocity = 2250;\n acceleration = 2250;\n // Allowable error to exit movement methods\n defaultAcceptableError = 250;\n\n shooterPanMotorEncoderTicksPerRotation = 3977;\n //TODO: may need to be negative if turns the wrong way\n shooterPanSpeed = 1;\n System.out.println(\"I AM FALCONBOT! CACAW! CACAAAAAWWWWW!\");\n }", "public void robotInit() {\n RobotMap.init();\n driveWithJoystick = new DriveTrain();\n \n oi = new OI();\n }", "private void configureRobot() {\n // Populating robot configuration\n m_robotConfiguration.setMasterUri(ROS_MASTER_URI);\n m_robotConfiguration.setHostname(JAVA_ROS_HOSTNAME);\n m_robotConfiguration.setNodeName(NODE_NAME);\n }", "public OI() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n\n xBoxOne = new Joystick(0);\n \n autoRight = new JoystickButton(xBoxOne, 10);\n autoRight.whenPressed(new AutoRight());\n autoLeft = new JoystickButton(xBoxOne, 9);\n autoLeft.whenPressed(new AutoLeft());\n vision = new JoystickButton(xBoxOne, 7);\n vision.whenPressed(new SeekAndDriveTo());\n cameraSwitch = new JoystickButton(xBoxOne, 2);\n cameraSwitch.whenPressed(new CameraSwitch());\n latchCloseManual = new JoystickButton(xBoxOne, 6);\n latchCloseManual.whileHeld(new latchCloseManual());\n latchOpenManual = new JoystickButton(xBoxOne, 5);\n latchOpenManual.whileHeld(new latchOpenManual());\n toggleDirection = new JoystickButton(xBoxOne, 3);\n toggleDirection.whenPressed(new SwitchDirection());\n follow = new JoystickButton(xBoxOne, 8);\n follow.whenPressed(new follow());\n driveBackToDistance = new JoystickButton(xBoxOne, 1);\n driveBackToDistance.whenPressed(new AutoReverse());\n driveToDistance = new JoystickButton(xBoxOne, 4);\n driveToDistance.whenPressed(new AutoDrop());\n\n\n // SmartDashboard Buttons\n SmartDashboard.putData(\"Autonomous Command\", new AutonomousCommand());\n SmartDashboard.putData(\"DriveWithJoystick\", new DriveWithJoystick());\n SmartDashboard.putData(\"driveToDistance\", new driveToDistance());\n SmartDashboard.putData(\"HDriveJoystick\", new HDriveJoystick());\n SmartDashboard.putData(\"driveBackToDistance\", new driveBackToDistance());\n SmartDashboard.putData(\"follow\", new follow());\n SmartDashboard.putData(\"Climb\", new Climb());\n SmartDashboard.putData(\"SwitchDirection\", new SwitchDirection());\n SmartDashboard.putData(\"latchClose\", new latchClose());\n SmartDashboard.putData(\"latchOpen\", new latchOpen());\n SmartDashboard.putData(\"AutoDrop\", new AutoDrop());\n SmartDashboard.putData(\"AutoReverse\", new AutoReverse());\n SmartDashboard.putData(\"latchOpenManual\", new latchOpenManual());\n SmartDashboard.putData(\"latchCloseManual\", new latchCloseManual());\n SmartDashboard.putData(\"autoForwardBack\", new autoForwardBack());\n SmartDashboard.putData(\"kickForward\", new kickForward());\n SmartDashboard.putData(\"CameraSwitch\", new CameraSwitch());\n SmartDashboard.putData(\"Vision\", new Vision());\n SmartDashboard.putData(\"SeekAndDriveTo\", new SeekAndDriveTo());\n SmartDashboard.putData(\"turnRightTimed\", new turnRightTimed());\n SmartDashboard.putData(\"turnLeftTimed\", new turnLeftTimed());\n SmartDashboard.putData(\"driveForwardTimed\", new driveForwardTimed());\n SmartDashboard.putData(\"AutoRight\", new AutoRight());\n SmartDashboard.putData(\"AutoLeft\", new AutoLeft());\n SmartDashboard.putData(\"AutoMiddle\", new AutoMiddle());\n SmartDashboard.putData(\"SeekAndDriveSim\", new SeekAndDriveSim());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\n }", "@Override\n public void robotInit() {\n // Hardware.getInstance().init();\n hardware.init();\n\n controllerMap = ControllerMap.getInstance();\n controllerMap.controllerMapInit();\n\n controllerMap.intake.IntakeInit();\n\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n\n intakeCam = CameraServer.getInstance().startAutomaticCapture(\"Driver Camera :)\", 0);\n intakeCam.setPixelFormat(PixelFormat.kMJPEG);\n intakeCam.setResolution(160, 120);\n intakeCam.setFPS(15);\n // climberCam = CameraServer.getInstance().startAutomaticCapture(1);\n\n }", "public void onScannedRobot(ScannedRobotEvent e ) {\n\t\t// Replace the next line with any behavior you would like\n \n \n \n if (target==e.getName()) {\n \tdouble absBearing = e.getBearingRadians() + getHeadingRadians();\n \tsetTurnGunRightRadians(\n \t Utils.normalRelativeAngle(absBearing - \n \t getGunHeadingRadians())\n \t );\n \tfire(1);\n } else if (target==\"NULLNULLNULL\" ) {\n \ttarget=e.getName();\n }\n \n\t\tout.println(\"\\ntarget \"+target+\n\t\t\t\t\t\"\\nmy change \"+\n\t\t\t\t\t\"\\nmy radar \"+getRadarHeadingRadians());\n\t\t\n\t\t\n\t}", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "@Override\r\n\tpublic int getOrientation(Robot robot)\r\n\t{\r\n\t\treturn robot.getOrientation().ordinal();\r\n\t}" ]
[ "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.6092984", "0.6092984", "0.6092984", "0.6077537", "0.6077537", "0.6059815", "0.60446835", "0.60414267", "0.6037991", "0.6026385", "0.6021533", "0.6002691", "0.5993027", "0.5986135", "0.5962167", "0.5962156", "0.59609723", "0.59428304", "0.59334433", "0.5928953", "0.5926864", "0.5924439", "0.59168416", "0.58807033", "0.5879195", "0.5873365", "0.586739", "0.58608097", "0.58521825", "0.5850084", "0.5842706", "0.58344615", "0.5831768", "0.5831414", "0.58313227", "0.5828123", "0.5815655", "0.5772379", "0.57701075", "0.57497424", "0.574419", "0.5742314", "0.56865644", "0.5680609", "0.5677446", "0.567709", "0.5665294", "0.5662201", "0.5659919", "0.5657549", "0.5654202", "0.5634697", "0.5613323", "0.56110674", "0.56056935", "0.56032026", "0.5597977", "0.5589553", "0.5589488", "0.5569532", "0.5566398", "0.55636716", "0.5559949", "0.5553971", "0.5545252", "0.55239", "0.5522014", "0.55198294", "0.5507598", "0.5504143", "0.5501924", "0.5495769", "0.5492671", "0.5491267", "0.54827905", "0.54811025", "0.54779065", "0.54749715", "0.5469814", "0.5469635", "0.5466884" ]
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 getRobot(String nombre);", "public int getCurType(){\r\n\t\treturn this.curRobotType;\r\n\t}", "@Basic\r\n\tpublic Robot getRobot()\r\n\t{\r\n\t\treturn this.robot;\r\n\t}", "public String getRobot() {\n return nombre;\n }", "boolean findRobot();", "public Robot choisitRobot() {\r\n List<Robot> indisponibles = new ArrayList<Robot>();\r\n List<Robot> disponibles = new ArrayList<Robot>();\r\n for (Robot robot : robots) {\r\n if (robot.initDep().isEmpty()) {\r\n indisponibles.add(robot);\r\n } else {\r\n disponibles.add(robot);\r\n }\r\n }\r\n for (Robot r : indisponibles) {\r\n System.out.println(r.toString() + \" ne peut pas se deplacer :(\");\r\n }\r\n int i = 1;\r\n for (Robot robot : disponibles) {\r\n System.out.println(\"\\t\" + i + \" : \" + robot.toString());\r\n i += 1;\r\n }\r\n i = secureInput(1, i - 1);\r\n if (disponibles.isEmpty()) {\r\n return null;\r\n }\r\n return disponibles.get(i - 1);\r\n }", "public boolean isRobot() {\n\t\treturn isRobot;\n\t}", "public VehicleType get(VehicleType t){\n\t\tfor(int i = 0; i < types.size(); i++){\n\t\t\tif(types.get(i).getVehicleType().equals(t.getVehicleType())){\n\t\t\t\treturn types.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public PlayerTypes getPlayerType();", "public FreeColGameObjectType getType() {\n return this;\n }", "public RoomType getRoomType() {\r\n\t\treturn this.type;\r\n\t}", "public static BufferedImage getRobot(Robot r) {\n\t\t//a kulonbozo jatekosok robotjai kulonbozo szinuek\n\t\t//robot=ImageIO.read(new File(\"robot\"+(r.getID()-1)+\".png\"));\n\t\t//return robot;\n\t\t//return robot[r.getID()-1];\n\t\treturn robot[r.getID()];\n\t}", "public Component getComponent(Class type) {\n for (Component component : components) {\n if (component.getClass().equals(type)) {\n return component;\n }\n }\n return null;\n }", "SpawnType getLobbySpawnType();", "public RoboPlatform platform() {\n return platform;\n }", "public EnnemyType getType()\n\t{\n\t\treturn type;\n\t}", "public void agregarRobot(Robot robot);", "public boolean isBot() {\n \t\treturn (type == PLAYER_BOT);\n \t}", "public RoomType getRoomType() {\n\t\treturn roomType;\n\t}", "public Skill get(SkillType type) {\r\n\t\treturn this.skills.get(type);\r\n\t}", "SpawnType getGameSpawnType();", "public interface RobotConveyor {\n\n Robot createRobot();\n}", "public static GameType getGameType() {\n\t\treturn type;\n\t}", "public TYPE getType(){\n return this.type;\n }", "public RoboticonCustomisation getRoboticon(){\r\n\t\treturn roboticon;\r\n\t}", "@Override\n public NativeRobot getNativeRobot(GraphicsDevice screen) {\n return null;\n }", "public int getPlayerType() {\r\n\t\treturn Player.RANDOM_PLAYER;\r\n\t}", "public final Physique.TypeP getType() {\n return Physique.TypeP.tank;\n }", "SpawnType getSpectatorSpawnType();", "public void killRobot(String robotType) {\r\n\t\tif (robotType.toLowerCase().equals(\"scout\")) {\r\n\t\t\tkillRobot(0);\r\n\t\t} else if (robotType.toLowerCase().equals(\"sniper\")) {\r\n\t\t\tkillRobot(1);\r\n\t\t} else if (robotType.toLowerCase().equals(\"tank\")) {\r\n\t\t\tkillRobot(2);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Invalid/unknown robot type.\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic Types getType() {\n\t\treturn GameObject.Types.PERSON;\n\t}", "public Type getType() {\n \t\tif(type == null) {\n \t\t\ttry {\n \t\t\t\tsetType(B3BackendActivator.instance.getBundle().loadClass(getQualifiedName()));\n \t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO: ?? Need to handle this, so the \"not found\" surfaces to the user...\n\t\t\t\t// Handled via model validation - type can not be null\n \t\t\t}\n \t\t}\n \t\treturn type;\n \t}", "public Kind findByType(String type) {\n\t\tString hql=\"from Kind k where k.type=:type\";\n\t\tKind kind = sessionFactory.getCurrentSession().createQuery(hql,Kind.class).setParameter(\"type\", type).uniqueResult();\t\t\n\t\treturn kind;\n\t}", "public VehicleType getVehicleType() {\r\n VehicleType vt = new VehicleType(this.vehicleType.getCategory());\r\n return vt;\r\n }", "public SmartDevice getDevice(String type) {\n\t\treturn null;\n\t}", "public VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}", "public abstract Class<? extends Tower> getTower();", "public String getPlayerType() {\r\n return playerType;\r\n\t}", "private ParkingType getVehicleType() {\n LOGGER.info(\"Please select vehicle type from menu\");\n LOGGER.info(\"1 CAR\");\n LOGGER.info(\"2 BIKE\");\n int input = inputReaderUtil.readSelection();\n switch (input) {\n case 1:\n return ParkingType.CAR;\n case 2:\n return ParkingType.BIKE;\n default:\n LOGGER.error(\"Incorrect input provided\");\n throw new IllegalArgumentException(\"Entered input is invalid\");\n }\n }", "DoorMat getType(boolean isPowered, boolean hingeOnRightSide);", "public AngelType getType() {\n return type;\n }", "@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleTypeOrBuilder getVehicleTypeOrBuilder() {\n return getVehicleType();\n }", "@NonNull\n\t<T> Optional<T> get(@NonNull Class<T> type);", "@Override\n\tpublic VehicleType getVehicleType() {\n\t\treturn vehicleType;\n\t}", "@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleType getVehicleType() {\n return vehicleType_ == null ? google.maps.fleetengine.v1.Vehicle.VehicleType.getDefaultInstance() : vehicleType_;\n }", "public int getType() {\n validify();\n return Client.INSTANCE.pieceGetType(ptr);\n }", "public void killRobot(int robotType) {\r\n\t\trobots.get(robotType).setDead();\r\n\t\t++this.robotsDestroyed;\r\n\t}", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "public Type getType() {\r\n return this.type;\r\n }", "@Override\n public IronGolemType getType() {\n return IronGolemType.TYPE;\n }", "public Type getType()\n {\n return type;\n }", "public Direction getCorrectRobotDirection();", "public static RobotInfo robotInfo(Robot r) throws GameActionException {\n return RC.senseRobotInfo(r);\n }", "public Type getType() {\n return this.type;\n }", "public Optional<String> getType() {\n return Optional.ofNullable(type);\n }", "@java.lang.Override\n public speech.multilang.Params.ScoringControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ScoringControllerParams.Type result = speech.multilang.Params.ScoringControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ScoringControllerParams.Type.UNKNOWN : result;\n }", "public PlatformType getPlatformType();", "public final ActorType getType() {\n return type;\n }", "public BonjourService getProtocolFor(String type) {\n ProtocolMetadata metadata = types.get(type);\n if (metadata != null) {\n return metadata.getProtocol();\n } else {\n return null;\n }\n }", "String getActorType();", "<T extends Component> Optional<T> getExactComponent(Class<T> type);", "public Equip getEquip(int type)\r\n {\r\n if (type==Equip.WEAPON)\r\n return weapon;\r\n else if (type == Equip.ARMOR)\r\n return armor;\r\n return null;\r\n }", "public Class<?> getType() {\n return this.type;\n }", "public TypeEnum getType() {\n return type;\n }", "public PlaceType getType() {\n\t\treturn type;\n\t}", "interface Robot {\n // Returns true if the cell in front is open and robot moves into the cell.\n // Returns false if the cell in front is blocked and robot stays in the current cell.\n public boolean move();\n\n // Robot will stay in the same cell after calling turnLeft/turnRight.\n // Each turn will be 90 degrees.\n public void turnLeft();\n\n public void turnRight();\n\n // Clean the current cell.\n public void clean();\n }", "public Type getType() {\n return type;\n }", "@Override\r\n \tprotected Robot getRobot() {\t\t\r\n \t\treturn null;\r\n \t}", "public PlanNode findAtOrBelow( Type typeToFind ) {\n return findAtOrBelow(EnumSet.of(typeToFind));\n }", "private static RemoteWebDriver getWebDriver(final Browsers type, Proxy proxy) {\n DesiredCapabilities capabilitiesProxy = new DesiredCapabilities();\n if (proxy != null) {\n capabilitiesProxy.setCapability(CapabilityType.PROXY, proxy);\n }\n switch (type) {\n case CHROME:\n return getChromeDriver(proxy);\n case FIREFOX:\n return getFirefoxDriver(capabilitiesProxy);\n case IEXPLORE:\n return getIEDriver(proxy);\n case OPERA:\n return getOperaDriver(capabilitiesProxy);\n case SAFARI:\n return getSafariDriver(capabilitiesProxy);\n case SELENDROID:\n return getSelendroidDriver();\n /**\n * Appium Android browser for testing with Android\n */\n case APPIUM_ANDROID:\n return getAppiumDriver();\n /**\n * Appium iOS Safari browser for testing with iOS Simulator\n */\n case IOS:\n return getIosDriver();\n default:\n return null;\n }\n }", "public Point getRobotLocation();", "public T caseRobot(Robot object) {\r\n\t\treturn null;\r\n\t}", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public ItineraryLegType journeyLegType() {\n if (walk != null) {\n return ItineraryLegType.WALK;\n } else {\n return ItineraryLegType.BUS;\n }\n }", "public String getRoomtype() {\r\n\t\treturn roomtype;\r\n\t}", "@java.lang.Override public speech.multilang.Params.ScoringControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.ScoringControllerParams.Type result = speech.multilang.Params.ScoringControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.ScoringControllerParams.Type.UNKNOWN : result;\n }", "public java.lang.Object getRobotOrientation() throws CallError, InterruptedException {\n return (java.lang.Object)service.call(\"getRobotOrientation\").get();\n }", "public Type getType(){\n\t\treturn this.type;\n\t}", "public Type getType() {\n return _type;\n }", "public TypeMirror getType() {\n return type;\n }", "public Type getType() {\n return type;\n }", "public List<Robot> getRobots();", "public String getMovementType() {\n\t\treturn (String) get_Value(\"MovementType\");\n\t}", "public Type getType () {\n\t\treturn type;\n\t}", "Type getType();", "Type getType();" ]
[ "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.5064859", "0.50580406", "0.503914", "0.50355464", "0.50153464", "0.49962983", "0.49846977", "0.4976908", "0.49715912", "0.49599662", "0.4947401", "0.4939694", "0.49365413", "0.49326402", "0.49091375", "0.49062806", "0.49032795", "0.49006128", "0.48998615", "0.48933813", "0.48860317", "0.48808888", "0.48504063", "0.4818806", "0.48181498", "0.4813468", "0.48128825", "0.48103055", "0.4808862", "0.48011583", "0.4783923", "0.47806188", "0.477249", "0.47699928", "0.47642043", "0.47629115", "0.47625616", "0.47625038", "0.47595152", "0.4747774", "0.4747755", "0.4745605", "0.47445047", "0.47444978", "0.47403282", "0.47363836", "0.47320625", "0.47315586", "0.4731426", "0.47291124", "0.47262374", "0.47216237", "0.4711709", "0.47082004", "0.47074875", "0.4706598", "0.47000226", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46971136", "0.46965256", "0.46920466", "0.46895337", "0.4689523", "0.4689507", "0.468609", "0.46834707", "0.46771908", "0.46769798", "0.46671525", "0.46638614", "0.46530193", "0.46530193" ]
0.77133924
1