File size: 75,473 Bytes
7141f4e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | dataset_index,text,true_label,predicted_label,correct,error_type,probability_authentication_identity,probability_unrelated
0,private AuthenticationInfo getAuthenticationInfo(final AuthenticationContext authContext) { AuthenticationInfo auth = null; if (authContext != null) { auth = new AuthenticationInfo() { @Override public String getUserName() { return authContext.get(AuthenticationContext.USERNAME); } @Override public String getPassword() { return authContext.get(AuthenticationContext.PASSWORD); },authentication_identity,authentication_identity,True,,0.9859014749526978,0.01409851387143135
1,"@Override public Response handleToken(InviteOrgActionToken token, ActionTokenContext<InviteOrgActionToken> tokenContext) { UserModel user = tokenContext.getAuthenticationSession().getAuthenticatedUser(); KeycloakSession session = tokenContext.getSession(); if (!Organizations.isEnabled(session)) { return disabledOrganizationResponse(tokenContext, token); } OrganizationProvider orgProvider = session.getProvider(OrganizationProvider.class); AuthenticationSessionModel authSession = tokenContext.getAuthenticationSession(); EventBuilder event = tokenContext.getEvent();",authentication_identity,authentication_identity,True,,0.9854139089584351,0.0145861292257905
2,"if (originatingUserSessionId != null) { UserSessionModel originatingSession = Boolean.TRUE.equals(originatingUserSessionOffline) ? session.sessions().getOfflineUserSession(realm, originatingUserSessionId) : session.sessions().getUserSession(realm, originatingUserSessionId); boolean validSession = originatingSession != null && originatingSession.getState() == UserSessionModel.State.LOGGED_IN && AuthenticationManager.isSessionValid(realm, originatingSession) && originatingSession.getUser() != null && originatingSession.getUser().getId().equals(originatingUserId); if (!validSession) { String errorMessage = ""Session that authorized the pre-authorized code is not active""; event.detail(REASON, errorMessage).error(Errors.USER_SESSION_NOT_FOUND); throw new CorsErrorResponseException(cors, OAuthErrorException.INVALID_GRANT, errorMessage, Response.Status.BAD_REQUEST); }",authentication_identity,authentication_identity,True,,0.9852567315101624,0.014743241481482983
3,"UserSessionModel userSession = session.sessions().getUserSession(realm, state); if (userSession == null) { logger.error(""no valid user session""); EventBuilder event = new EventBuilder(realm, session, clientConnection); event.event(EventType.LOGOUT); event.error(Errors.USER_SESSION_NOT_FOUND); return ErrorPage.error(session, null, Response.Status.BAD_REQUEST, Messages.IDENTITY_PROVIDER_UNEXPECTED_ERROR); } if (userSession.getState() != UserSessionModel.State.LOGGING_OUT) { logger.error(""usersession in different state""); EventBuilder event = new EventBuilder(realm, session, clientConnection); event.event(EventType.LOGOUT); event.error(Errors.USER_SESSION_NOT_FOUND); return ErrorPage.error(session, null, Response.Status.BAD_REQUEST, Messages.SESSION_NOT_ACTIVE); } return AuthenticationManager.finishBrowserLogout(session, realm, userSession, session.getContext().getUri(), clientConnection, headers);",authentication_identity,authentication_identity,True,,0.9853217601776123,0.014678164385259151
4,"@Override public BrokeredIdentityContext getFederatedIdentity(String response) { AccessTokenResponse tokenResponse = null; try { tokenResponse = JsonSerialization.readValue(response, AccessTokenResponse.class); } catch (IOException e) { throw new IdentityBrokerException(""Could not decode access token response."", e); } String accessToken = verifyAccessToken(tokenResponse); String encodedIdToken = tokenResponse.getIdToken(); JsonWebToken idToken = validateToken(encodedIdToken);",authentication_identity,authentication_identity,True,,0.9853643774986267,0.014635578729212284
5,"@Override protected void setUserName(Map<String, List<String>> newAttributes, List<String> values) { }",unrelated,unrelated,True,,0.016983766108751297,0.9830161929130554
6,"protected HttpClientContext createHttpClientContext(final Http5FileSystemConfigBuilder builder, final GenericFileName rootName, final FileSystemOptions fileSystemOptions, final UserAuthenticationData authData) { final HttpClientContext clientContext = HttpClientContext.create(); final BasicCredentialsProvider credsProvider = new BasicCredentialsProvider(); clientContext.setCredentialsProvider(credsProvider); final String userName = UserAuthenticatorUtils.getUserName(rootName, authData); if (!StringUtils.isEmpty(userName)) { final char[] password = UserAuthenticatorUtils.getPasswordChars(rootName, authData); credsProvider.setCredentials(new AuthScope(rootName.getHostName(), rootName.getPort()), new UsernamePasswordCredentials(userName, password.clone())); }",authentication_identity,authentication_identity,True,,0.9849263429641724,0.015073675662279129
7,"public boolean validateUserAndPassword(AuthenticationFlowContext context, MultivaluedMap<String, String> inputData) { UserModel user = getUser(context, inputData); boolean shouldClearUserFromCtxAfterBadPassword = !isUserAlreadySetBeforeUsernamePasswordAuth(context); return user != null && validatePassword(context, user, inputData, shouldClearUserFromCtxAfterBadPassword) && validateUser(context, user, inputData); }",authentication_identity,authentication_identity,True,,0.9856894016265869,0.014310586266219616
8,public String getUserAttributes() { return userAttributes; },unrelated,unrelated,True,,0.0023471310269087553,0.9976529479026794
9,"public static String deflatedBase64encoded(String input) throws IOException { ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); Deflater deflater = new Deflater(Deflater.DEFLATED, true); DeflaterOutputStream deflaterStream = new DeflaterOutputStream(bytesOut, deflater); deflaterStream.write(input.getBytes(Charset.forName(""UTF-8""))); deflaterStream.finish(); return new String(Base64.encodeBase64(bytesOut.toByteArray())); }",unrelated,unrelated,True,,0.00206709373742342,0.9979329109191895
10,"client.setHostConfiguration(config); if (username != null) { final UsernamePasswordCredentials creds = new UsernamePasswordCredentials(username, password); final AuthScope scope = new AuthScope(hostname, AuthScope.ANY_PORT); client.getState().setCredentials(scope, creds); } } catch (final Exception exc) { throw new FileSystemException(""vfs.provider.http/connect.error"", exc, hostname); } return client;",authentication_identity,authentication_identity,True,,0.9861857295036316,0.013814320787787437
11,public UserAuth getUserAuth() { return auth; },unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9732205271720886,0.026779482141137123
12,"request.getResponse().sendAcknowledgement(ContinueResponseTiming.ALWAYS); Realm realm = context.getRealm(); if (characterEncoding != null) { request.setCharacterEncoding(characterEncoding); } String username = request.getParameter(Constants.FORM_USERNAME); String password = request.getParameter(Constants.FORM_PASSWORD); if (log.isTraceEnabled()) { log.trace(""Authenticating username '"" + username + ""'""); } principal = realm.authenticate(username, password); if (principal == null) { forwardToErrorPage(request, response, config); return AuthenticationResult.FAILED; }",authentication_identity,authentication_identity,True,,0.9854421615600586,0.014557885006070137
13,public void setUserPattern(String userPattern) { this.userPattern = userPattern; if (userPattern == null) { userPatternArray = null; } else { userPatternArray = parseUserPatternString(userPattern); singleConnection = create(); } },unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9618523716926575,0.03814757242798805
14,"protected void validatePassword(String password) throws AuthenticationException { if (password == null) { throw new AuthenticationException(sm.getString(""authenticator.nullPassword"")); } }",authentication_identity,authentication_identity,True,,0.9856866002082825,0.014313370920717716
15,"@Override public int getLoginTimeout() { throw new UnsupportedOperationException(""Login timeout is not supported.""); }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.5356550216674805,0.46434497833251953
16,public void setEmailTheme(String name) { delegate.setEmailTheme(name); },unrelated,unrelated,True,,0.0024360711686313152,0.9975639581680298
17,"private void put(int wait, Resource resource, File source, HttpEntity httpEntity, String url) throws TransferFailedException, AuthorizationException, ResourceDoesNotExistException { try { mkdirs(PathUtils.dirname(resource.getName())); } catch (HttpException he) { fireTransferError(resource, he, TransferEvent.REQUEST_PUT); } catch (IOException e) { fireTransferError(resource, e, TransferEvent.REQUEST_PUT); } Repository repo = getRepository(); HttpHost targetHost = new HttpHost(repo.getHost(), repo.getPort(), repo.getProtocol()); AuthScope targetScope = getBasicAuthScope().getScope(targetHost); if (credentialsProvider.getCredentials(targetScope) != null) { BasicScheme targetAuth = new BasicScheme(StandardCharsets.UTF_8); authCache.put(targetHost, targetAuth); } HttpPut putMethod = new HttpPut(url); firePutStarted(resource, source); try { putMethod.setEntity(httpEntity); CloseableHttpResponse response = execute(putMethod); try { fireTransferDebug(formatTransferDebugMessage( url, response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), getProxyInfo())); int statusCode = response.getStatusLine().getStatusCode(); switch (statusCode) { case HttpStatus.SC_OK: case HttpStatus.SC_CREATED: case HttpStatus.SC_ACCEPTED: case HttpStatus.SC_NO_CONTENT: break; case HttpStatus.SC_FORBIDDEN: case HttpStatus.SC_UNAUTHORIZED: case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED: EntityUtils.consumeQuietly(response.getEntity()); fireSessionConnectionRefused(); throw new AuthorizationException(formatAuthorizationMessage( url, response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), getProxyInfo())); case HttpStatus.SC_NOT_FOUND: case HttpStatus.SC_GONE: EntityUtils.consumeQuietly(response.getEntity()); throw new ResourceDoesNotExistException(formatResourceDoesNotExistMessage( url, response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), getProxyInfo())); case SC_TOO_MANY_REQUESTS: EntityUtils.consumeQuietly(response.getEntity()); put(backoff(wait, url), resource, source, httpEntity, url); break; default: EntityUtils.consumeQuietly(response.getEntity()); TransferFailedException e = new TransferFailedException(formatTransferFailedMessage( url, response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), getProxyInfo())); fireTransferError(resource, e, TransferEvent.REQUEST_PUT); throw e; } firePutCompleted(resource, source); EntityUtils.consume(response.getEntity()); } finally { response.close(); } } catch (IOException | HttpException | InterruptedException e) { fireTransferError(resource, e, TransferEvent.REQUEST_PUT); throw new TransferFailedException(formatTransferFailedMessage(url, getProxyInfo()), e); } }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.976065456867218,0.02393457293510437
18,@Override public AuthScheme get(HttpHost host) { if (host == null) { return null; } return map.get(host); },unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.984558641910553,0.01544132549315691
19,"private final ConcurrentHashMap<HttpHost, AuthScheme> map = new ConcurrentHashMap<>();",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9842276573181152,0.01577228493988514
20,"public default void consumeCNonce(String cNonce) throws VerificationException { throw new VerificationException(""c_nonce consumption is not supported""); }",authentication_identity,authentication_identity,True,,0.9850274324417114,0.014972549863159657
21,"Charset credentialsCharset = HttpTransporterUtils.getHttpCredentialsEncoding(session, repository); Registry<AuthSchemeProvider> authSchemeRegistry = RegistryBuilder.<AuthSchemeProvider>create() .register(AuthSchemes.BASIC, new BasicSchemeFactory(credentialsCharset)) .register(AuthSchemes.DIGEST, new DigestSchemeFactory(credentialsCharset)) .register(AuthSchemes.NTLM, new NTLMSchemeFactory()) .register(AuthSchemes.SPNEGO, new SPNegoSchemeFactory()) .register(AuthSchemes.KERBEROS, new KerberosSchemeFactory()) .build();",authentication_identity,authentication_identity,True,,0.9855947494506836,0.014405282214283943
22,"public static String addSign(Node node, PrivateKey key, X509Certificate certificate, String signAlgorithm, String digestAlgorithm) throws ParserConfigurationException, XPathExpressionException, XMLSecurityException { if (node == null) { throw new IllegalArgumentException(""Provided node was null""); } DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); Document doc = dbf.newDocumentBuilder().newDocument(); Node newNode = doc.importNode(node, true); doc.appendChild(newNode); return addSign(doc, key, certificate, signAlgorithm, digestAlgorithm); }",unrelated,unrelated,True,,0.11879561841487885,0.8812044262886047
23,"OpenSSLProvider(String providerName, boolean includeTrustManager, String defaultTlsProtocol, boolean deprecatedTlsV1, boolean enabledTlsV1) { super(providerName, 1.0, ""Android's OpenSSL-backed security provider""); NativeCrypto.checkAvailability(); if (!deprecatedTlsV1 && !enabledTlsV1) { throw new IllegalArgumentException(""TLSv1 is not deprecated and cannot be disabled.""); } Platform.setup(deprecatedTlsV1, enabledTlsV1); String classOpenSSLContextImpl = PREFIX + ""OpenSSLContextImpl""; String tls12SSLContextSuffix = ""$TLSv12""; String tls13SSLContextSuffix = ""$TLSv13""; String defaultSSLContextSuffix; switch (defaultTlsProtocol) { case ""TLSv1.2"": defaultSSLContextSuffix = tls12SSLContextSuffix; break; case ""TLSv1.3"": defaultSSLContextSuffix = tls13SSLContextSuffix; break; default: throw new IllegalArgumentException(""Choice of default protocol is unsupported: "" + defaultTlsProtocol); } put(""SSLContext.SSL"", classOpenSSLContextImpl + defaultSSLContextSuffix); put(""SSLContext.TLS"", classOpenSSLContextImpl + defaultSSLContextSuffix); put(""SSLContext.TLSv1"", classOpenSSLContextImpl + ""$TLSv1""); put(""SSLContext.TLSv1.1"", classOpenSSLContextImpl + ""$TLSv11""); put(""SSLContext.TLSv1.2"", classOpenSSLContextImpl + tls12SSLContextSuffix); put(""SSLContext.TLSv1.3"", classOpenSSLContextImpl + tls13SSLContextSuffix); put(""SSLContext.Default"", PREFIX + ""DefaultSSLContextImpl"" + defaultSSLContextSuffix); if (includeTrustManager) { put(""TrustManagerFactory.PKIX"", TrustManagerFactoryImpl.class.getName()); put(""Alg.Alias.TrustManagerFactory.X509"", ""PKIX""); } put(""KeyManagerFactory.PKIX"", KeyManagerFactoryImpl.class.getName()); put(""Alg.Alias.KeyManagerFactory.X509"", ""PKIX""); put(""AlgorithmParameters.AES"", PREFIX + ""IvParameters$AES""); put(""Alg.Alias.AlgorithmParameters.2.16.840.1.101.3.4.1.2"", ""AES""); put(""Alg.Alias.AlgorithmParameters.2.16.840.1.101.3.4.1.22"", ""AES""); put(""Alg.Alias.AlgorithmParameters.2.16.840.1.101.3.4.1.42"", ""AES""); put(""AlgorithmParameters.ChaCha20"", PREFIX + ""IvParameters$ChaCha20""); put(""AlgorithmParameters.DESEDE"", PREFIX + ""IvParameters$DESEDE""); put(""Alg.Alias.AlgorithmParameters.TDEA"", ""DESEDE""); put(""Alg.Alias.AlgorithmParameters.1.2.840.113549.3.7"", ""DESEDE""); put(""AlgorithmParameters.GCM"", PREFIX + ""GCMParameters""); put(""Alg.Alias.AlgorithmParameters.2.16.840.1.101.3.4.1.6"", ""GCM""); put(""Alg.Alias.AlgorithmParameters.2.16.840.1.101.3.4.1.26"", ""GCM""); put(""Alg.Alias.AlgorithmParameters.2.16.840.1.101.3.4.1.46"", ""GCM""); put(""AlgorithmParameters.OAEP"", PREFIX + ""OAEPParameters""); put(""AlgorithmParameters.PSS"", PREFIX + ""PSSParameters""); put(""AlgorithmParameters.EC"", PREFIX + ""ECParameters""); put(""MessageDigest.SHA-1"", PREFIX + ""OpenSSLMessageDigestJDK$SHA1""); put(""Alg.Alias.MessageDigest.SHA1"", ""SHA-1""); put(""Alg.Alias.MessageDigest.SHA"", ""SHA-1""); put(""Alg.Alias.MessageDigest.1.3.14.3.2.26"", ""SHA-1""); put(""MessageDigest.SHA-224"", PREFIX + ""OpenSSLMessageDigestJDK$SHA224""); put(""Alg.Alias.MessageDigest.SHA224"", ""SHA-224""); put(""Alg.Alias.MessageDigest.2.16.840.1.101.3.4.2.4"", ""SHA-224""); put(""MessageDigest.SHA-256"", PREFIX + ""OpenSSLMessageDigestJDK$SHA256""); put(""Alg.Alias.MessageDigest.SHA256"", ""SHA-256""); put(""Alg.Alias.MessageDigest.2.16.840.1.101.3.4.2.1"", ""SHA-256""); put(""MessageDigest.SHA-384"", PREFIX + ""OpenSSLMessageDigestJDK$SHA384""); put(""Alg.Alias.MessageDigest.SHA384"", ""SHA-384""); put(""Alg.Alias.MessageDigest.2.16.840.1.101.3.4.2.2"", ""SHA-384""); put(""MessageDigest.SHA-512"", PREFIX + ""OpenSSLMessageDigestJDK$SHA512""); put(""Alg.Alias.MessageDigest.SHA512"", ""SHA-512""); put(""Alg.Alias.MessageDigest.2.16.840.1.101.3.4.2.3"", ""SHA-512""); put(""MessageDigest.MD5"", PREFIX + ""OpenSSLMessageDigestJDK$MD5""); put(""Alg.Alias.MessageDigest.1.2.840.113549.2.5"", ""MD5""); put(""KeyGenerator.ARC4"", PREFIX + ""KeyGeneratorImpl$ARC4""); put(""Alg.Alias.KeyGenerator.RC4"", ""ARC4""); put(""Alg.Alias.KeyGenerator.1.2.840.113549.3.4"", ""ARC4""); put(""KeyGenerator.AES"", PREFIX + ""KeyGeneratorImpl$AES""); put(""KeyGenerator.ChaCha20"", PREFIX + ""KeyGeneratorImpl$ChaCha20""); put(""KeyGenerator.DESEDE"", PREFIX + ""KeyGeneratorImpl$DESEDE""); put(""Alg.Alias.KeyGenerator.TDEA"", ""DESEDE""); put(""KeyGenerator.HmacMD5"", PREFIX + ""KeyGeneratorImpl$HmacMD5""); put(""Alg.Alias.KeyGenerator.1.3.6.1.5.5.8.1.1"", ""HmacMD5""); put(""Alg.Alias.KeyGenerator.HMAC-MD5"", ""HmacMD5""); put(""Alg.Alias.KeyGenerator.HMAC/MD5"", ""HmacMD5""); put(""KeyGenerator.HmacSHA1"", PREFIX + ""KeyGeneratorImpl$HmacSHA1""); put(""Alg.Alias.KeyGenerator.1.2.840.113549.2.7"", ""HmacSHA1""); put(""Alg.Alias.KeyGenerator.1.3.6.1.5.5.8.1.2"", ""HmacSHA1""); put(""Alg.Alias.KeyGenerator.HMAC-SHA1"", ""HmacSHA1""); put(""Alg.Alias.KeyGenerator.HMAC/SHA1"", ""HmacSHA1""); put(""KeyGenerator.HmacSHA224"", PREFIX + ""KeyGeneratorImpl$HmacSHA224""); put(""Alg.Alias.KeyGenerator.1.2.840.113549.2.8"", ""HmacSHA224""); put(""Alg.Alias.KeyGenerator.HMAC-SHA224"", ""HmacSHA224""); put(""Alg.Alias.KeyGenerator.HMAC/SHA224"", ""HmacSHA224""); put(""KeyGenerator.HmacSHA256"", PREFIX + ""KeyGeneratorImpl$HmacSHA256""); put(""Alg.Alias.KeyGenerator.1.2.840.113549.2.9"", ""HmacSHA256""); put(""Alg.Alias.KeyGenerator.2.16.840.1.101.3.4.2.1"", ""HmacSHA256""); put(""Alg.Alias.KeyGenerator.HMAC-SHA256"", ""HmacSHA256""); put(""Alg.Alias.KeyGenerator.HMAC/SHA256"", ""HmacSHA256""); put(""KeyGenerator.HmacSHA384"", PREFIX + ""KeyGeneratorImpl$HmacSHA384""); put(""Alg.Alias.KeyGenerator.1.2.840.113549.2.10"", ""HmacSHA384""); put(""Alg.Alias.KeyGenerator.HMAC-SHA384"", ""HmacSHA384""); put(""Alg.Alias.KeyGenerator.HMAC/SHA384"", ""HmacSHA384""); put(""KeyGenerator.HmacSHA512"", PREFIX + ""KeyGeneratorImpl$HmacSHA512""); put(""Alg.Alias.KeyGenerator.1.2.840.113549.2.11"", ""HmacSHA512""); put(""Alg.Alias.KeyGenerator.HMAC-SHA512"", ""HmacSHA512""); put(""Alg.Alias.KeyGenerator.HMAC/SHA512"", ""HmacSHA512""); put(""KeyPairGenerator.RSA"", PREFIX + ""OpenSSLRSAKeyPairGenerator""); put(""Alg.Alias.KeyPairGenerator.1.2.840.113549.1.1.1"", ""RSA""); put(""Alg.Alias.KeyPairGenerator.1.2.840.113549.1.1.7"", ""RSA""); put(""Alg.Alias.KeyPairGenerator.2.5.8.1.1"", ""RSA""); put(""KeyPairGenerator.EC"", PREFIX + ""OpenSSLECKeyPairGenerator""); put(""Alg.Alias.KeyPairGenerator.1.2.840.10045.2.1"", ""EC""); put(""Alg.Alias.KeyPairGenerator.1.3.133.16.840.63.0.2"", ""EC""); put(""KeyPairGenerator.XDH"", PREFIX + ""OpenSSLXDHKeyPairGenerator""); put(""Alg.Alias.KeyPairGenerator.1.3.101.110"", ""XDH""); put(""Alg.Alias.KeyPairGenerator.X25519"", ""XDH""); put(""KeyPairGenerator.EdDSA"", PREFIX + ""OpenSslEdDsaKeyPairGenerator""); put(""Alg.Alias.KeyPairGenerator.1.3.101.112"", ""EdDSA""); put(""Alg.Alias.KeyPairGenerator.Ed25519"", ""EdDSA""); put(""KeyPairGenerator.ML-DSA"", PREFIX + ""OpenSslMlDsaKeyPairGenerator$MlDsa""); put(""KeyPairGenerator.ML-DSA-44"", PREFIX + ""OpenSslMlDsaKeyPairGenerator$MlDsa44""); put(""Alg.Alias.KeyPairGenerator.2.16.840.1.101.3.4.3.17"", ""ML-DSA-44""); put(""Alg.Alias.KeyPairGenerator.OID.2.16.840.1.101.3.4.3.17"", ""ML-DSA-44""); put(""KeyPairGenerator.ML-DSA-65"", PREFIX + ""OpenSslMlDsaKeyPairGenerator$MlDsa65""); put(""Alg.Alias.KeyPairGenerator.2.16.840.1.101.3.4.3.18"", ""ML-DSA-65""); put(""Alg.Alias.KeyPairGenerator.OID.2.16.840.1.101.3.4.3.18"", ""ML-DSA-65""); put(""KeyPairGenerator.ML-DSA-87"", PREFIX + ""OpenSslMlDsaKeyPairGenerator$MlDsa87""); put(""Alg.Alias.KeyPairGenerator.2.16.840.1.101.3.4.3.19"", ""ML-DSA-87""); put(""Alg.Alias.KeyPairGenerator.OID.2.16.840.1.101.3.4.3.19"", ""ML-DSA-87""); put(""KeyPairGenerator.SLH-DSA-SHA2-128S"", PREFIX + ""OpenSslSlhDsaKeyPairGenerator""); put(""KeyPairGenerator.ML-KEM"", PREFIX + ""OpenSslMlKemKeyPairGenerator$MlKem""); put(""KeyPairGenerator.ML-KEM-768"", PREFIX + ""OpenSslMlKemKeyPairGenerator$MlKem768""); put(""KeyPairGenerator.ML-KEM-1024"", PREFIX + ""OpenSslMlKemKeyPairGenerator$MlKem1024""); put(""KeyPairGenerator.XWING"", PREFIX + ""OpenSslXwingKeyPairGenerator""); put(""KeyFactory.RSA"", PREFIX + ""OpenSSLRSAKeyFactory""); put(""Alg.Alias.KeyFactory.1.2.840.113549.1.1.1"", ""RSA""); put(""Alg.Alias.KeyFactory.1.2.840.113549.1.1.7"", ""RSA""); put(""Alg.Alias.KeyFactory.2.5.8.1.1"", ""RSA""); put(""KeyFactory.EC"", PREFIX + ""OpenSSLECKeyFactory""); put(""Alg.Alias.KeyFactory.1.2.840.10045.2.1"", ""EC""); put(""Alg.Alias.KeyFactory.1.3.133.16.840.63.0.2"", ""EC""); put(""KeyFactory.XDH"", PREFIX + ""OpenSSLXDHKeyFactory""); put(""Alg.Alias.KeyFactory.1.3.101.110"", ""XDH""); put(""Alg.Alias.KeyFactory.X25519"", ""XDH""); put(""KeyFactory.EdDSA"", PREFIX + ""OpenSslEdDsaKeyFactory""); put(""Alg.Alias.KeyFactory.1.3.101.112"", ""EdDSA""); put(""Alg.Alias.KeyFactory.Ed25519"", ""EdDSA""); put(""KeyFactory.ML-DSA"", PREFIX + ""OpenSslMlDsaKeyFactory$MlDsa""); put(""KeyFactory.ML-DSA-44"", PREFIX + ""OpenSslMlDsaKeyFactory$MlDsa44""); put(""Alg.Alias.KeyFactory.2.16.840.1.101.3.4.3.17"", ""ML-DSA-44""); put(""Alg.Alias.KeyFactory.OID.2.16.840.1.101.3.4.3.17"", ""ML-DSA-44""); put(""KeyFactory.ML-DSA-65"", PREFIX + ""OpenSslMlDsaKeyFactory$MlDsa65""); put(""Alg.Alias.KeyFactory.2.16.840.1.101.3.4.3.18"", ""ML-DSA-65""); put(""Alg.Alias.KeyFactory.OID.2.16.840.1.101.3.4.3.18"", ""ML-DSA-65""); put(""KeyFactory.ML-DSA-87"", PREFIX + ""OpenSslMlDsaKeyFactory$MlDsa87""); put(""Alg.Alias.KeyFactory.2.16.840.1.101.3.4.3.19"", ""ML-DSA-87""); put(""Alg.Alias.KeyFactory.OID.2.16.840.1.101.3.4.3.19"", ""ML-DSA-87""); put(""KeyFactory.SLH-DSA-SHA2-128S"", PREFIX + ""OpenSslSlhDsaKeyFactory""); put(""KeyFactory.ML-KEM"", PREFIX + ""OpenSslMlKemKeyFactory$MlKem""); put(""KeyFactory.ML-KEM-768"", PREFIX + ""OpenSslMlKemKeyFactory$MlKem768""); put(""KeyFactory.ML-KEM-1024"", PREFIX + ""OpenSslMlKemKeyFactory$MlKem1024""); put(""KeyFactory.XWING"", PREFIX + ""OpenSslXwingKeyFactory""); put(""SecretKeyFactory.DESEDE"", PREFIX + ""DESEDESecretKeyFactory""); put(""Alg.Alias.SecretKeyFactory.TDEA"", ""DESEDE""); put(""SecretKeyFactory.SCRYPT"", PREFIX + ""ScryptSecretKeyFactory""); put(""Alg.Alias.SecretKeyFactory.1.3.6.1.4.1.11591.4.11"", ""SCRYPT""); put(""Alg.Alias.SecretKeyFactory.OID.1.3.6.1.4.1.11591.4.11"", ""SCRYPT""); putECDHKeyAgreementImplClass(""OpenSSLECDHKeyAgreement""); putXDHKeyAgreementImplClass(""OpenSSLXDHKeyAgreement""); putSignatureImplClass(""MD5withRSA"", ""OpenSSLSignature$MD5RSA""); put(""Alg.Alias.Signature.MD5withRSAEncryption"", ""MD5withRSA""); put(""Alg.Alias.Signature.MD5/RSA"", ""MD5withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.1.1.4"", ""MD5withRSA""); put(""Alg.Alias.Signature.OID.1.2.840.113549.1.1.4"", ""MD5withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.2.5with1.2.840.113549.1.1.1"", ""MD5withRSA""); putSignatureImplClass(""SHA1withRSA"", ""OpenSSLSignature$SHA1RSA""); put(""Alg.Alias.Signature.SHA1withRSAEncryption"", ""SHA1withRSA""); put(""Alg.Alias.Signature.SHA1/RSA"", ""SHA1withRSA""); put(""Alg.Alias.Signature.SHA-1/RSA"", ""SHA1withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.1.1.5"", ""SHA1withRSA""); put(""Alg.Alias.Signature.OID.1.2.840.113549.1.1.5"", ""SHA1withRSA""); put(""Alg.Alias.Signature.1.3.14.3.2.26with1.2.840.113549.1.1.1"", ""SHA1withRSA""); put(""Alg.Alias.Signature.1.3.14.3.2.26with1.2.840.113549.1.1.5"", ""SHA1withRSA""); put(""Alg.Alias.Signature.1.3.14.3.2.29"", ""SHA1withRSA""); put(""Alg.Alias.Signature.OID.1.3.14.3.2.29"", ""SHA1withRSA""); putSignatureImplClass(""SHA224withRSA"", ""OpenSSLSignature$SHA224RSA""); put(""Alg.Alias.Signature.SHA224withRSAEncryption"", ""SHA224withRSA""); put(""Alg.Alias.Signature.SHA224/RSA"", ""SHA224withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.1.1.14"", ""SHA224withRSA""); put(""Alg.Alias.Signature.OID.1.2.840.113549.1.1.14"", ""SHA224withRSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.4with1.2.840.113549.1.1.1"", ""SHA224withRSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.4with1.2.840.113549.1.1.14"", ""SHA224withRSA""); putSignatureImplClass(""SHA256withRSA"", ""OpenSSLSignature$SHA256RSA""); put(""Alg.Alias.Signature.SHA256withRSAEncryption"", ""SHA256withRSA""); put(""Alg.Alias.Signature.SHA256/RSA"", ""SHA256withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.1.1.11"", ""SHA256withRSA""); put(""Alg.Alias.Signature.OID.1.2.840.113549.1.1.11"", ""SHA256withRSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.1with1.2.840.113549.1.1.1"", ""SHA256withRSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.1with1.2.840.113549.1.1.11"", ""SHA256withRSA""); putSignatureImplClass(""SHA384withRSA"", ""OpenSSLSignature$SHA384RSA""); put(""Alg.Alias.Signature.SHA384withRSAEncryption"", ""SHA384withRSA""); put(""Alg.Alias.Signature.SHA384/RSA"", ""SHA384withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.1.1.12"", ""SHA384withRSA""); put(""Alg.Alias.Signature.OID.1.2.840.113549.1.1.12"", ""SHA384withRSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.2with1.2.840.113549.1.1.1"", ""SHA384withRSA""); putSignatureImplClass(""SHA512withRSA"", ""OpenSSLSignature$SHA512RSA""); put(""Alg.Alias.Signature.SHA512withRSAEncryption"", ""SHA512withRSA""); put(""Alg.Alias.Signature.SHA512/RSA"", ""SHA512withRSA""); put(""Alg.Alias.Signature.1.2.840.113549.1.1.13"", ""SHA512withRSA""); put(""Alg.Alias.Signature.OID.1.2.840.113549.1.1.13"", ""SHA512withRSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.3with1.2.840.113549.1.1.1"", ""SHA512withRSA""); putRAWRSASignatureImplClass(""OpenSSLSignatureRawRSA""); putSignatureImplClass(""NONEwithECDSA"", ""OpenSSLSignatureRawECDSA""); putSignatureImplClass(""SHA1withECDSA"", ""OpenSSLSignature$SHA1ECDSA""); put(""Alg.Alias.Signature.ECDSA"", ""SHA1withECDSA""); put(""Alg.Alias.Signature.ECDSAwithSHA1"", ""SHA1withECDSA""); put(""Alg.Alias.Signature.1.2.840.10045.4.1"", ""SHA1withECDSA""); put(""Alg.Alias.Signature.1.3.14.3.2.26with1.2.840.10045.2.1"", ""SHA1withECDSA""); putSignatureImplClass(""SHA224withECDSA"", ""OpenSSLSignature$SHA224ECDSA""); put(""Alg.Alias.Signature.SHA224/ECDSA"", ""SHA224withECDSA""); put(""Alg.Alias.Signature.1.2.840.10045.4.3.1"", ""SHA224withECDSA""); put(""Alg.Alias.Signature.OID.1.2.840.10045.4.3.1"", ""SHA224withECDSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.4with1.2.840.10045.2.1"", ""SHA224withECDSA""); putSignatureImplClass(""SHA256withECDSA"", ""OpenSSLSignature$SHA256ECDSA""); put(""Alg.Alias.Signature.SHA256/ECDSA"", ""SHA256withECDSA""); put(""Alg.Alias.Signature.1.2.840.10045.4.3.2"", ""SHA256withECDSA""); put(""Alg.Alias.Signature.OID.1.2.840.10045.4.3.2"", ""SHA256withECDSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.1with1.2.840.10045.2.1"", ""SHA256withECDSA""); putSignatureImplClass(""SHA384withECDSA"", ""OpenSSLSignature$SHA384ECDSA""); put(""Alg.Alias.Signature.SHA384/ECDSA"", ""SHA384withECDSA""); put(""Alg.Alias.Signature.1.2.840.10045.4.3.3"", ""SHA384withECDSA""); put(""Alg.Alias.Signature.OID.1.2.840.10045.4.3.3"", ""SHA384withECDSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.2with1.2.840.10045.2.1"", ""SHA384withECDSA""); putSignatureImplClass(""SHA512withECDSA"", ""OpenSSLSignature$SHA512ECDSA""); put(""Alg.Alias.Signature.SHA512/ECDSA"", ""SHA512withECDSA""); put(""Alg.Alias.Signature.1.2.840.10045.4.3.4"", ""SHA512withECDSA""); put(""Alg.Alias.Signature.OID.1.2.840.10045.4.3.4"", ""SHA512withECDSA""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.2.3with1.2.840.10045.2.1"", ""SHA512withECDSA""); putSignatureImplClass(""SHA1withRSA/PSS"", ""OpenSSLSignature$SHA1RSAPSS""); put(""Alg.Alias.Signature.SHA1withRSAandMGF1"", ""SHA1withRSA/PSS""); putSignatureImplClass(""SHA224withRSA/PSS"", ""OpenSSLSignature$SHA224RSAPSS""); put(""Alg.Alias.Signature.SHA224withRSAandMGF1"", ""SHA224withRSA/PSS""); putSignatureImplClass(""SHA256withRSA/PSS"", ""OpenSSLSignature$SHA256RSAPSS""); put(""Alg.Alias.Signature.SHA256withRSAandMGF1"", ""SHA256withRSA/PSS""); putSignatureImplClass(""SHA384withRSA/PSS"", ""OpenSSLSignature$SHA384RSAPSS""); put(""Alg.Alias.Signature.SHA384withRSAandMGF1"", ""SHA384withRSA/PSS""); putSignatureImplClass(""SHA512withRSA/PSS"", ""OpenSSLSignature$SHA512RSAPSS""); put(""Alg.Alias.Signature.SHA512withRSAandMGF1"", ""SHA512withRSA/PSS""); putSignatureImplClass(""EdDSA"", ""OpenSslSignatureEdDsa""); put(""Alg.Alias.Signature.1.3.101.112"", ""EdDSA""); put(""Alg.Alias.Signature.Ed25519"", ""EdDSA""); putSignatureImplClass(""ML-DSA"", ""OpenSslSignatureMlDsa$MlDsa""); putSignatureImplClass(""ML-DSA-44"", ""OpenSslSignatureMlDsa$MlDsa44""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.3.17"", ""ML-DSA-44""); put(""Alg.Alias.Signature.OID.2.16.840.1.101.3.4.3.17"", ""ML-DSA-44""); putSignatureImplClass(""ML-DSA-65"", ""OpenSslSignatureMlDsa$MlDsa65""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.3.18"", ""ML-DSA-65""); put(""Alg.Alias.Signature.OID.2.16.840.1.101.3.4.3.18"", ""ML-DSA-65""); putSignatureImplClass(""ML-DSA-87"", ""OpenSslSignatureMlDsa$MlDsa87""); put(""Alg.Alias.Signature.2.16.840.1.101.3.4.3.19"", ""ML-DSA-87""); put(""Alg.Alias.Signature.OID.2.16.840.1.101.3.4.3.19"", ""ML-DSA-87""); putSignatureImplClass(""SLH-DSA-SHA2-128S"", ""OpenSslSignatureSlhDsa""); put(""SecureRandom.SHA1PRNG"", PREFIX + ""OpenSSLRandom""); put(""SecureRandom.SHA1PRNG ImplementedIn"", ""Software""); putRSACipherImplClass(""RSA/ECB/NoPadding"", ""OpenSSLCipherRSA$Raw""); put(""Alg.Alias.Cipher.RSA/None/NoPadding"", ""RSA/ECB/NoPadding""); putRSACipherImplClass(""RSA/ECB/PKCS1Padding"", ""OpenSSLCipherRSA$PKCS1""); put(""Alg.Alias.Cipher.RSA/None/PKCS1Padding"", ""RSA/ECB/PKCS1Padding""); putRSACipherImplClass(""RSA/ECB/OAEPPadding"", ""OpenSSLCipherRSA$OAEP$SHA1""); put(""Alg.Alias.Cipher.RSA/None/OAEPPadding"", ""RSA/ECB/OAEPPadding""); putRSACipherImplClass(""RSA/ECB/OAEPWithSHA-1AndMGF1Padding"", ""OpenSSLCipherRSA$OAEP$SHA1""); put(""Alg.Alias.Cipher.RSA/None/OAEPWithSHA-1AndMGF1Padding"", ""RSA/ECB/OAEPWithSHA-1AndMGF1Padding""); putRSACipherImplClass(""RSA/ECB/OAEPWithSHA-224AndMGF1Padding"", ""OpenSSLCipherRSA$OAEP$SHA224""); put(""Alg.Alias.Cipher.RSA/None/OAEPWithSHA-224AndMGF1Padding"", ""RSA/ECB/OAEPWithSHA-224AndMGF1Padding""); putRSACipherImplClass(""RSA/ECB/OAEPWithSHA-256AndMGF1Padding"", ""OpenSSLCipherRSA$OAEP$SHA256""); put(""Alg.Alias.Cipher.RSA/None/OAEPWithSHA-256AndMGF1Padding"", ""RSA/ECB/OAEPWithSHA-256AndMGF1Padding""); putRSACipherImplClass(""RSA/ECB/OAEPWithSHA-384AndMGF1Padding"", ""OpenSSLCipherRSA$OAEP$SHA384""); put(""Alg.Alias.Cipher.RSA/None/OAEPWithSHA-384AndMGF1Padding"", ""RSA/ECB/OAEPWithSHA-384AndMGF1Padding""); putRSACipherImplClass(""RSA/ECB/OAEPWithSHA-512AndMGF1Padding"", ""OpenSSLCipherRSA$OAEP$SHA512""); put(""Alg.Alias.Cipher.RSA/None/OAEPWithSHA-512AndMGF1Padding"", ""RSA/ECB/OAEPWithSHA-512AndMGF1Padding""); putSymmetricCipherImplClass(""AES/ECB/NoPadding"", ""OpenSSLEvpCipherAES$AES$ECB$NoPadding""); putSymmetricCipherImplClass(""AES/ECB/PKCS5Padding"", ""OpenSSLEvpCipherAES$AES$ECB$PKCS5Padding""); put(""Alg.Alias.Cipher.AES/ECB/PKCS7Padding"", ""AES/ECB/PKCS5Padding""); putSymmetricCipherImplClass(""AES/CBC/NoPadding"", ""OpenSSLEvpCipherAES$AES$CBC$NoPadding""); putSymmetricCipherImplClass(""AES/CBC/PKCS5Padding"", ""OpenSSLEvpCipherAES$AES$CBC$PKCS5Padding""); put(""Alg.Alias.Cipher.AES/CBC/PKCS7Padding"", ""AES/CBC/PKCS5Padding""); putSymmetricCipherImplClass(""AES/CTR/NoPadding"", ""OpenSSLEvpCipherAES$AES$CTR""); putSymmetricCipherImplClass(""AES_128/ECB/NoPadding"", ""OpenSSLEvpCipherAES$AES_128$ECB$NoPadding""); putSymmetricCipherImplClass(""AES_128/ECB/PKCS5Padding"", ""OpenSSLEvpCipherAES$AES_128$ECB$PKCS5Padding""); put(""Alg.Alias.Cipher.AES_128/ECB/PKCS7Padding"", ""AES_128/ECB/PKCS5Padding""); putSymmetricCipherImplClass(""AES_128/CBC/NoPadding"", ""OpenSSLEvpCipherAES$AES_128$CBC$NoPadding""); putSymmetricCipherImplClass(""AES_128/CBC/PKCS5Padding"", ""OpenSSLEvpCipherAES$AES_128$CBC$PKCS5Padding""); put(""Alg.Alias.Cipher.AES_128/CBC/PKCS7Padding"", ""AES_128/CBC/PKCS5Padding""); put(""Alg.Alias.Cipher.PBEWithHmacSHA1AndAES_128"", ""AES_128/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA224AndAES_128"", ""AES_128/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA256AndAES_128"", ""AES_128/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA384AndAES_128"", ""AES_128/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA512AndAES_128"", ""AES_128/CBC/PKCS5PADDING""); putSymmetricCipherImplClass(""AES_256/ECB/NoPadding"", ""OpenSSLEvpCipherAES$AES_256$ECB$NoPadding""); putSymmetricCipherImplClass(""AES_256/ECB/PKCS5Padding"", ""OpenSSLEvpCipherAES$AES_256$ECB$PKCS5Padding""); put(""Alg.Alias.Cipher.AES_256/ECB/PKCS7Padding"", ""AES_256/ECB/PKCS5Padding""); putSymmetricCipherImplClass(""AES_256/CBC/NoPadding"", ""OpenSSLEvpCipherAES$AES_256$CBC$NoPadding""); putSymmetricCipherImplClass(""AES_256/CBC/PKCS5Padding"", ""OpenSSLEvpCipherAES$AES_256$CBC$PKCS5Padding""); put(""Alg.Alias.Cipher.AES_256/CBC/PKCS7Padding"", ""AES_256/CBC/PKCS5Padding""); put(""Alg.Alias.Cipher.PBEWithHmacSHA1AndAES_256"", ""AES_256/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA224AndAES_256"", ""AES_256/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA256AndAES_256"", ""AES_256/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA384AndAES_256"", ""AES_256/CBC/PKCS5PADDING""); put(""Alg.Alias.Cipher.PBEWithHmacSHA512AndAES_256"", ""AES_256/CBC/PKCS5PADDING""); putSymmetricCipherImplClass(""DESEDE/CBC/NoPadding"", ""OpenSSLEvpCipherDESEDE$CBC$NoPadding""); putSymmetricCipherImplClass(""DESEDE/CBC/PKCS5Padding"", ""OpenSSLEvpCipherDESEDE$CBC$PKCS5Padding""); put(""Alg.Alias.Cipher.DESEDE/CBC/PKCS7Padding"", ""DESEDE/CBC/PKCS5Padding""); putSymmetricCipherImplClass(""ARC4"", ""OpenSSLEvpCipherARC4""); put(""Alg.Alias.Cipher.ARCFOUR"", ""ARC4""); put(""Alg.Alias.Cipher.RC4"", ""ARC4""); put(""Alg.Alias.Cipher.1.2.840.113549.3.4"", ""ARC4""); put(""Alg.Alias.Cipher.OID.1.2.840.113549.3.4"", ""ARC4""); putSymmetricCipherImplClass(""AES/GCM/NoPadding"", ""OpenSSLAeadCipherAES$GCM""); put(""Alg.Alias.Cipher.GCM"", ""AES/GCM/NoPadding""); put(""Alg.Alias.Cipher.2.16.840.1.101.3.4.1.6"", ""AES/GCM/NoPadding""); put(""Alg.Alias.Cipher.2.16.840.1.101.3.4.1.26"", ""AES/GCM/NoPadding""); put(""Alg.Alias.Cipher.2.16.840.1.101.3.4.1.46"", ""AES/GCM/NoPadding""); putSymmetricCipherImplClass(""AES_128/GCM/NoPadding"", ""OpenSSLAeadCipherAES$GCM$AES_128""); putSymmetricCipherImplClass(""AES_256/GCM/NoPadding"", ""OpenSSLAeadCipherAES$GCM$AES_256""); putSymmetricCipherImplClass(""AES/GCM-SIV/NoPadding"", ""OpenSSLAeadCipherAES$GCM_SIV""); putSymmetricCipherImplClass(""AES_128/GCM-SIV/NoPadding"", ""OpenSSLAeadCipherAES$GCM_SIV$AES_128""); putSymmetricCipherImplClass(""AES_256/GCM-SIV/NoPadding"", ""OpenSSLAeadCipherAES$GCM_SIV$AES_256""); putSymmetricCipherImplClass(""ChaCha20"", ""OpenSSLCipherChaCha20""); putSymmetricCipherImplClass(""ChaCha20/Poly1305/NoPadding"", ""OpenSSLAeadCipherChaCha20""); put(""Alg.Alias.Cipher.ChaCha20-Poly1305"", ""ChaCha20/Poly1305/NoPadding""); putMacImplClass(""HmacMD5"", ""OpenSSLMac$HmacMD5""); put(""Alg.Alias.Mac.1.3.6.1.5.5.8.1.1"", ""HmacMD5""); put(""Alg.Alias.Mac.HMAC-MD5"", ""HmacMD5""); put(""Alg.Alias.Mac.HMAC/MD5"", ""HmacMD5""); putMacImplClass(""HmacSHA1"", ""OpenSSLMac$HmacSHA1""); put(""Alg.Alias.Mac.1.2.840.113549.2.7"", ""HmacSHA1""); put(""Alg.Alias.Mac.1.3.6.1.5.5.8.1.2"", ""HmacSHA1""); put(""Alg.Alias.Mac.HMAC-SHA1"", ""HmacSHA1""); put(""Alg.Alias.Mac.HMAC/SHA1"", ""HmacSHA1""); putMacImplClass(""HmacSHA224"", ""OpenSSLMac$HmacSHA224""); put(""Alg.Alias.Mac.1.2.840.113549.2.8"", ""HmacSHA224""); put(""Alg.Alias.Mac.HMAC-SHA224"", ""HmacSHA224""); put(""Alg.Alias.Mac.HMAC/SHA224"", ""HmacSHA224""); put(""Alg.Alias.Mac.PBEWITHHMACSHA224"", ""HmacSHA224""); putMacImplClass(""HmacSHA256"", ""OpenSSLMac$HmacSHA256""); put(""Alg.Alias.Mac.1.2.840.113549.2.9"", ""HmacSHA256""); put(""Alg.Alias.Mac.2.16.840.1.101.3.4.2.1"", ""HmacSHA256""); put(""Alg.Alias.Mac.HMAC-SHA256"", ""HmacSHA256""); put(""Alg.Alias.Mac.HMAC/SHA256"", ""HmacSHA256""); put(""Alg.Alias.Mac.PBEWITHHMACSHA256"", ""HmacSHA256""); putMacImplClass(""HmacSHA384"", ""OpenSSLMac$HmacSHA384""); put(""Alg.Alias.Mac.1.2.840.113549.2.10"", ""HmacSHA384""); put(""Alg.Alias.Mac.HMAC-SHA384"", ""HmacSHA384""); put(""Alg.Alias.Mac.HMAC/SHA384"", ""HmacSHA384""); put(""Alg.Alias.Mac.PBEWITHHMACSHA384"", ""HmacSHA384""); putMacImplClass(""HmacSHA512"", ""OpenSSLMac$HmacSHA512""); put(""Alg.Alias.Mac.1.2.840.113549.2.11"", ""HmacSHA512""); put(""Alg.Alias.Mac.HMAC-SHA512"", ""HmacSHA512""); put(""Alg.Alias.Mac.HMAC/SHA512"", ""HmacSHA512""); put(""Alg.Alias.Mac.PBEWITHHMACSHA512"", ""HmacSHA512""); putMacImplClass(""AESCMAC"", ""OpenSSLMac$AesCmac""); put(""CertificateFactory.X509"", PREFIX + ""OpenSSLX509CertificateFactory""); put(""Alg.Alias.CertificateFactory.X.509"", ""X509""); String baseClass = PREFIX + ""HpkeImpl""; put(""ConscryptHpke.DHKEM_X25519_HKDF_SHA256/HKDF_SHA256/AES_128_GCM"", baseClass + ""$X25519_AES_128""); put(""Alg.Alias.ConscryptHpke.DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_128_GCM"", ""DHKEM_X25519_HKDF_SHA256/HKDF_SHA256/AES_128_GCM""); put(""ConscryptHpke.DHKEM_X25519_HKDF_SHA256/HKDF_SHA256/AES_256_GCM"", baseClass + ""$X25519_AES_256""); put(""Alg.Alias.ConscryptHpke.DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_256_GCM"", ""DHKEM_X25519_HKDF_SHA256/HKDF_SHA256/AES_256_GCM""); put(""ConscryptHpke.DHKEM_X25519_HKDF_SHA256/HKDF_SHA256/CHACHA20POLY1305"", baseClass + ""$X25519_CHACHA20""); put(""Alg.Alias.ConscryptHpke.DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_GhpkeCHACHA20POLY1305"", ""DHKEM_X25519_HKDF_SHA256/HKDF_SHA256/CHACHA20POLY1305""); put(""ConscryptHpke.MLKEM_768/HKDF_SHA256/AES_128_GCM"", baseClass + ""$MlKem768HkdfSha256Aes128Gcm""); put(""ConscryptHpke.MLKEM_768/HKDF_SHA256/AES_256_GCM"", baseClass + ""$MlKem768HkdfSha256Aes256Gcm""); put(""ConscryptHpke.MLKEM_768/HKDF_SHA256/CHACHA20POLY1305"", baseClass + ""$MlKem768HkdfSha256ChaCha20Poly1305""); put(""ConscryptHpke.MLKEM_1024/HKDF_SHA256/AES_128_GCM"", baseClass + ""$MlKem1024HkdfSha256Aes128Gcm""); put(""ConscryptHpke.MLKEM_1024/HKDF_SHA256/AES_256_GCM"", baseClass + ""$MlKem1024HkdfSha256Aes256Gcm""); put(""ConscryptHpke.MLKEM_1024/HKDF_SHA256/CHACHA20POLY1305"", baseClass + ""$MlKem1024HkdfSha256ChaCha20Poly1305""); put(""ConscryptHpke.XWING/HKDF_SHA256/AES_128_GCM"", baseClass + ""$XwingHkdfSha256Aes128Gcm""); put(""ConscryptHpke.XWING/HKDF_SHA256/AES_256_GCM"", baseClass + ""$XwingHkdfSha256Aes256Gcm""); put(""ConscryptHpke.XWING/HKDF_SHA256/CHACHA20POLY1305"", baseClass + ""$XwingHkdfSha256ChaCha20Poly1305""); if (Platform.isPakeSupported()) { put(""TrustManagerFactory.PAKE"", PREFIX + ""PakeTrustManagerFactory""); put(""KeyManagerFactory.PAKE"", PREFIX + ""PakeKeyManagerFactory""); } }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.5298706293106079,0.4701293408870697
24,"@Override public Principal authenticate(String username, String clientDigest, String nonce, String nc, String cnonce, String qop, String realmName, String digestA2, String algorithm) { Principal authenticatedUser = null; for (Realm realm : realms) { if (log.isTraceEnabled()) { log.trace(sm.getString(""combinedRealm.authStart"", username, realm.getClass().getName())); } authenticatedUser = realm.authenticate(username, clientDigest, nonce, nc, cnonce, qop, realmName, digestA2, algorithm);",authentication_identity,authentication_identity,True,,0.9857749938964844,0.014225013554096222
25,"private static Registry<AuthSchemeProvider> createAuthSchemeRegistry() { return RegistryBuilder.<AuthSchemeProvider>create() .register(AuthSchemes.BASIC, new BasicSchemeFactory(StandardCharsets.UTF_8)) .register(AuthSchemes.DIGEST, new DigestSchemeFactory(StandardCharsets.UTF_8)) .register(AuthSchemes.NTLM, new NTLMSchemeFactory()) .build(); }",authentication_identity,authentication_identity,True,,0.9854286313056946,0.014571359381079674
26,"HttpClientContext localContext = HttpClientContext.create(); localContext.setCredentialsProvider(credentialsProvider); localContext.setAuthCache(authCache); localContext.setRequestConfig(requestConfigBuilder.build()); if (config != null && config.isUsePreemptive()) { HttpHost targetHost = new HttpHost(repo.getHost(), repo.getPort(), repo.getProtocol()); AuthScope targetScope = getBasicAuthScope().getScope(targetHost); if (credentialsProvider.getCredentials(targetScope) != null) { BasicScheme targetAuth = new BasicScheme(StandardCharsets.UTF_8); authCache.put(targetHost, targetAuth); } }",authentication_identity,authentication_identity,True,,0.9852628707885742,0.014737114310264587
27,"private void prepare(HttpUriRequest request, SharingHttpContext context) throws Exception { final boolean put = HttpPut.METHOD_NAME.equalsIgnoreCase(request.getMethod()); if (preemptiveAuth || (preemptivePutAuth && put)) { context.getAuthCache().put(server, new BasicScheme()); }",authentication_identity,authentication_identity,True,,0.9847880601882935,0.01521191094070673
28,private boolean isKerberosFeatureEnabled() { return Profile.isFeatureEnabled(Profile.Feature.KERBEROS); },unrelated,unrelated,True,,0.0039526536129415035,0.99604731798172
29,private void silentLogout(LoginContext loginContext) { try { loginContext.logout(); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); } },authentication_identity,authentication_identity,True,,0.9852073192596436,0.014792710542678833
30,"protected Principal getPrincipal(JNDIConnection connection, String username, GSSCredential gssCredential) throws NamingException { User user; List<String> roles = null; Hashtable<?,?> preservedEnvironment = null; DirContext context = connection.context; try { if (gssCredential != null && isUseDelegatedCredential()) { preservedEnvironment = context.getEnvironment(); context.addToEnvironment(Context.SECURITY_AUTHENTICATION, AUTHENTICATION_NAME_GSSAPI); context.addToEnvironment(""javax.security.sasl.server.authentication"", ""true""); context.addToEnvironment(""javax.security.sasl.qop"", spnegoDelegationQop); } user = getUser(connection, username); if (user != null) {",authentication_identity,authentication_identity,True,,0.9854606986045837,0.014539358206093311
31,"public AuthGssApiWithMic(LoginContext loginContext, List<Oid> mechanismOids) { this(loginContext, mechanismOids, GSSManager.getInstance()); }",authentication_identity,authentication_identity,True,,0.9856005311012268,0.014399481005966663
32,"Subject subject = lc.getSubject(); final GSSManager manager = GSSManager.getInstance(); final int credentialLifetime; if (JreVendor.IS_IBM_JVM) { credentialLifetime = GSSCredential.INDEFINITE_LIFETIME; } else { credentialLifetime = GSSCredential.DEFAULT_LIFETIME; } gssContext = manager.createContext(Subject.callAs(subject, () -> manager.createCredential(null, credentialLifetime, new Oid(""1.3.6.1.5.5.2""), GSSCredential.ACCEPT_ONLY))); final GSSContext gssContextFinal = gssContext; outToken = Subject.callAs(subject, () -> gssContextFinal.acceptSecContext(decoded, 0, decoded.length));",authentication_identity,authentication_identity,True,,0.9855157732963562,0.014484256505966187
33,"private void userCredentialsRemove(DirContext context) throws NamingException { if (connectionName != null) { context.addToEnvironment(Context.SECURITY_PRINCIPAL, connectionName); } else { context.removeFromEnvironment(Context.SECURITY_PRINCIPAL); } if (connectionPassword != null) { context.addToEnvironment(Context.SECURITY_CREDENTIALS, connectionPassword); } else { context.removeFromEnvironment(Context.SECURITY_CREDENTIALS); } }",authentication_identity,authentication_identity,True,,0.9851816296577454,0.014818333089351654
34,"private X509CRL loadCRLFromLDAP(CertificateFactory cf, URI remoteURI) throws GeneralSecurityException { Hashtable<String, String> env = new Hashtable<>(2); env.put(Context.INITIAL_CONTEXT_FACTORY, ldapContext.getLdapFactoryClassName()); env.put(Context.PROVIDER_URL, remoteURI.toString()); try { DirContext ctx = new InitialDirContext(env); try { Attributes attrs = ctx.getAttributes(""""); Attribute cRLAttribute = attrs.get(""certificateRevocationList;binary""); byte[] data = (byte[])cRLAttribute.get(); if (data == null || data.length == 0) { throw new CertificateException(String.format(""Failed to download CRL from \""%s\"""", remoteURI.toString())); } try (InputStream is = new ByteArrayInputStream(data)) { return loadFromStream(cf, is); } } finally { ctx.close(); } } catch (NamingException e) { logger.error(e.getMessage()); } catch(IOException e) { logger.error(e.getMessage()); } return null; }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9848581552505493,0.015141860581934452
35,"} else { User user = getUser(connection, username, credentials); if (user == null) { return null; } if (!checkCredentials(connection.context, user, credentials)) { return null; } List<String> roles = getRoles(connection, user); if (containerLog.isTraceEnabled()) { containerLog.trace(""Found roles: "" + ((roles == null) ? """" : roles.toString())); } return new GenericPrincipal(username, roles);",authentication_identity,authentication_identity,True,,0.9854494333267212,0.014550537802278996
36,"private void userCredentialsAdd(DirContext context, String dn, String credentials) throws NamingException { context.addToEnvironment(Context.SECURITY_PRINCIPAL, dn); context.addToEnvironment(Context.SECURITY_CREDENTIALS, credentials); }",authentication_identity,authentication_identity,True,,0.9852880239486694,0.014712044969201088
37,"try { userCredentialsAdd(context, dn, credentials); if (AUTHENTICATION_NAME_GSSAPI.equals(preservedEnvironment.get(Context.SECURITY_AUTHENTICATION))) { context.removeFromEnvironment(Context.SECURITY_AUTHENTICATION); } if (containerLog.isTraceEnabled()) { containerLog.trace("" binding as "" + dn); } context.getAttributes("""", null); validated = true; } catch (AuthenticationException e) { if (containerLog.isTraceEnabled()) { containerLog.trace("" bind attempt failed"", e); }",authentication_identity,authentication_identity,True,,0.9850081205368042,0.01499191764742136
38,"public static ProtocolMapperModel createClaimMapper(String name, String includedClientAudience, String includedCustomAudience, boolean accessToken, boolean idToken, boolean introspectionEndpoint, boolean lightweightAccessToken) { ProtocolMapperModel mapper = new ProtocolMapperModel(); mapper.setName(name); mapper.setProtocolMapper(PROVIDER_ID); mapper.setProtocol(OIDCLoginProtocol.LOGIN_PROTOCOL); Map<String, String> config = new HashMap<>(); if (includedClientAudience != null) { config.put(INCLUDED_CLIENT_AUDIENCE, includedClientAudience); } if (includedCustomAudience != null) {",authentication_identity,authentication_identity,True,,0.9856153726577759,0.014384669251739979
39,"if (token instanceof AccessToken) { this.accessToken = AccessToken.class.cast(token); } else { UserSessionProvider sessions = keycloakSession.sessions(); UserSessionModel userSession = sessions.getUserSession(realm, token.getSessionState()); if (userSession == null) { userSession = sessions.getOfflineUserSession(realm, token.getSessionState()); } if (userSession == null) { throw new RuntimeException(""No active session associated with the token""); } if (AuthenticationManager.isSessionValid(realm, userSession) && token.isIssuedBeforeSessionStart(userSession.getStarted())) { throw new RuntimeException(""Invalid token""); } ClientModel client = realm.getClientByClientId(token.getIssuedFor()); AuthenticatedClientSessionModel clientSessionModel = userSession.getAuthenticatedClientSessionByClient(client.getId()); ClientSessionContext clientSessionCtx = DefaultClientSessionContext.fromClientSessionScopeParameter(clientSessionModel, keycloakSession); this.accessToken = new TokenManager().createClientAccessToken(keycloakSession, realm, client, userSession.getUser(), userSession, clientSessionCtx, clientSessionCtx.isOfflineTokenRequested()); }",authentication_identity,authentication_identity,True,,0.9856961965560913,0.014303767122328281
40,"String audienceToSet; if (isClientUrn(requestedResource)) { audienceToSet = findAudienceByClientUrn(requestedResource, context.accessToken().getAudience()); } else { audienceToSet = findAudienceByClientAttribute(requestedResource, context.accessToken().getAudience()); } if (audienceToSet == null) { throw new TokenInterceptorException(OAuthErrorException.INVALID_TARGET, ResourceIndicatorConstants.ERROR_INVALID_RESOURCE); } context.refreshToken().getOtherClaims().put(OAuth2Constants.RESOURCE, requestedResource); context.accessToken().audience(audienceToSet);",authentication_identity,authentication_identity,True,,0.9854293465614319,0.014570674858987331
41,"private JsonNode fetchTokenViaHTTP(KeycloakSession session, String authTokenUrl, String authTokenScope, String authTokenClientId, String authTokenClientSecret) throws IOException { return SimpleHttp.create(session).doPost(authTokenUrl) .param(""client_id"", authTokenClientId) .param(""client_secret"", authTokenClientSecret) .param(""scope"", authTokenScope) .param(""grant_type"", ""client_credentials"").asJson(); }",authentication_identity,authentication_identity,True,,0.985681414604187,0.014318551868200302
42,"protected void sessionExpired(String id) { if (cluster.getMembers().length > 0) { if (enableStatistics) { counterSend_EVT_SESSION_EXPIRED.incrementAndGet(); } SessionMessage msg = new SessionMessageImpl(getName(), SessionMessage.EVT_SESSION_EXPIRED, null, id, id + ""-EXPIRED-MSG""); msg.setTimestamp(System.currentTimeMillis()); if (log.isDebugEnabled()) { log.debug(sm.getString(""deltaManager.createMessage.expire"", getName(), id)); } send(msg); } }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9766142964363098,0.0233856700360775
43,"String expiredId = getIdInternal(); if (notifyCluster && expiredId != null && manager instanceof DeltaManager dmanager) { CatalinaCluster cluster = dmanager.getCluster(); ClusterMessage msg = dmanager.requestCompleted(expiredId, true); if (msg != null) { cluster.send(msg); } } super.expire(notify);",authentication_identity,authentication_identity,True,,0.97446209192276,0.02553798072040081
44,"private static <CLIENT_SESSION extends CommonClientSessionModel> ParseResult<CLIENT_SESSION> parseResult(String code, KeycloakSession session, RealmModel realm, ParseResult<CLIENT_SESSION> result, CodeGenerateUtil.ClientSessionParser<CLIENT_SESSION> clientSessionParser) { if (result.clientSession == null) { result.authSessionNotFound = true; return result; } if (!clientSessionParser.verifyCode(session, code, result.clientSession)) { result.illegalHash = true; return result; } if (clientSessionParser.isExpired(session, code, result.clientSession)) { result.expiredToken = true; return result; } result.code = new ClientSessionCode<CLIENT_SESSION>(session, realm, result.clientSession);",authentication_identity,authentication_identity,True,,0.9854626655578613,0.01453732792288065
45,JwtBuilder provider(Provider provider);,unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9811105728149414,0.018889425322413445
46,"@SuppressWarnings(""DeprecatedIsStillUsed"") @Deprecated public static SecretKey secretKeyFor(io.jsonwebtoken.SignatureAlgorithm alg) throws IllegalArgumentException { Assert.notNull(alg, ""SignatureAlgorithm cannot be null.""); SecureDigestAlgorithm<?, ?> salg = Jwts.SIG.get().get(alg.name()); if (!(salg instanceof MacAlgorithm)) { String msg = ""The "" + alg.name() + "" algorithm does not support shared secret keys.""; throw new IllegalArgumentException(msg); } return ((MacAlgorithm) salg).key().build(); }",authentication_identity,authentication_identity,True,,0.729313313961029,0.27068665623664856
47,"@Override protected BrokeredIdentityContext doGetFederatedIdentity(String accessToken) { try { JsonNode profile = SimpleHttp.create(session).doGet(getConfig().getUserInfoUrl()).header(""Authorization"", ""Bearer "" + accessToken).asJson(); return extractIdentityFromProfile(null, profile); } catch (Exception e) { throw new IdentityBrokerException(""Could not obtain user profile from paypal."", e); } }",authentication_identity,authentication_identity,True,,0.9857111573219299,0.014288878068327904
48,"protected BrokeredIdentityContext extractIdentity(AccessTokenResponse tokenResponse, String accessToken, JsonWebToken idToken) throws IOException { SimpleHttpResponse response = null; int status = 0; for (int i = 0; i < 10; i++) { try { String userInfoUrl = getUserInfoUrl(); response = SimpleHttp.create(session).doGet(userInfoUrl) .header(""Authorization"", ""Bearer "" + accessToken).asResponse(); status = response.getStatus(); } catch (IOException e) { logger.debug(""Failed to invoke user info for external exchange"", e); }",authentication_identity,authentication_identity,True,,0.9857088327407837,0.014291126281023026
49,"public DecodedJWT decodeJwt(String token) throws JWTDecodeException { return new JWTDecoder(parser, token); }",authentication_identity,authentication_identity,True,,0.9848180413246155,0.015182019211351871
50,@Override public JwtParserBuilder requireSubject(String subject) { expectedClaims.setSubject(subject); return this; },authentication_identity,authentication_identity,True,,0.9370813369750977,0.06291858851909637
51,"@Override protected BrokeredIdentityContext doGetFederatedIdentity(String accessToken) { try { JsonNode profile = SimpleHttp.create(session).doGet(USER_URL).header(""Authorization"", ""Bearer "" + accessToken).asJson(); String type = getJsonProperty(profile, ""type""); if (type == null) { throw new IdentityBrokerException(""Could not obtain account information from bitbucket.""); }",authentication_identity,authentication_identity,True,,0.985451877117157,0.014548069797456264
52,"private String searchEmail(String accessToken) { try (SimpleHttpResponse response = SimpleHttp.create(session).doGet(emailUrl) .header(""Authorization"", ""Bearer "" + accessToken) .header(""Accept"", ""application/json"") .asResponse()) { if (Response.Status.fromStatusCode(response.getStatus()).getFamily() != Response.Status.Family.SUCCESSFUL) { logger.warnf(""Primary email endpoint returned an error (%d): %s"", response.getStatus(), response.asString()); throw new IdentityBrokerException(""Primary email could not be retrieved from the github endpoint""); }",authentication_identity,authentication_identity,True,,0.9852125644683838,0.014787507243454456
53,"@Override public JwtParserBuilder setSigningKey(final Key key) { if (key instanceof SecretKey) { return verifyWith((SecretKey) key); } else if (key instanceof PublicKey) { return verifyWith((PublicKey) key); } String msg = ""JWS verification key must be either a SecretKey (for MAC algorithms) or a PublicKey "" + ""(for Signature algorithms).""; throw new InvalidKeyException(msg); }",authentication_identity,authentication_identity,True,,0.9662153124809265,0.03378468006849289
54,@Override public JwtBuilder setIssuer(String iss) { return issuer(iss); },authentication_identity,authentication_identity,True,,0.9673992395401001,0.032600753009319305
55,public JWTParser() { this.payloadReader = DEFAULT_PAYLOAD_READER; this.headerReader = DEFAULT_HEADER_READER; },unrelated,unrelated,True,,0.10156155377626419,0.8984383940696716
56,@Override public JwtParserBuilder requireIssuedAt(Date issuedAt) { expectedClaims.setIssuedAt(issuedAt); return this; },authentication_identity,authentication_identity,True,,0.9617300629615784,0.03826991096138954
57,"@Override public Verification withClaim(String name, Instant value) throws IllegalArgumentException { assertNonNull(name); addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value) || value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant()))); return this; }",authentication_identity,authentication_identity,True,,0.9710251688957214,0.028974847868084908
58,"JWTVerifier(Algorithm algorithm, List<ExpectedCheckHolder> expectedChecks) { this.algorithm = algorithm; this.expectedChecks = Collections.unmodifiableList(expectedChecks); this.parser = new JWTParser(); }",authentication_identity,unrelated,False,true_authentication_identity_predicted_unrelated,0.0026118215173482895,0.9973881840705872
59,"@Override public Verification withClaim(String name, Integer value) throws IllegalArgumentException { assertNonNull(name); addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value) || value.equals(claim.asInt()))); return this; }",authentication_identity,authentication_identity,True,,0.9702104330062866,0.029789572581648827
60,"protected ResultSetType resolveResultSetType(String alias) { try { return alias == null ? null : ResultSetType.valueOf(alias); } catch (IllegalArgumentException e) { throw new BuilderException(""Error resolving ResultSetType. Cause: "" + e, e); } }",unrelated,unrelated,True,,0.0021055147517472506,0.9978944659233093
61,@Override public RandomProviderState saveState() { return new RandomProviderDefaultState(getStateInternal()); },unrelated,unrelated,True,,0.0021113951224833727,0.9978886246681213
62,"private GuideTableDiscreteSampler(UniformRandomProvider rng, double[] cumulativeProbabilities, int[] guideTable) { this.rng = rng; this.cumulativeProbabilities = cumulativeProbabilities; this.guideTable = guideTable; }",unrelated,unrelated,True,,0.0021394609939306974,0.9978604912757874
63,"private int skipWS(String expression, int p) { for (int i = p; i < expression.length(); i++) { if (expression.charAt(i) > 0x20) { return i; } } return expression.length(); }",unrelated,unrelated,True,,0.0020783988293260336,0.9979216456413269
64,"private BoxMullerGaussianSampler(double mean, double standardDeviation, UniformRandomProvider rng) { super(null); this.rng = rng; this.mean = mean; this.standardDeviation = standardDeviation; }",unrelated,unrelated,True,,0.002086629392579198,0.9979133009910583
65,"private PoissonSamplerCache(int minN, int maxN, LargeMeanPoissonSamplerState[] states) { this.minN = minN; this.maxN = maxN; this.values = states; }",unrelated,unrelated,True,,0.0020811143331229687,0.9979189038276672
66,@Override public long next() { final int p = bufferPosition; if (bufferPosition < PHILOX_BUFFER_SIZE) { bufferPosition = p + 1; return buffer[p]; } incrementCounter(); rand10(); bufferPosition = 1; return buffer[0]; },unrelated,unrelated,True,,0.0021910290233790874,0.9978089928627014
67,public void setLogImpl(Class<? extends Log> logImpl) { if (logImpl != null) { this.logImpl = logImpl; LogFactory.useCustomLogging(this.logImpl); } },unrelated,unrelated,True,,0.0037844469770789146,0.9962155222892761
68,@Override public UniformRandomProvider jump() { final UniformRandomProvider copy = new L32X64Mix(this); ls = M * ls + la; resetCachedState(); return copy; },unrelated,unrelated,True,,0.001989206997677684,0.9980108141899109
69,"private static void putInt(int v, byte[] buffer, int index) { buffer[index ] = (byte) (v & INT_LOWEST_BYTE_MASK); buffer[index + 1] = (byte)((v >>> 8) & INT_LOWEST_BYTE_MASK); buffer[index + 2] = (byte)((v >>> 16) & INT_LOWEST_BYTE_MASK); buffer[index + 3] = (byte) (v >>> 24); }",unrelated,unrelated,True,,0.0020741107873618603,0.997925877571106
70,"private <E> List<E> selectList() throws SQLException { Executor localExecutor = executor; if (Thread.currentThread().getId() != this.creatorThreadId || localExecutor.isClosed()) { localExecutor = newExecutor(); } try { return localExecutor.query(mappedStatement, parameterObject, RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER, cacheKey, boundSql); } finally { if (localExecutor != executor) { localExecutor.close(false); } } }",unrelated,unrelated,True,,0.002512187696993351,0.9974877834320068
71,public List<ResultMapping> resolveWithConstructor() { if (constructorResultMappings.isEmpty()) { return constructorResultMappings; } final List<ConstructorMetaInfo> matchingConstructorCandidates = retrieveConstructorCandidates( constructorResultMappings.size()); if (matchingConstructorCandidates.isEmpty()) { return constructorResultMappings; } final Set<String> constructorArgsByName = constructorResultMappings.stream().map(ResultMapping::getProperty) .filter(Objects::nonNull).collect(Collectors.toCollection(LinkedHashSet::new)); final boolean allMappingsHavePropertyNames = verifyPropertyNaming(constructorArgsByName);,unrelated,unrelated,True,,0.002369377063587308,0.9976305961608887
72,@Override public Class<?> getSetterType(String name) { PropertyTokenizer prop = new PropertyTokenizer(name); if (prop.hasNext()) { MetaObject metaValue = metaObject.metaObjectForProperty(prop.getIndexedName()); if (metaValue == SystemMetaObject.NULL_META_OBJECT) { return Object.class; } else { return metaValue.getSetterType(prop.getChildren()); } } if (map.get(name) != null) { return map.get(name).getClass(); } else { return Object.class; } },unrelated,unrelated,True,,0.0021834103390574455,0.9978165626525879
73,"private void applyConstructorArgs(Arg[] args, Class<?> resultType, List<ResultMapping> resultMappings, String resultMapId) { final List<ResultMapping> mappings = new ArrayList<>(); for (Arg arg : args) { List<ResultFlag> flags = new ArrayList<>(); flags.add(ResultFlag.CONSTRUCTOR); if (arg.id()) { flags.add(ResultFlag.ID); } @SuppressWarnings(""unchecked"") Class<? extends TypeHandler<?>> typeHandler = (Class<? extends TypeHandler<?>>) (arg .typeHandler() == UnknownTypeHandler.class ? null : arg.typeHandler()); ResultMapping resultMapping = assistant.buildResultMapping(resultType, nullOrEmpty(arg.name()), nullOrEmpty(arg.column()), arg.javaType() == void.class ? null : arg.javaType(), arg.jdbcType() == JdbcType.UNDEFINED ? null : arg.jdbcType(), nullOrEmpty(arg.select()), nullOrEmpty(arg.resultMap()), null, nullOrEmpty(arg.columnPrefix()), typeHandler, flags, null, null, false); mappings.add(resultMapping); } final ResultMappingConstructorResolver resolver = new ResultMappingConstructorResolver(configuration, mappings,",unrelated,unrelated,True,,0.0024013197980821133,0.9975987076759338
74,private MetaObject getParamMetaObject() { if (paramMetaObject != null) { return paramMetaObject; } paramMetaObject = configuration.newMetaObject(parameterObject); return paramMetaObject; },unrelated,unrelated,True,,0.002139535266906023,0.9978604912757874
75,public int getActiveConnectionCount() { lock.lock(); try { return activeConnections.size(); } finally { lock.unlock(); } },unrelated,unrelated,True,,0.005265905521810055,0.9947341680526733
76,"@Override public BigDecimal getNullableResult(ResultSet rs, String columnName) throws SQLException { return rs.getBigDecimal(columnName); }",unrelated,unrelated,True,,0.0023140276316553354,0.9976860284805298
77,"@Override public void error(String s, Throwable e) { logger.log(MARKER, FQCN, LocationAwareLogger.ERROR_INT, s, null, e); }",unrelated,unrelated,True,,0.004613726865500212,0.9953863024711609
78,"public PreparedStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) { super(executor, mappedStatement, parameter, rowBounds, resultHandler, boundSql); }",unrelated,unrelated,True,,0.0021941077429801226,0.9978058934211731
79,"private void parseSelectKeyNodes(String parentId, List<XNode> list, Class<?> parameterTypeClass, LanguageDriver langDriver, String skRequiredDatabaseId) { for (XNode nodeToHandle : list) { String id = parentId + SelectKeyGenerator.SELECT_KEY_SUFFIX; String databaseId = nodeToHandle.getStringAttribute(""databaseId""); if (databaseIdMatchesCurrent(id, databaseId, skRequiredDatabaseId)) { parseSelectKeyNode(id, nodeToHandle, parameterTypeClass, langDriver, databaseId); } } }",unrelated,unrelated,True,,0.002659659134224057,0.9973403811454773
80,private void setState(long[] state) { key0 = state[0]; key1 = state[1]; counter0 = state[2]; counter1 = state[3]; counter2 = state[4]; counter3 = state[5]; },unrelated,unrelated,True,,0.002097797580063343,0.9979021549224854
81,"public Class<?> getGetterType(String propertyName) { Class<?> clazz = getTypes.getOrDefault(propertyName, nullEntry).getValue(); if (clazz == null) { throw new ReflectionException(""There is no getter for property named '"" + propertyName + ""' in '"" + clazz + ""'""); } return clazz; }",unrelated,unrelated,True,,0.002082341816276312,0.9979177117347717
82,"@Override protected void setStateInternal(byte[] s) { final byte[][] c = splitStateInternal(s, (N + 1) * 4); final int[] tmp = NumberFactory.makeIntArray(c[0]); System.arraycopy(tmp, 0, mt, 0, N); mti = tmp[N]; super.setStateInternal(c[1]); }",unrelated,unrelated,True,,0.00205468712374568,0.9979453682899475
83,"@Override public <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler) throws SQLException { BoundSql boundSql = ms.getBoundSql(parameterObject); CacheKey key = createCacheKey(ms, parameterObject, rowBounds, boundSql); return query(ms, parameterObject, rowBounds, resultHandler, key, boundSql); }",unrelated,unrelated,True,,0.0022843307815492153,0.9977157115936279
84,private boolean isLazy(Result result) { boolean isLazy = configuration.isLazyLoadingEnabled(); if (!result.one().select().isEmpty() && FetchType.DEFAULT != result.one().fetchType()) { isLazy = result.one().fetchType() == FetchType.LAZY; } else if (!result.many().select().isEmpty() && FetchType.DEFAULT != result.many().fetchType()) { isLazy = result.many().fetchType() == FetchType.LAZY; } return isLazy; },unrelated,unrelated,True,,0.002050460549071431,0.9979495406150818
85,public CacheBuilder addDecorator(Class<? extends Cache> decorator) { if (decorator != null) { this.decorators.add(decorator); } return this; },unrelated,unrelated,True,,0.0022528739646077156,0.9977471232414246
86,@Override public void clear() { lastClear = System.currentTimeMillis(); delegate.clear(); },unrelated,unrelated,True,,0.002232371363788843,0.9977676868438721
87,"@Override protected Statement instantiateStatement(Connection connection) throws SQLException { String sql = boundSql.getSql(); if (mappedStatement.getResultSetType() == ResultSetType.DEFAULT) { return connection.prepareCall(sql); } return connection.prepareCall(sql, mappedStatement.getResultSetType().getValue(), ResultSet.CONCUR_READ_ONLY); }",unrelated,unrelated,True,,0.002850123681128025,0.9971498847007751
88,"private static <T> SharedStateDiscreteSampler createSampler(UniformRandomProvider rng, List<T> collection, double[] probabilities) { if (probabilities.length != collection.size()) { throw new IllegalArgumentException(""Size mismatch: "" + probabilities.length + "" != "" + collection.size()); } return GuideTableDiscreteSampler.of(rng, probabilities); }",unrelated,unrelated,True,,0.0020993235521018505,0.9979007244110107
89,"private ResultMapping buildResultMappingFromContext(XNode context, Class<?> resultType, List<ResultFlag> flags) { String property; if (flags.contains(ResultFlag.CONSTRUCTOR)) { property = context.getStringAttribute(""name""); } else { property = context.getStringAttribute(""property""); } String column = context.getStringAttribute(""column""); String javaType = context.getStringAttribute(""javaType""); String jdbcType = context.getStringAttribute(""jdbcType""); String nestedSelect = context.getStringAttribute(""select""); String nestedResultMap = context.getStringAttribute(""resultMap"", () -> processNestedResultMappings(context, List.of(), resultType)); String notNullColumn = context.getStringAttribute(""notNullColumn""); String columnPrefix = context.getStringAttribute(""columnPrefix""); String typeHandler = context.getStringAttribute(""typeHandler""); String resultSet = context.getStringAttribute(""resultSet""); String foreignColumn = context.getStringAttribute(""foreignColumn""); boolean lazy = ""lazy"" .equals(context.getStringAttribute(""fetchType"", configuration.isLazyLoadingEnabled() ? ""lazy"" : ""eager""));",unrelated,unrelated,True,,0.0034613534808158875,0.9965386390686035
90,@Override public <E> Cursor<E> queryCursor(Statement statement) throws SQLException { return delegate.queryCursor(statement); },unrelated,unrelated,True,,0.002203246345743537,0.9977967739105225
91,"private JdbcType safeGetJdbcTypeForColumn(ResultSetMetaData rsmd, Integer columnIndex) { try { return JdbcType.forCode(rsmd.getColumnType(columnIndex)); } catch (Exception e) { return null; } }",unrelated,unrelated,True,,0.002287888200953603,0.9977121353149414
92,@Override public int next() { final int indexRm1 = TABLE.getIndexPred(index); final int v0 = v[index]; final int vM1 = v[TABLE.getIndexM1(index)]; final int vM2 = v[TABLE.getIndexM2(index)]; final int vM3 = v[TABLE.getIndexM3(index)]; final int z0 = v[indexRm1]; final int z1 = v0 ^ (vM1 ^ (vM1 >>> 8)); final int z2 = (vM2 ^ (vM2 << 19)) ^ (vM3 ^ (vM3 << 14)); final int z3 = z1 ^ z2; final int z4 = (z0 ^ (z0 << 11)) ^ (z1 ^ (z1 << 7)) ^ (z2 ^ (z2 << 13)); v[index] = z3; v[indexRm1] = z4; index = indexRm1; return z4;,unrelated,unrelated,True,,0.002188275568187237,0.9978117346763611
93,"private void linkToParents(ResultSet rs, ResultMapping parentMapping, Object rowValue) throws SQLException { CacheKey parentKey = createKeyForMultipleResults(rs, parentMapping, parentMapping.getColumn(), parentMapping.getForeignColumn()); List<PendingRelation> parents = pendingRelations.get(parentKey); if (parents != null) { for (PendingRelation parent : parents) { if (parent != null && rowValue != null) { linkObjects(parent.metaObject, parent.propertyMapping, rowValue); } } } }",unrelated,unrelated,True,,0.00283378129824996,0.9971662163734436
94,PendingCreationKey(ResultMapping constructorMapping) { this.resultMapId = constructorMapping.getNestedResultMapId(); this.constructorColumnPrefix = constructorMapping.getColumnPrefix(); },unrelated,unrelated,True,,0.0022237275261431932,0.997776210308075
95,"private static long sum(long[] frequencies) { if (frequencies == null || frequencies.length == 0) { throw new IllegalArgumentException(""frequencies must contain at least 1 value""); } long m = 0; long signFlag = 0; for (final long o : frequencies) { m += o; signFlag |= o | m; } if (signFlag < 0) { for (final long o : frequencies) { if (o < 0) {",unrelated,unrelated,True,,0.0020815045572817326,0.9979185461997986
96,@Override public String[] getSetterNames() { return map.keySet().toArray(new String[0]); },unrelated,unrelated,True,,0.0023100292310118675,0.997689962387085
97,"private InverseTransformParetoSampler(double scale, double shape, UniformRandomProvider rng) { super(null); this.rng = rng; this.scale = scale; this.oneOverShape = 1 / shape; nextDouble = shape >= 1 ? InternalUtils::makeNonZeroDouble : InternalUtils::makeDouble; }",unrelated,unrelated,True,,0.0020362643990665674,0.9979637861251831
98,public long getClaimedOverdueConnectionCount() { lock.lock(); try { return claimedOverdueConnectionCount; } finally { lock.unlock(); } },unrelated,unrelated,True,,0.002067806664854288,0.9979321956634521
99,"public static double[] shuffle(UniformRandomProvider rng, double[] array) { int i = array.length; for (; i > BATCH_2; --i) { swap(array, i - 1, rng.nextInt(i)); } final int[] productBound = {i * (i - 1)}; for (; i > 1; i -= 2) { final int[] indices = randomBounded2(i, i - 1, productBound, rng); final int index1 = indices[0]; final int index2 = indices[1]; swap(array, i - 1, index1); swap(array, i - 2, index2); } return array; }",unrelated,unrelated,True,,0.0021019841078668833,0.9978979825973511
100,"@Override public Reader getNullableResult(ResultSet rs, String columnName) throws SQLException { return toReader(rs.getClob(columnName)); }",unrelated,unrelated,True,,0.0023319111205637455,0.9976680874824524
101,"@Override public int next() { z = computeNew(36969, z); w = computeNew(18000, w); final int mwc = (z << 16) + w; jsr ^= jsr << 13; jsr ^= jsr >>> 17; jsr ^= jsr << 5; jcong = 69069 * jcong + 1234567; return (mwc ^ jcong) + jsr; }",unrelated,unrelated,True,,0.002121811034157872,0.9978781938552856
102,"@SuppressWarnings({""rawtypes"", ""unchecked""}) public static <T> void shuffle(UniformRandomProvider rng, List<T> list) { if (list instanceof RandomAccess || list.size() < RANDOM_ACCESS_SIZE_THRESHOLD) { ArraySampler.shuffle(rng, list); } else { final Object[] array = list.toArray(); ArraySampler.shuffle(rng, array); final ListIterator it = list.listIterator(); for (final Object item : array) { it.next(); it.set(item); } } }",unrelated,unrelated,True,,0.0021267314441502094,0.9978733062744141
103,"private void cacheElement(XNode context) { if (context != null) { String type = context.getStringAttribute(""type"", ""PERPETUAL""); Class<? extends Cache> typeClass = typeAliasRegistry.resolveAlias(type); String eviction = context.getStringAttribute(""eviction"", ""LRU""); Class<? extends Cache> evictionClass = typeAliasRegistry.resolveAlias(eviction); Long flushInterval = context.getLongAttribute(""flushInterval""); Integer size = context.getIntAttribute(""size""); boolean readWrite = !context.getBooleanAttribute(""readOnly"", false); boolean blocking = context.getBooleanAttribute(""blocking"", false); Properties props = context.getChildrenAsProperties(); builderAssistant.useNewCache(typeClass, evictionClass, flushInterval, size, readWrite, blocking, props); } }",unrelated,unrelated,True,,0.002106554340571165,0.9978935122489929
104,"@Override protected void setStateInternal(byte[] s) { final byte[][] c = splitStateInternal(s, SEED_SIZE * 8); setState(NumberFactory.makeLongArray(c[0])); super.setStateInternal(c[1]); }",unrelated,unrelated,True,,0.002092866227030754,0.9979071617126465
105,"public static Type resolveFieldType(Field field, Type srcType) { Type fieldType = field.getGenericType(); Class<?> declaringClass = field.getDeclaringClass(); return resolveType(fieldType, srcType, declaringClass); }",unrelated,unrelated,True,,0.0020994313526898623,0.9979006052017212
106,private void finishJump() { resetCachedState(); if (bufferPosition < PHILOX_BUFFER_SIZE) { rand10(); } },unrelated,unrelated,True,,0.0021991869434714317,0.9978007674217224
|