dataset_index,text,true_label,predicted_label,correct,error_type,probability_authentication_identity,probability_unrelated 1,public BadCredentialsException(final String message) { super(message); },unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9643884897232056,0.03561149910092354 5,"public BadCredentialsException(String message, Throwable t) { super(message, t); }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9823687672615051,0.017631201073527336 10,"public DigestCredentials(final String token, final String httpMethod, final String username, final String realm, final String nonce, final String uri, final String cnonce, final String nc, final String qop) { super(token); this.username = username; this.realm = realm; this.nonce = nonce; this.uri = uri; this.cnonce = cnonce; this.nc = nc; this.qop = qop; this.httpMethod = httpMethod; }",authentication_identity,unrelated,False,true_authentication_identity_predicted_unrelated,0.40286368131637573,0.5971363186836243 11,"public boolean matches(final byte[] message, final byte[] digest) { if (!isInitialized()) { initialize(); } int poolPosition; synchronized(this) { poolPosition = this.roundRobin; this.roundRobin = (this.roundRobin + 1) % this.poolSize; } return this.pool[poolPosition].matches(message, digest); }",authentication_identity,unrelated,False,true_authentication_identity_predicted_unrelated,0.0020012210588902235,0.9979987740516663 20,"private Predicate filterByPrincipalsPredicate(String[] filteringPrincipals) { if (ArrayUtils.isEmpty(filteringPrincipals)) { return policyItem -> true; } Map> principalCriteriaMap = new HashMap<>(); for (String principal : filteringPrincipals) { String[] parts = principal.split("":""); String principalType = parts.length > 1 ? parts[0] : DEFAULT_PRINCIPAL_TYPE; String principalName = parts.length > 1 ? parts[1] : parts[0]; principalCriteriaMap.computeIfAbsent(principalType.toLowerCase(), k -> new HashSet<>()).add(principalName); } return policyItem -> { Set users = principalCriteriaMap.getOrDefault(PRINCIPAL_TYPE_USER, Collections.emptySet()); Set groups = principalCriteriaMap.getOrDefault(PRINCIPAL_TYPE_GROUP, Collections.emptySet()); Set roles = principalCriteriaMap.getOrDefault(PRINCIPAL_TYPE_ROLE, Collections.emptySet()); return (policyItem.getUsers() != null && policyItem.getUsers().stream().anyMatch(users::contains)) || (policyItem.getGroups() != null && policyItem.getGroups().stream().anyMatch(groups::contains)) || (policyItem.getRoles() != null && policyItem.getRoles().stream().anyMatch(roles::contains)); }; }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9715377688407898,0.028462234884500504 30,"@Override public byte[] getMIC(byte[] message, int s, int l) { try { MessageProp prop = new MessageProp(0, true); return context.getMIC(message, s, l, prop); } catch (GSSException ex) { return null; } }",authentication_identity,unrelated,False,true_authentication_identity_predicted_unrelated,0.0033432645723223686,0.9966567754745483 32,"@OnScheduled public void setUpClient(final ProcessContext context) throws IOException { okHttpClientAtomicReference.set(null); OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient().newBuilder(); final ProxyConfiguration proxyConfig = ProxyConfiguration.getConfiguration(context); final Proxy proxy = proxyConfig.createProxy(); if (!Type.DIRECT.equals(proxy.type())) { okHttpClientBuilder.proxy(proxy); if (proxyConfig.hasCredential()) { ProxyAuthenticator proxyAuthenticator = new ProxyAuthenticator(proxyConfig.getProxyUserName(), proxyConfig.getProxyUserPassword()); okHttpClientBuilder.proxyAuthenticator(proxyAuthenticator); } } final boolean cachingEnabled = context.getProperty(RESPONSE_CACHE_ENABLED).asBoolean(); if (cachingEnabled) { final int maxCacheSizeBytes = context.getProperty(RESPONSE_CACHE_SIZE).asDataSize(DataUnit.B).intValue(); okHttpClientBuilder.cache(new Cache(getResponseCacheDirectory(), maxCacheSizeBytes)); } if (context.getProperty(HTTP2_DISABLED).asBoolean()) { okHttpClientBuilder.protocols(List.of(Protocol.HTTP_1_1)); } okHttpClientBuilder.followRedirects(context.getProperty(RESPONSE_REDIRECTS_ENABLED).asBoolean()); okHttpClientBuilder.connectTimeout((context.getProperty(SOCKET_CONNECT_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS).intValue()), TimeUnit.MILLISECONDS); okHttpClientBuilder.readTimeout(context.getProperty(SOCKET_READ_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS).intValue(), TimeUnit.MILLISECONDS); okHttpClientBuilder.writeTimeout(context.getProperty(SOCKET_WRITE_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS).intValue(), TimeUnit.MILLISECONDS); okHttpClientBuilder.connectionPool( new ConnectionPool( context.getProperty(SOCKET_IDLE_CONNECTIONS).asInteger(), context.getProperty(SOCKET_IDLE_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS).intValue(), TimeUnit.MILLISECONDS ) ); final SSLContextProvider sslContextProvider = context.getProperty(SSL_CONTEXT_SERVICE).asControllerService(SSLContextProvider.class); if (sslContextProvider != null) { final SSLContext sslContext = sslContextProvider.createContext(); final SSLSocketFactory socketFactory = sslContext.getSocketFactory(); final X509TrustManager trustManager = sslContextProvider.createTrustManager(); okHttpClientBuilder.sslSocketFactory(socketFactory, trustManager); } final CookieStrategy cookieStrategy = CookieStrategy.valueOf(context.getProperty(RESPONSE_COOKIE_STRATEGY).getValue()); switch (cookieStrategy) { case DISABLED: break; case ACCEPT_ALL: final CookieManager cookieManager = new CookieManager(); cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL); okHttpClientBuilder.cookieJar(new JavaNetCookieJar(cookieManager)); break; } setAuthenticator(okHttpClientBuilder, context); okHttpClientAtomicReference.set(okHttpClientBuilder.build()); }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9822630286216736,0.017736922949552536 35,"private void removeMatchingPrincipalFromPolicyItem(RangerPolicyItem policyItem, RangerPrincipal principal) { String principalName = principal.getName(); PrincipalType principalType = principal.getType(); if (principalType == PrincipalType.USER && policyItem.getUsers() != null) { policyItem.getUsers().remove(principalName); } else if (principalType == PrincipalType.GROUP && policyItem.getGroups() != null) { policyItem.getGroups().remove(principalName); } else if (principalType == PrincipalType.ROLE && policyItem.getRoles() != null) { policyItem.getRoles().remove(principalName); } }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9818555116653442,0.018144547939300537 43,"private JSONObject createConnection(String externalId) throws Exception { if (accessToken == null || accessToken.isEmpty()) { JSONObject accessTokenResponse = getAccessToken(); if (!accessTokenResponse.has(""accessToken"")) { return accessTokenResponse; } accessToken = accessTokenResponse.getString(""accessToken""); } Map snapBiTransactionHeader = buildSnapBiTransactionHeader(externalId, timeStamp); String url = SnapBiConfig.getSnapBiTransactionBaseUrl() + apiPath; return SnapBiApiRequestor.remoteCall(url, snapBiTransactionHeader, body); }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9857118725776672,0.014288097620010376 45,"private static final String EXCHANGE_TOKEN_URL = ""https://graph.facebook.com/v2.8/oauth/access_token?grant_type=fb_exchange_token"";",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.9830819964408875,0.01691802218556404 48,public WebSessionManager getSessionManager() { return this.sessionManager; },unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.8186979293823242,0.18130211532115936 49,"public HttpHandler build() { WebHandler decorated = new FilteringWebHandler(this.webHandler, this.filters); decorated = new ExceptionHandlingWebHandler(decorated, this.exceptionHandlers); HttpWebHandlerAdapter adapted = new HttpWebHandlerAdapter(decorated); if (this.sessionManager != null) { adapted.setSessionManager(this.sessionManager); } if (this.codecConfigurer != null) { adapted.setCodecConfigurer(this.codecConfigurer); } if (this.localeContextResolver != null) { adapted.setLocaleContextResolver(this.localeContextResolver); } if (this.forwardedHeaderTransformer != null) { adapted.setForwardedHeaderTransformer(this.forwardedHeaderTransformer); } if (this.observationRegistry != null) { adapted.setObservationRegistry(this.observationRegistry); } if (this.observationConvention != null) { adapted.setObservationConvention(this.observationConvention); } if (this.applicationContext != null) { adapted.setApplicationContext(this.applicationContext); } if (this.defaultHtmlEscape != null) { adapted.setDefaultHtmlEscape(this.defaultHtmlEscape); } adapted.afterPropertiesSet(); return (this.httpHandlerDecorator != null ? this.httpHandlerDecorator.apply(adapted) : adapted); }",unrelated,authentication_identity,False,true_unrelated_predicted_authentication_identity,0.6373922228813171,0.3626077473163605 55,"public void setSessionManager(WebSessionManager sessionManager) { Assert.notNull(sessionManager, ""WebSessionManager must not be null""); this.sessionManager = sessionManager; }",authentication_identity,unrelated,False,true_authentication_identity_predicted_unrelated,0.4417704939842224,0.5582294464111328 56,public WebHttpHandlerBuilder sessionManager(WebSessionManager manager) { this.sessionManager = manager; return this; },authentication_identity,unrelated,False,true_authentication_identity_predicted_unrelated,0.27255502343177795,0.7274449467658997