dataset_index,text,true_label,predicted_label,correct,error_type,probability_audit_accountability,probability_unrelated 15,"Commit(CommitMetadata commitMetadata, List snapshots, Diff diff) { Validate.argumentsAreNotNull(commitMetadata, snapshots, diff); this.commitMetadata = commitMetadata; this.snapshots = snapshots; this.diff = diff; }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0008665707428008318,0.9991334080696106 16,"public Mono markAudited(Object object) { Assert.notNull(object, ""Source object must not be null""); if (!isAuditable(object)) { return Mono.just(object); } PersistentEntity> entity = entities .getRequiredPersistentEntity(object.getClass()); return entity.isNew(object) ? markCreated(object) : markModified(object); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.05436493828892708,0.9456350803375244 17,JaversAuditableAspectAsync(JaversCommitAdvice javersCommitAdvice) { this.javersCommitAdvice = javersCommitAdvice; },unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.8558459877967834,0.14415398240089417 18,"public CommitMetadata(String author, Map properties, LocalDateTime commitDate, Instant commitDateInstant, CommitId id) { Validate.argumentsAreNotNull(author, properties, commitDate, id); this.author = author; this.properties = new HashMap<>(properties); this.commitDate = commitDate; this.id = id; this.commitDateInstant = initCommitDateInstant(commitDate, commitDateInstant); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.015962179750204086,0.9840378761291504 19, Optional> getBeanWrapperFor(T source);,audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0007884991355240345,0.9992114305496216 22,"public boolean isAuditable() { return Optionals.isAnyPresent(createdByField, createdDateField, lastModifiedByField, lastModifiedDateField); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0009130316320806742,0.9990869760513306 24,"public static AuditingHandler from(MappingContext mappingContext) { return new AuditingHandler(PersistentEntities.of(mappingContext)); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0007030780543573201,0.9992969036102295 28,JaversAuditableAspect(JaversCommitAdvice javersCommitAdvice) { this.javersCommitAdvice = javersCommitAdvice; },unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.5178748965263367,0.48212510347366333 30,"protected final boolean isAuditable(Object source) { Assert.notNull(source, ""Source entity must not be null""); return factory.getBeanWrapperFor(source).isPresent(); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0010555449407547712,0.9989444613456726 32,"private T touch(Auditor auditor, T target, boolean isNew) { Optional> wrapper = factory.getBeanWrapperFor(target); return wrapper.map(it -> { touchAuditor(auditor, it, isNew); Optional now = dateTimeForNow ? touchDate(it, isNew) : Optional.empty();",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0007417748565785587,0.9992582201957703 33,"public T markModified(T source) { Assert.notNull(source, ""Entity must not be null""); return markModified(getAuditor(), source); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.0036575798876583576,0.9963423609733582 40,"public Object markAudited(Object object) { Assert.notNull(object, ""Source object must not be null""); if (!isAuditable(object)) { return object; } PersistentEntity> entity = entities .getRequiredPersistentEntity(object.getClass()); return entity.isNew(object) ? markCreated(object) : markModified(object); }",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.19444452226161957,0.805555522441864 49,"@Override public void written(ServerSession session, String remoteHandle, FileHandle localHandle, long offset, byte[] data, int dataOffset, int dataLen, Throwable thrown) { this.applicationEventPublisher.publishEvent(new FileWrittenEvent(session, remoteHandle, localHandle.getFile(), dataLen, thrown)); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9599892497062683,0.040010739117860794 50,"@Override public void created(ServerSession session, Path path, Map attrs, Throwable thrown) { this.applicationEventPublisher.publishEvent(new DirectoryCreatedEvent(session, path, attrs)); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9818547964096069,0.018145255744457245 51,"protected void publish(String message) { FileTailingEvent event = new FileTailingEvent(this, message, getFile()); this.eventPublisher.publishEvent(event); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9962246417999268,0.003775383345782757 53,"@Override public void removed(ServerSession session, Path path, boolean isDirectory, Throwable thrown) { this.applicationEventPublisher.publishEvent(new PathRemovedEvent(session, path, isDirectory, thrown)); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9935405850410461,0.006459440104663372 61,"private void simulateFailedLogin(AuthenticationToken token) { try { AuthenticationInfo simulated = ensureSimulatedAuthenticationInfo(); if (simulated != null && assertCredentialsMatchWithoutException(token, simulated)) { String msg = ""Submitted credentials for token ["" + token + ""] matched the simulated credentials. "" + ""This indicates a misconfiguration of the realm's "" + ""CredentialsMatcher or simulated credentials. Please review your configuration.""; throw new IncorrectCredentialsException(msg); } } catch (AuthenticationException authenticationException) { LOGGER.error( ""CredentialsMatcher [{}] threw exception on method 'doCredentialsMatch'"", getCredentialsMatcher(), authenticationException); } }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9965315461158752,0.003468502778559923 62,protected void informCancelled( PeerReadRequest request ) { for (int i=0;i getObservableRepos() { try { List ids = userRepositories.getObservableRepositoryIds( getPrincipal() ); return ids == null ? Collections.emptyList() : ids; } catch ( PrincipalNotFoundException e ) { log.warn( e.getMessage(), e ); } catch ( AccessDeniedException e ) { log.warn( e.getMessage(), e ); } catch ( ArchivaSecurityException e ) { log.warn( e.getMessage(), e ); } return Collections.emptyList(); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9957423806190491,0.004257640801370144 67,"@Override public void beginScan( ManagedRepository repo, Date whenGathered ) throws ConsumerException { repoId = repo.getId(); this.repositoryDir = Paths.get( repo.getLocation() ); try { repositorySession = repositorySessionFactory.createSession(); } catch ( MetadataRepositoryException e ) { e.printStackTrace( ); } }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9896793365478516,0.010320649482309818 68,"private Logger logger = LoggerFactory.getLogger( ""org.apache.archiva.AuditLog"" );",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.000660295132547617,0.9993396401405334 72,"@Override public void anonymousBind() throws LdapException { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_04109_ANONYMOUS_BIND ) ); } BindRequest bindRequest = createBindRequest( StringConstants.EMPTY, Strings.EMPTY_BYTES ); BindResponse bindResponse = bind( bindRequest ); processResponse( bindResponse ); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9961133003234863,0.0038866542745381594 74,"public static final Logger logger = LoggerFactory.getLogger( ""org.apache.archiva.AuditLog"" );",audit_accountability,unrelated,False,true_audit_accountability_predicted_unrelated,0.000661465513985604,0.9993385672569275 77,"private List getObservableRepos( String principal ) { try { return userRepositories.getObservableRepositoryIds( principal ); } catch ( PrincipalNotFoundException e ) { log.warn( e.getMessage(), e ); } catch ( AccessDeniedException e ) { log.warn( e.getMessage(), e ); } catch ( ArchivaSecurityException e ) { log.warn( e.getMessage(), e ); } return Collections.emptyList(); }",unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.996346652507782,0.0036533456295728683 125,private void finishJump() { resetCachedState(); if (bufferPosition < PHILOX_BUFFER_SIZE) { rand10(); } },unrelated,audit_accountability,False,true_unrelated_predicted_audit_accountability,0.9718952775001526,0.028104670345783234