| dataset_index,text,true_label,predicted_label,correct,error_type,probability_input_validation,probability_unrelated |
| 17,@Override public OAuth2TokenValidatorResult validate(T token) { Collection<OAuth2Error> errors = new ArrayList<>(); for (OAuth2TokenValidator<T> validator : this.tokenValidators) { errors.addAll(validator.validate(token).getErrors()); } return OAuth2TokenValidatorResult.failure(errors); },unrelated,input_validation,False,true_unrelated_predicted_input_validation,0.9981728792190552,0.0018270574510097504 |
| 21,"public void validateSignatureAgainstProfile() throws WSSecurityException { Signature sig = getSignature(); if (sig != null) { SAMLSignatureProfileValidator validator = new SAMLSignatureProfileValidator(); try { validator.validate(sig); } catch (SignatureException ex) { throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, ex, ""empty"", new Object[] {""SAML signature validation failed""}); } } }",unrelated,input_validation,False,true_unrelated_predicted_input_validation,0.9980600476264954,0.0019399269949644804 |
| 31,"private final static Pattern MAX_AGE_PATTERN = Pattern.compile(""^\\-?[0-9]+$"");",input_validation,unrelated,False,true_input_validation_predicted_unrelated,0.0008087989408522844,0.9991912245750427 |
| 39,"public static byte[] decodeFromFile(String filename) throws java.io.IOException { byte[] decodedData = null; Base64.InputStream bis = null; try { Path file = Paths.get(filename); byte[] buffer; int length = 0; int numBytes; if (Files.size(file) > Integer.MAX_VALUE) { throw new java.io.IOException(""File is too big for this convenience method ("" + Files.size(file) + "" bytes).""); } buffer = new byte[(int) Files.size(file)];",input_validation,unrelated,False,true_input_validation_predicted_unrelated,0.0004972864990122616,0.9995026588439941 |
| 44,"protected PathResource getFileResource(final Path file, final String path, final Path symlinkBase, String normalizedFile) throws IOException { if (this.caseSensitive) { if (symlinkBase != null) { String relative = symlinkBase.relativize(file.normalize()).toString(); String fileResolved = file.toRealPath().toString(); String symlinkBaseResolved = symlinkBase.toRealPath().toString(); if (!fileResolved.startsWith(symlinkBaseResolved)) { log.tracef(""Rejected path resource %s from path resource manager with base %s, as the case did not match actual case of %s"", path, base, normalizedFile); return null; } String compare = fileResolved.substring(symlinkBaseResolved.length()); if(compare.startsWith(fileSystem.getSeparator())) { compare = compare.substring(fileSystem.getSeparator().length()); } if(relative.startsWith(fileSystem.getSeparator())) { relative = relative.substring(fileSystem.getSeparator().length()); }",input_validation,unrelated,False,true_input_validation_predicted_unrelated,0.0004937829216942191,0.9995062351226807 |
| 45,"public CachingResourceManager(final int metadataCacheSize, final long maxFileSize, final DirectBufferCache dataCache, final ResourceManager underlyingResourceManager, final int maxAge) { this.maxFileSize = maxFileSize; this.underlyingResourceManager = underlyingResourceManager; this.dataCache = dataCache; if(maxAge > 0 || maxAge == MAX_AGE_NO_CACHING || maxAge == MAX_AGE_NO_EXPIRY) { this.maxAge = maxAge; } else { UndertowLogger.ROOT_LOGGER.wrongCacheTTLValue(maxAge, MAX_AGE_NO_CACHING); this.maxAge = MAX_AGE_NO_CACHING; }",input_validation,unrelated,False,true_input_validation_predicted_unrelated,0.0004814083513338119,0.999518632888794 |
| 64,"String sanitize(String outString, String contentTypeId);",unrelated,input_validation,False,true_unrelated_predicted_input_validation,0.9980699419975281,0.0019300220301374793 |
| 65,"public static String canonicalize(final String path) { return canonicalize(path, false); }",unrelated,input_validation,False,true_unrelated_predicted_input_validation,0.9938609600067139,0.006139026023447514 |
| 66,"private static long asLong(final String value) throws ResourceIOException { try { return Long.parseLong(value); } catch (final NumberFormatException ex) { throw new ResourceIOException(""Invalid cache header format""); } }",input_validation,unrelated,False,true_input_validation_predicted_unrelated,0.000490382662974298,0.9995095729827881 |
| 69,"public static Document makeEmptyXmlDocument(String rootElementName) { Document document = null; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(true); try { factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); DocumentBuilder builder = factory.newDocumentBuilder(); document = builder.newDocument(); } catch (Exception e) { Debug.logError(e, MODULE); } if (document == null) { return null; } if (rootElementName != null) { Element rootElement = document.createElement(rootElementName); document.appendChild(rootElement); } return document; }",unrelated,input_validation,False,true_unrelated_predicted_input_validation,0.9981703758239746,0.0018295582849532366 |
| 80,"@SuppressWarnings(""removal"") public DefaultOAuth2UserService() { RestTemplate restTemplate = new RestTemplate(); restTemplate.setErrorHandler(new OAuth2ErrorResponseErrorHandler()); this.restOperations = restTemplate; }",unrelated,input_validation,False,true_unrelated_predicted_input_validation,0.9980118274688721,0.0019881611224263906 |
| 101,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,input_validation,False,true_unrelated_predicted_input_validation,0.9877303242683411,0.012269685976207256 |
| 109,"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,input_validation,False,true_unrelated_predicted_input_validation,0.9980114698410034,0.0019884801004081964 |
|
|