| dataset_index,text,true_label,predicted_label,correct,error_type,probability_authorization_access_control,probability_unrelated |
| 0,private boolean isRequestAuthenticated() { Authentication auth = SecurityContextHolder.getContext().getAuthentication(); return auth != null && auth.isAuthenticated(); },unrelated,unrelated,True,,0.0006995244766585529,0.999300479888916 |
| 1,"public static final AclEntryPermission[] DEFAULT_ACL_FILE_PERMISSIONS = new AclEntryPermission[]{ AclEntryPermission.DELETE, AclEntryPermission.READ_ACL, AclEntryPermission.READ_ATTRIBUTES, AclEntryPermission.READ_DATA, AclEntryPermission.WRITE_ACL, AclEntryPermission.WRITE_ATTRIBUTES, AclEntryPermission.WRITE_DATA, AclEntryPermission.APPEND_DATA };",authorization_access_control,authorization_access_control,True,,0.9972279667854309,0.0027720623183995485 |
| 2,"try { info = queryForAuthenticationInfo(token, ensureContextFactory()); } catch (javax.naming.AuthenticationException e) { throw new AuthenticationException(""LDAP authentication failed."", e); } catch (NamingException e) { String msg = ""LDAP naming error while attempting to authenticate user.""; throw new AuthenticationException(msg, e); } return info; }",unrelated,unrelated,True,,0.000670510926283896,0.9993295669555664 |
| 3,@Override public Authentication authenticate(Authentication authentication) throws AuthenticationException { if (isSsoEnabled()) { if (authentication != null) { authentication = getSSOAuthentication(authentication); if (authentication != null && authentication.isAuthenticated()) {,unrelated,unrelated,True,,0.0006593154976144433,0.9993407130241394 |
| 4,"break; } if (realm.supports(token)) { LOGGER.trace(""Attempting to authenticate token [{}] using realm [{}]"", token, realm); AuthenticationInfo info = null; Throwable t = null; try { info = realm.getAuthenticationInfo(token);",unrelated,unrelated,True,,0.0007506357505917549,0.999249279499054 |
| 5,"ldapAuthenticationProvider = new LdapAuthenticationProvider(bindAuthenticator); } if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, userPassword, grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9972280859947205,0.002771863015368581 |
| 6,"@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { String authtype = PropertiesUtil.getProperty(RANGER_AUTH_TYPE); HttpServletRequest httpRequest = (HttpServletRequest) request; Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication(); if (isSpnegoEnable(authtype) && (existingAuth == null || !existingAuth.isAuthenticated())) { KerberosName.setRules(PropertiesUtil.getProperty(NAME_RULES, ""DEFAULT"")); String userName = null;",unrelated,unrelated,True,,0.0008828002028167248,0.9991171956062317 |
| 7,AuthenticationInfo authenticate(AuthenticationToken authenticationToken) throws AuthenticationException;,unrelated,unrelated,True,,0.0007264127489179373,0.9992735981941223 |
| 8,"String rangerLdapDefaultRole = PropertiesUtil.getProperty(""ranger.ldap.default.role"", ""ROLE_USER""); if (userName != null && !userName.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, """", grantedAuths); final AbstractAuthenticationToken finalAuthentication = new UsernamePasswordAuthenticationToken(principal, """", grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9972992539405823,0.0027007691096514463 |
| 9,"public void checkPermission(PrincipalCollection principals, Permission permission) throws AuthorizationException { assertRealmsConfigured(); if (!isPermitted(principals, permission)) { throw new UnauthorizedException(""Subject does not have permission ["" + permission + ""]""); } }",authorization_access_control,authorization_access_control,True,,0.997282862663269,0.002717085648328066 |
| 10,"public MyRememberMeFilter(AuthenticationManager authenticationManager, RememberMeServices rememberMeServices) { super(authenticationManager, rememberMeServices); }",unrelated,unrelated,True,,0.000704138190485537,0.9992958307266235 |
| 11,"@Path(""/{userId}/roles"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.SET_USER_ROLES + ""\"")"") public VXResponse setUserRoles(@PathParam(""userId"") Long userId, VXStringList roleList) { userManager.checkAccess(userId); userManager.setUserRoles(userId, roleList.getVXStrings()); VXResponse response = new VXResponse(); response.setStatusCode(VXResponse.STATUS_SUCCESS);",authorization_access_control,authorization_access_control,True,,0.9972692131996155,0.002730711130425334 |
| 12,"private List<AclEntry> processPermissions(UserPrincipal owner, AclEntryPermission[] defaultAclFilePermissions) { AclEntry.Builder aclBuilder = AclEntry.newBuilder(); aclBuilder.setPermissions(defaultAclFilePermissions); aclBuilder.setType(AclEntryType.ALLOW); aclBuilder.setPrincipal(owner); ArrayList<AclEntry> aclList = new ArrayList<>(); aclList.add(aclBuilder.build());",authorization_access_control,authorization_access_control,True,,0.9972857236862183,0.002714249538257718 |
| 13,"public final AuthenticationInfo authenticate(AuthenticationToken token) throws AuthenticationException { if (token == null) { throw new IllegalArgumentException(""Method argument (authentication token) cannot be null.""); }",unrelated,unrelated,True,,0.0006705872947350144,0.9993294477462769 |
| 14,"String msg = ""Unsupported configured authentication mechanism""; throw new UnsupportedAuthenticationMechanismException(msg, e); } catch (javax.naming.AuthenticationException e) { throw new AuthenticationException(""LDAP authentication failed."", e); } catch (NamingException e) { String msg = ""LDAP naming error while attempting to authenticate user.""; throw new AuthenticationException(msg, e); } return info; }",unrelated,unrelated,True,,0.0006677315104752779,0.9993322491645813 |
| 15,"@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { try { Authentication auth = SecurityContextHolder.getContext().getAuthentication(); if (!(auth instanceof AnonymousAuthenticationToken)) { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpSession httpSession = httpRequest.getSession(false);",unrelated,unrelated,True,,0.0007284487364813685,0.9992715716362 |
| 16,"public void checkPermission(PrincipalCollection principals, Permission permission) throws AuthorizationException { this.authorizer.checkPermission(principals, permission); }",authorization_access_control,authorization_access_control,True,,0.9972811937332153,0.002718835836276412 |
| 17,private boolean isAuthenticated() { Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication(); return !(!(existingAuth != null && existingAuth.isAuthenticated()) || existingAuth instanceof SSOAuthentication); },unrelated,unrelated,True,,0.0006671008304692805,0.999332845211029 |
| 18,"if (aggregate == null || isEmpty(aggregate.getPrincipals())) { throw new AuthenticationException(""Authentication token of type ["" + token.getClass() + ""] "" + ""could not be authenticated by any configured realms. Please ensure that at least one realm can "" + ""authenticate these tokens.""); } return aggregate; }",unrelated,unrelated,True,,0.0009823476430028677,0.999017596244812 |
| 19,"private static final String COULD_NOT_AUTHENTICATE_USER = ""Could not authenticate user"";",unrelated,unrelated,True,,0.0011245496571063995,0.9988754391670227 |
| 20,"userPassword = authentication.getCredentials().toString(); } if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, userPassword, grantedAuths); final Authentication finalAuthentication = new UsernamePasswordAuthenticationToken(principal, userPassword, grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9972457885742188,0.0027542205061763525 |
| 21,"userPassword = authentication.getCredentials().toString(); } if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, userPassword, grantedAuths); final Authentication finalAuthentication = new UsernamePasswordAuthenticationToken(principal, userPassword, grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9972457885742188,0.0027542205061763525 |
| 22,"} return; } final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(doAsUser, """", grantedAuths); Authentication authentication = new UsernamePasswordAuthenticationToken(principal, """", grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9972819089889526,0.0027180600445717573 |
| 23,"if (token == null) { if (LOG.isDebugEnabled()) { LOG.debug(""Request [{}] triggering authentication"", getRequestURL(httpRequest)); } token = authHandler.authenticate(httpRequest, httpResponse); if (token != null && token.getExpires() != 0 && token != AuthenticationToken.ANONYMOUS) { token.setExpires(System.currentTimeMillis() + getValidity() * 1000); }",unrelated,unrelated,True,,0.0006705543491989374,0.9993294477462769 |
| 24,"@Override public AuthenticationResult authenticate( AuthenticationDataSource ds ) throws AuthenticationException, AccountLockedException, MustChangePasswordException { boolean authenticationSuccess = false; String username = null; Exception resultException = null;",unrelated,unrelated,True,,0.0006735724164173007,0.9993264675140381 |
| 25,"bindAuthenticator.afterPropertiesSet(); LdapAuthenticationProvider ldapAuthenticationProvider = new LdapAuthenticationProvider(bindAuthenticator, defaultLdapAuthoritiesPopulator); if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, userPassword, grantedAuths); final Authentication finalAuthentication = new UsernamePasswordAuthenticationToken(principal, userPassword, grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9970453381538391,0.0029547237791121006 |
| 26,"public void checkPermission(PrincipalCollection subjectIdentifier, String permission) throws AuthorizationException { Permission p = getPermissionResolver().resolvePermission(permission); checkPermission(subjectIdentifier, p); }",authorization_access_control,authorization_access_control,True,,0.9972896575927734,0.002710412722080946 |
| 27,public AuthenticationInfo authenticate(AuthenticationToken token) throws AuthenticationException { return this.authenticator.authenticate(token); },unrelated,unrelated,True,,0.0007031370769254863,0.9992969036102295 |
| 28,"public VXPortalUser update(VXPortalUser userProfile, @Context HttpServletRequest servletRequest) { logger.info(""update:{}"", userProfile.getEmailAddress()); XXPortalUser gjUser = daoManager.getXXPortalUser().getById(userProfile.getId()); userManager.checkAccess(gjUser); if (gjUser != null) { msRestUtil.validateVUserProfileForUpdate(gjUser, userProfile); gjUser = userManager.updateUser(userProfile);",authorization_access_control,authorization_access_control,True,,0.9942504167556763,0.0057495348155498505 |
| 29,"protected void checkPermission(Permission permission, AuthorizationInfo info) { if (!isPermitted(permission, info)) { String msg = ""User is not permitted ["" + permission + ""]""; throw new UnauthorizedException(msg); } }",authorization_access_control,authorization_access_control,True,,0.997287392616272,0.002712581306695938 |
| 30,"bindAuthenticator.afterPropertiesSet(); LdapAuthenticationProvider ldapAuthenticationProvider = new LdapAuthenticationProvider(bindAuthenticator); if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, userPassword, grantedAuths); final Authentication finalAuthentication = new UsernamePasswordAuthenticationToken(principal, userPassword, grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9970932006835938,0.0029068083968013525 |
| 31,"public AuthenticationInfo afterAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo info, AuthenticationInfo aggregate, Throwable t) throws AuthenticationException { if (t != null) { if (t instanceof AuthenticationException exception) {",unrelated,unrelated,True,,0.0006998799508437514,0.9993001222610474 |
| 32,"public Subject login(Subject subject, AuthenticationToken token) throws AuthenticationException { AuthenticationInfo info; try { info = authenticate(token); } catch (AuthenticationException ae) { try { onFailedLogin(token, ae, subject); } catch (Exception e) { if (LOGGER.isInfoEnabled()) {",unrelated,unrelated,True,,0.0006578520988114178,0.999342143535614 |
| 33,"public void checkPermission(Permission permission) throws AuthorizationException { assertAuthzCheckPossible(); securityManager.checkPermission(getPrincipals(), permission); }",authorization_access_control,authorization_access_control,True,,0.9972907900810242,0.0027091791853308678 |
| 34,"if (Files.isDirectory(filePath)) { perms = getDefaultDirectoryAcls(); } else { perms = getDefaultFileAcls(); } AclFileAttributeView aclAttr = Files.getFileAttributeView(filePath, AclFileAttributeView.class); aclAttr.setAcl(perms); } } catch (IOException e) { log.error(""Could not set permissions for {}: {}"", filePath, e.getMessage()); } }",authorization_access_control,authorization_access_control,True,,0.9972696900367737,0.0027303227689117193 |
| 35,"public void checkPermission(PrincipalCollection principal, Permission permission) throws AuthorizationException { AuthorizationInfo info = getAuthorizationInfo(principal); checkPermission(permission, info); }",authorization_access_control,authorization_access_control,True,,0.9972834587097168,0.002716532675549388 |
| 36,"} String rangerLdapDefaultRole = PropertiesUtil.getProperty(""ranger.ldap.default.role"", ""ROLE_USER""); if (userName != null && userPassword != null && !userName.trim().isEmpty() && !userPassword.trim().isEmpty()) { final List<GrantedAuthority> grantedAuths = new ArrayList<>(); grantedAuths.add(new SimpleGrantedAuthority(rangerLdapDefaultRole)); final UserDetails principal = new User(userName, userPassword, grantedAuths); final Authentication finalAuthentication = new UsernamePasswordAuthenticationToken(principal, userPassword, grantedAuths);",authorization_access_control,authorization_access_control,True,,0.9972810745239258,0.0027189264073967934 |
| 37,"public static final AclEntryPermission[] DEFAULT_ACL_DIR_PERMISSIONS = new AclEntryPermission[]{ AclEntryPermission.ADD_FILE, AclEntryPermission.ADD_SUBDIRECTORY, AclEntryPermission.DELETE_CHILD, AclEntryPermission.DELETE, AclEntryPermission.READ_ACL, AclEntryPermission.READ_ATTRIBUTES, AclEntryPermission.READ_DATA, AclEntryPermission.WRITE_ACL, AclEntryPermission.WRITE_ATTRIBUTES, AclEntryPermission.WRITE_DATA, AclEntryPermission.APPEND_DATA };",authorization_access_control,authorization_access_control,True,,0.9972148537635803,0.002785186283290386 |
| 38,"@GET @Path(TagRESTConstants.TAGRESOURCEMAPS_RESOURCE_PAGINATED) @Produces(""application/json"") @PreAuthorize(""hasRole('ROLE_SYS_ADMIN')"") public PList<RangerTagResourceMap> getTagResourceMaps(@Context HttpServletRequest request) { LOG.debug(""==> TagREST.getTagResourceMaps()""); final PList<RangerTagResourceMap> ret;",authorization_access_control,authorization_access_control,True,,0.9972684383392334,0.0027315644547343254 |
| 39,"@GET @Path(""/policies/eventTime"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.GET_POLICY_FROM_EVENT_TIME + ""\"")"") public RangerPolicy getPolicyFromEventTime(@Context HttpServletRequest request) { LOG.debug(""==> ServiceREST.getPolicyFromEventTime()""); String eventTimeStr = request.getParameter(""eventTime""); String policyIdStr = request.getParameter(""policyId"");",authorization_access_control,authorization_access_control,True,,0.9972579479217529,0.0027419966645538807 |
| 40,"@PUT @Path(TagRESTConstants.TAG_RESOURCE + ""guid/{guid}"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""hasRole('ROLE_SYS_ADMIN')"") public RangerTag updateTagByGuid(@PathParam(""guid"") String guid, RangerTag tag) { LOG.debug(""==> TagREST.updateTagByGuid({})"", guid); RangerTag ret;",authorization_access_control,authorization_access_control,True,,0.9972508549690247,0.0027490833308547735 |
| 41,"@POST @Path(""/resources"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.ADD_SHARED_RESOURCES + ""\"")"") public List<RangerSharedResource> addSharedResources(List<RangerSharedResource> resources) { LOG.debug(""==> GdsREST.addSharedResources({})"", resources); List<RangerSharedResource> ret; RangerPerfTracer perf = null;",authorization_access_control,authorization_access_control,True,,0.9972687363624573,0.0027312044985592365 |
| 42,"@GET @Path(""/services/{id}"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.GET_SERVICE + ""\"")"") public RangerService getService(@PathParam(""id"") Long id) { LOG.debug(""==> ServiceREST.getService({})"", id); RangerService ret; RangerPerfTracer perf = null;",authorization_access_control,authorization_access_control,True,,0.9972589015960693,0.0027410814072936773 |
| 43,"@PUT @Path(""/permission/group/{id}"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.UPDATE_X_GROUP_PERMISSION + ""\"")"") public VXGroupPermission updateXGroupPermission(@PathParam(""id"") Long id, VXGroupPermission vXGroupPermission) { if (vXGroupPermission.getId() == null) { vXGroupPermission.setId(id); } else if (!vXGroupPermission.getId().equals(id)) {",authorization_access_control,authorization_access_control,True,,0.9972614049911499,0.002738634590059519 |
| 44,"@DELETE @Path(""/trx_log/{id}"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.DELETE_X_TRX_LOG + ""\"")"") @RangerAnnotationClassName(class_name = VXTrxLog.class) public void deleteXTrxLog(@PathParam(""id"") Long id, @Context HttpServletRequest request) { boolean force = false; xAuditMgr.deleteXTrxLog(id, force);",authorization_access_control,authorization_access_control,True,,0.9972686767578125,0.002731327898800373 |
| 45,"@GET @Path(TagRESTConstants.RESOURCE_RESOURCE + ""service/{serviceName}/signature/{resourceSignature}"") @Produces(""application/json"") @PreAuthorize(""hasRole('ROLE_SYS_ADMIN')"") public RangerServiceResource getServiceResourceByServiceAndResourceSignature(@PathParam(""serviceName"") String serviceName, @PathParam(""resourceSignature"") String resourceSignature) { LOG.debug(""==> TagREST.getServiceResourceByServiceAndResourceSignature({}, {})"", serviceName, resourceSignature); RangerServiceResource ret;",authorization_access_control,authorization_access_control,True,,0.9972273707389832,0.002772667445242405 |
| 46,"@GET @Path(""/definitions/name/{name}"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.GET_SERVICE_DEF_BY_NAME + ""\"")"") public RangerServiceDef getServiceDefByName(@PathParam(""name"") String name) { LOG.debug(""==> ServiceREST.getServiceDefByName(serviceDefName={})"", name); RangerServiceDef ret; RangerPerfTracer perf = null;",authorization_access_control,authorization_access_control,True,,0.9972583055496216,0.0027416523080319166 |
| 47,"@POST @Path(""/resource"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.ADD_SHARED_RESOURCE + ""\"")"") public RangerSharedResource addSharedResource(RangerSharedResource resource) { LOG.debug(""==> GdsREST.addSharedResource({})"", resource); RangerSharedResource ret; RangerPerfTracer perf = null;",authorization_access_control,authorization_access_control,True,,0.9972602128982544,0.0027397822123020887 |
| 48,"@GET @Path(""/dataset/names"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.LIST_DATASET_NAMES + ""\"")"") public PList<String> listDatasetNames(@Context HttpServletRequest request) { LOG.debug(""==> GdsREST.listDatasetNames()""); PList<String> ret; RangerPerfTracer perf = RangerPerfTracer.getPerfTracer(PERF_LOG, ""GdsREST.listDatasetNames()"");",authorization_access_control,authorization_access_control,True,,0.997273862361908,0.0027261427603662014 |
| 49,"@GET @Path(""/roles/exportJson"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAdminRole()"") public void getRolesInJson(@Context HttpServletRequest request, @Context HttpServletResponse response) { LOG.debug(""==> getRolesInJson()""); try { List<RangerRole> roleLists = getAllFilteredRoleList(request);",authorization_access_control,authorization_access_control,True,,0.9972461462020874,0.0027539220172911882 |
| 50,"@GET @Path(""/secure/users/{id}"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.SECURE_GET_X_USER + ""\"")"") public VXUser secureGetXUser(@PathParam(""id"") Long id) { return xUserMgr.getXUser(id); }",authorization_access_control,authorization_access_control,True,,0.9972720742225647,0.0027279178611934185 |
| 51,"@POST @Path(""/permission/group"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.CREATE_X_GROUP_PERMISSION + ""\"")"") public VXGroupPermission createXGroupPermission(VXGroupPermission vXGroupPermission) { xUserMgr.checkAdminAccess(); bizUtil.blockAuditorRoleUser(); return xUserMgr.createXGroupPermission(vXGroupPermission);",authorization_access_control,authorization_access_control,True,,0.9972628355026245,0.0027371214237064123 |
| 52,"@DELETE @Path(TagRESTConstants.TAGDEF_RESOURCE + ""guid/{guid}"") @Produces(""application/json"") @PreAuthorize(""hasRole('ROLE_SYS_ADMIN')"") public void deleteTagDefByGuid(@PathParam(""guid"") String guid) { LOG.debug(""==> TagREST.deleteTagDefByGuid({})"", guid); try { RangerTagDef exist = tagStore.getTagDefByGuid(guid);",authorization_access_control,authorization_access_control,True,,0.9972501397132874,0.002749865176156163 |
| 53,"@PUT @Path(""/definitions/{id}"") @Consumes(""application/json"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.UPDATE_SERVICE_DEF + ""\"")"") public RangerServiceDef updateServiceDef(RangerServiceDef serviceDef, @PathParam(""id"") Long id) { LOG.debug(""==> ServiceREST.updateServiceDef(serviceDefName={})"", serviceDef.getName());",authorization_access_control,authorization_access_control,True,,0.9972499012947083,0.0027500533033162355 |
| 54,"@GET @Path(""/dataset"") @Produces(""application/json"") @PreAuthorize(""@rangerPreAuthSecurityHandler.isAPIAccessible(\"""" + RangerAPIList.SEARCH_DATASETS + ""\"")"") public PList<RangerDataset> searchDatasets(@Context HttpServletRequest request) { LOG.debug(""==> GdsREST.searchDatasets()""); PList<RangerDataset> ret; RangerPerfTracer perf = null;",authorization_access_control,authorization_access_control,True,,0.9972545504570007,0.0027454541996121407 |
| 55,RequiresPermissions rpAnnotation = (RequiresPermissions) a; String[] perms = getAnnotationValue(a); Subject subject = getSubject(); if (perms.length == 1) { subject.checkPermission(perms[0]); return; } if (Logical.AND.equals(rpAnnotation.logical())) { getSubject().checkPermissions(perms); return;,authorization_access_control,authorization_access_control,True,,0.9972662925720215,0.0027336927596479654 |
| 56,"public static final String PARAM_ROLE_NAME = ""roleName"";",unrelated,authorization_access_control,False,true_unrelated_predicted_authorization_access_control,0.9969956874847412,0.0030042999424040318 |
| 57,"private RangerRole getRoleIfAccessible(String roleName, String serviceName, String userName, Set<String> userGroups) {",authorization_access_control,authorization_access_control,True,,0.9971669316291809,0.002833014354109764 |
| 58,Subject subject = getSubject(); if (subject != null) { for (String permission : permissions.split(PERMISSIONS_DELIMITER)) { if (subject.isPermitted(permission.trim())) { hasAnyPermission = true; break; } } },authorization_access_control,authorization_access_control,True,,0.997277557849884,0.0027225154917687178 |
| 59,public boolean isUserInRole(String s) { Subject subject = getSubject(); boolean inRole = (subject != null && subject.hasRole(s)); if (!inRole) { inRole = super.isUserInRole(s); } return inRole; },authorization_access_control,authorization_access_control,True,,0.9972299933433533,0.00276998826302588 |
| 60,return true; } Set<String> roles = CollectionUtils.asSet(rolesArray); return subject.hasAllRoles(roles); },authorization_access_control,authorization_access_control,True,,0.997215986251831,0.002783957403153181 |
| 61,String[] perms = (String[]) mappedValue; boolean isPermitted = true; if (perms != null && perms.length > 0) { if (perms.length == 1) { if (!subject.isPermitted(perms[0])) { isPermitted = false; } } else { if (!subject.isPermittedAll(perms)) { isPermitted = false;,authorization_access_control,authorization_access_control,True,,0.9972625970840454,0.0027373740449547768 |
| 62,"* If effective user is ranger admin/has role admin privilege, then allow the operation * else deny the operation * This logic is implemented as part of getRoleIfAccessible(roleName, serviceName, userName, userGroups) */ Set<String> userGroups = CollectionUtils.isNotEmpty(grantRoleRequest.getGrantorGroups()) ? grantRoleRequest.getGrantorGroups() : userMgr.getGroupsForUser(userName); RangerRole existingRole = getRoleIfAccessible(roleName, serviceName, userName, userGroups); if (existingRole == null) { throw restErrorUtil.createRESTException(""User doesn't have permissions to grant role "" + roleName); }",authorization_access_control,authorization_access_control,True,,0.9972932934761047,0.00270665786229074 |
| 63,"RangerRole ret; try { Set<String> userGroups = StringUtils.isNotEmpty(execUser) ? userMgr.getGroupsForUser(execUser) : new HashSet<>(); ret = getRoleIfAccessible(roleName, serviceName, execUser, userGroups); if (ret == null) { throw restErrorUtil.createRESTException(""User doesn't have permissions to get details for "" + roleName); } } catch (WebApplicationException excp) {",authorization_access_control,authorization_access_control,True,,0.9972510933876038,0.0027488938067108393 |
| 64,Subject subject = getSubject(); if (subject != null) { for (String role : roleNames.split(ROLE_NAMES_DELIMITER)) { if (subject.hasRole(role.trim())) { hasAnyRole = true; break; } } },authorization_access_control,authorization_access_control,True,,0.9972116351127625,0.0027884093578904867 |
| 65,"protected int convertText(String text, Locale locale) { try { return Integer.parseInt(text); } catch (NumberFormatException ex) { throw new IllegalFieldValueException(getType(), text); } }",unrelated,unrelated,True,,0.0006993738352321088,0.9993005990982056 |
| 66,"private static FastLoadedDiceRollerDiscreteSampler createSampler(UniformRandomProvider rng, long[] frequencies, int[] offsets, int[] indices, BigInteger m) { final int n = frequencies.length; final int k = m.subtract(BigInteger.ONE).bitLength(); final BigInteger r = BigInteger.ONE.shiftLeft(k).subtract(m);",unrelated,unrelated,True,,0.0006589193944819272,0.9993410706520081 |
| 67,"@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.0006449727225117385,0.9993550181388855 |
| 68,"private GuideTableDiscreteSampler(UniformRandomProvider rng, double[] cumulativeProbabilities, int[] guideTable) { this.rng = rng; this.cumulativeProbabilities = cumulativeProbabilities; this.guideTable = guideTable; }",unrelated,unrelated,True,,0.0006862849113531411,0.9993137121200562 |
| 69,"private static boolean testBit(long value, int offset, int n) { if (n < offset) { return false; } final int bit = n - offset; return bit <= MANTISSA_SIZE && (value & (1L << bit)) != 0; }",unrelated,unrelated,True,,0.0006479466683231294,0.9993520379066467 |
| 70,private void performJump(int[] jumpCoefficients) { int s0 = 0; int s1 = 0; int s2 = 0; int s3 = 0; for (final int jc : jumpCoefficients) { for (int b = 0; b < 32; b++) { if ((jc & (1 << b)) != 0) { s0 ^= state0; s1 ^= state1; s2 ^= state2; s3 ^= state3; } next(); } } state0 = s0; state1 = s1; state2 = s2; state3 = s3;,unrelated,unrelated,True,,0.0006460250006057322,0.9993539452552795 |
| 71,"private InverseTransformParetoSampler(UniformRandomProvider rng, InverseTransformParetoSampler source) { super(null); this.rng = rng; scale = source.scale; oneOverShape = source.oneOverShape; nextDouble = source.nextDouble; }",unrelated,unrelated,True,,0.0006531092803925276,0.999346911907196 |
| 72,"@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.0006357690435834229,0.9993641972541809 |
| 73,@Override public UniformRandomProvider jump() { final UniformRandomProvider copy = new L32X64Mix(this); ls = M * ls + la; resetCachedState(); return copy; },unrelated,unrelated,True,,0.0006360827246680856,0.9993639588356018 |
| 74,public boolean isGreaterThan(Seconds other) { if (other == null) { return getValue() > 0; } return getValue() > other.getValue(); },unrelated,unrelated,True,,0.000679917458910495,0.9993201494216919 |
| 75,"@Override public long set(long instant, int value) { FieldUtils.verifyValueBounds(this, value, getMinimumValue(), getMaximumValue()); return instant + (value - get(instant)) * iUnitMillis; }",unrelated,unrelated,True,,0.0006492779357358813,0.9993507266044617 |
| 76,"public static Years yearsBetween(ReadableInstant start, ReadableInstant end) { int amount = BaseSingleFieldPeriod.between(start, end, DurationFieldType.years()); return Years.years(amount); }",unrelated,unrelated,True,,0.0006689283763989806,0.9993311166763306 |
| 77,"@Override public long set(long millis, int value) { FieldUtils.verifyValueBounds(this, value, iMinValue, getMaximumValue()); if (value <= iSkip) { value--; } return super.set(millis, value); }",unrelated,unrelated,True,,0.0006480563315562904,0.9993519186973572 |
| 78,"private BoxMullerGaussianSampler(double mean, double standardDeviation, UniformRandomProvider rng) { super(null); this.rng = rng; this.mean = mean; this.standardDeviation = standardDeviation; }",unrelated,unrelated,True,,0.0006662716041319072,0.9993336796760559 |
| 79,"public LocalTime(Object instant, Chronology chronology) { PartialConverter converter = ConverterManager.getInstance().getPartialConverter(instant); chronology = converter.getChronology(instant, chronology); chronology = DateTimeUtils.getChronology(chronology); iChronology = chronology.withUTC(); int[] values = converter.getPartialValues(this, instant, chronology, ISODateTimeFormat.localTimeParser()); iLocalMillis = iChronology.getDateTimeMillis(0L, values[0], values[1], values[2], values[3]); }",unrelated,unrelated,True,,0.0006752177141606808,0.9993247985839844 |
| 80,"public int get(DateTimeField field) { if (field == null) { throw new IllegalArgumentException(""The DateTimeField must not be null""); } return field.get(getMillis()); }",unrelated,unrelated,True,,0.0006365848821587861,0.9993634819984436 |
| 81,"public Interval withDurationAfterStart(ReadableDuration duration) { long durationMillis = DateTimeUtils.getDurationMillis(duration); if (durationMillis == toDurationMillis()) { return this; } Chronology chrono = getChronology(); long startMillis = getStartMillis(); long endMillis = chrono.add(startMillis, durationMillis, 1); return new Interval(startMillis, endMillis, chrono); }",unrelated,unrelated,True,,0.0006452942616306245,0.9993546605110168 |
| 82,"@Override public int getMaximumValue(ReadablePartial partial) { if (partial.isSupported(DateTimeFieldType.monthOfYear())) { int month = partial.get(DateTimeFieldType.monthOfYear()); if (partial.isSupported(DateTimeFieldType.year())) { int year = partial.get(DateTimeFieldType.year()); return iChronology.getDaysInYearMonth(year, month); } return iChronology.getDaysInMonthMax(month); } return getMaximumValue(); }",unrelated,unrelated,True,,0.00093465531244874,0.9990653395652771 |
| 83,@Override protected XoRoShiRo1024Star copy() { return new XoRoShiRo1024Star(this); },unrelated,unrelated,True,,0.0006580164190381765,0.9993420243263245 |
| 84,"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.000631381873972714,0.9993686079978943 |
| 85,public void setZone(DateTimeZone zone) { iSavedState = null; iZone = zone; },unrelated,unrelated,True,,0.0007175400387495756,0.9992825388908386 |
| 86,"public DateMidnight plusMonths(int months) { if (months == 0) { return this; } long instant = getChronology().months().add(getMillis(), months); return withMillis(instant); }",unrelated,unrelated,True,,0.0006696497439406812,0.9993304014205933 |
| 87,"@Override public long set(long instant, int value) { FieldUtils.verifyValueBounds(this, value, iMin, iMax); int remainder = getRemainder(getWrappedField().get(instant)); return getWrappedField().set(instant, value * iDivisor + remainder); }",unrelated,unrelated,True,,0.0006426729378290474,0.999357283115387 |
| 88,@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.0006528722587972879,0.9993471503257751 |
| 89,"public static Builder<DiscreteSampler> newDiscreteSamplerBuilder() { return new SamplerBuilder<>( SamplerBuilder.Specialisation.NONE, DiscreteSamplerFactory.INSTANCE); }",unrelated,unrelated,True,,0.0006708135479129851,0.9993292093276978 |
| 90,"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.0006430273642763495,0.9993569254875183 |
| 91,"int getDayOfMonth(long millis, int year) { int month = getMonthOfYear(millis, year); return getDayOfMonth(millis, year, month); }",unrelated,unrelated,True,,0.0006774209323339164,0.9993226528167725 |
| 92,public Hours toStandardHours() { long hours = getStandardHours(); return Hours.hours(FieldUtils.safeToInt(hours)); },unrelated,unrelated,True,,0.0006611713906750083,0.9993388056755066 |
| 93,"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.0006418961565941572,0.9993581175804138 |
| 94,public boolean isGreaterThan(Weeks other) { if (other == null) { return getValue() > 0; } return getValue() > other.getValue(); },unrelated,unrelated,True,,0.0006757237715646625,0.9993243217468262 |
| 95,"public InverseTransformParetoSampler(UniformRandomProvider rng, double scale, double shape) { this(InternalUtils.requireStrictlyPositive(scale, ""scale""), InternalUtils.requireStrictlyPositive(shape, ""shape""), rng); }",unrelated,unrelated,True,,0.0006315615610219538,0.9993684887886047 |
| 96,private void finishJump() { resetCachedState(); if (bufferPosition < PHILOX_BUFFER_SIZE) { rand10(); } },unrelated,unrelated,True,,0.0006712168105877936,0.9993288516998291 |
| 97,"@Override public int hashCode() { int total = 157; for (int i = 0, isize = size(); i < isize; i++) { total = 23 * total + getValue(i); total = 23 * total + getFieldType(i).hashCode(); } total += getChronology().hashCode(); return total; }",unrelated,unrelated,True,,0.000650562287773937,0.9993494153022766 |
| 98,public Seconds minus(Seconds seconds) { if (seconds == null) { return this; } return minus(seconds.getValue()); },unrelated,unrelated,True,,0.0006607304676435888,0.9993392825126648 |
| 99,"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.0006446267361752689,0.9993553757667542 |
| 100,"private void initState() { isaacA = 0; isaacB = 0; isaacC = 0; Arrays.fill(arr, GLD_RATIO); for (int j = 0; j < 4; j++) { shuffle(); } for (int j = 0; j < SIZE; j += 8) { arr[0] += rsl[j]; arr[1] += rsl[j + 1]; arr[2] += rsl[j + 2]; arr[3] += rsl[j + 3]; arr[4] += rsl[j + 4]; arr[5] += rsl[j + 5]; arr[6] += rsl[j + 6]; arr[7] += rsl[j + 7]; shuffle(); setState(j);",unrelated,unrelated,True,,0.0006577708991244435,0.9993422627449036 |
| 101,"private PoissonSamplerCache(int minN, int maxN, LargeMeanPoissonSamplerState[] states) { this.minN = minN; this.maxN = maxN; this.values = states; }",unrelated,unrelated,True,,0.0006591568817384541,0.999340832233429 |
| 102,"public Calendar toCalendar(Locale locale) { if (locale == null) { locale = Locale.getDefault(); } DateTimeZone zone = getZone(); Calendar cal = Calendar.getInstance(zone.toTimeZone(), locale); cal.setTime(toDate()); return cal; }",unrelated,unrelated,True,,0.0006904177716933191,0.9993095397949219 |
| 103,@Override public boolean equals(Object period) { if (this == period) { return true; } if (period instanceof ReadablePeriod == false) { return false; } ReadablePeriod other = (ReadablePeriod) period; return (other.getPeriodType() == getPeriodType() && other.getValue(0) == getValue()); },unrelated,unrelated,True,,0.0007933113956823945,0.9992067217826843 |
| 104,"@Override public String toString() { String str = ""BuddhistChronology""; DateTimeZone zone = getZone(); if (zone != null) { str = str + '[' + zone.getID() + ']'; } return str; }",unrelated,unrelated,True,,0.0006932251853868365,0.9993067979812622 |
| 105,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.0006694325711578131,0.9993306398391724 |
| 106,@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.0006544443313032389,0.999345600605011 |
| 107,@Override public long roundHalfFloor(long instant) { return getWrappedField().roundHalfFloor(instant); },unrelated,unrelated,True,,0.0006608249386772513,0.9993391633033752 |
| 108,private Chronology selectChronology(Chronology chrono) { chrono = DateTimeUtils.getChronology(chrono); if (iChrono != null) { chrono = iChrono; } if (iZone != null) { chrono = chrono.withZone(iZone); } return chrono; },unrelated,unrelated,True,,0.0006593497237190604,0.9993405938148499 |
| 109,@Override public int hashCode() { int hash = iHash; if (hash == 0) { hash = iHash = super.hashCode(); } return hash; },unrelated,unrelated,True,,0.0006731058820150793,0.9993269443511963 |
| 110,"@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.0006429768400266767,0.9993570446968079 |
| 111,"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.0006455827970057726,0.9993544220924377 |
| 112,"public static synchronized UnsupportedDurationField getInstance(DurationFieldType type) { UnsupportedDurationField field; if (cCache == null) { cCache = new HashMap<DurationFieldType, UnsupportedDurationField>(7); field = null; } else { field = cCache.get(type); } if (field == null) { field = new UnsupportedDurationField(type); cCache.put(type, field); } return field; }",unrelated,unrelated,True,,0.0006401526043191552,0.9993599057197571 |
| 113,"BasicDayOfYearDateTimeField(BasicChronology chronology, DurationField days) { super(DateTimeFieldType.dayOfYear(), days); iChronology = chronology; }",unrelated,unrelated,True,,0.0006745861610397696,0.9993253946304321 |
| 114,static long readMillis(DataInput in) throws IOException { int v = in.readUnsignedByte(); switch (v >> 6) { case 0: default: v = (v << (32 - 6)) >> (32 - 6); return v * (30 * 60000L); case 1: v = (v << (32 - 6)) >> (32 - 30); v |= (in.readUnsignedByte()) << 16; v |= (in.readUnsignedByte()) << 8; v |= (in.readUnsignedByte()); return v * 60000L; case 2: long w = (((long)v) << (64 - 6)) >> (64 - 38); w |= (in.readUnsignedByte()) << 24;,unrelated,unrelated,True,,0.0006581458146683872,0.9993417859077454 |
| 115,"public void printTo(StringBuilder buf, ReadablePartial partial) { try { printTo((Appendable) buf, partial); } catch (IOException ex) { } }",unrelated,unrelated,True,,0.0006517507135868073,0.9993482232093811 |
| 116,public boolean isGreaterThan(Minutes other) { if (other == null) { return getValue() > 0; } return getValue() > other.getValue(); },unrelated,unrelated,True,,0.0006836626562289894,0.9993163347244263 |
| 117,"public Duration dividedBy(long divisor) { if (divisor == 1) { return this; } return new Duration(FieldUtils.safeDivide(getMillis(), divisor)); }",unrelated,unrelated,True,,0.0006461860612034798,0.99935382604599 |
| 118,"@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.0006466844934038818,0.9993533492088318 |
| 119,@Override public RandomProviderState saveState() { return new RandomProviderDefaultState(getStateInternal()); },unrelated,unrelated,True,,0.0006767316954210401,0.9993232488632202 |
| 120,"public static SharedStateContinuousSampler of(UniformRandomProvider rng, double scale, double shape) { return new InverseTransformParetoSampler(rng, scale, shape); }",unrelated,unrelated,True,,0.0006691479939036071,0.9993308782577515 |
| 121,private static double lanczos(final double x) { double sum = 0.0; for (int i = LANCZOS_COEFFICIENTS.length - 1; i > 0; --i) { sum += LANCZOS_COEFFICIENTS[i] / (x + i); } return sum + LANCZOS_COEFFICIENTS[0]; },unrelated,unrelated,True,,0.0006395945092663169,0.9993603825569153 |
| 122,"public DelegatedDateTimeField(DateTimeField field, DurationField rangeField, DateTimeFieldType type) { super(); if (field == null) { throw new IllegalArgumentException(""The field must not be null""); } iField = field; iRangeDurationField = rangeField; iType = (type == null ? field.getType() : type); }",unrelated,unrelated,True,,0.0006468173232860863,0.9993532299995422 |
| 123,private RejectionInversionZipfSampler(SharedStateDiscreteSampler delegate) { super(null); this.delegate = delegate; },unrelated,unrelated,True,,0.000670066277962178,0.9993299245834351 |
| 124,"public static Builder<SharedStateDiscreteSampler> newSharedStateDiscreteSamplerBuilder() { return new SamplerBuilder<>( SamplerBuilder.Specialisation.SHARED_STATE_SAMPLER, SharedStateDiscreteSamplerFactory.INSTANCE); }",unrelated,unrelated,True,,0.0006718561053276062,0.9993281364440918 |
| |