<commit_before>package org.apereo.cas.uma.claim;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * This is {@link UmaResourceSetClaimPermissionResult}.
 *
 * @author <NAME>
 * @since 6.0.0
 */
@Data
public class UmaResourceSetClaimPermissionResult implements Serializable {
    private static final long serialVersionUID = -4793142197818018354L;

    private Map<Long, Details> details = new LinkedHashMap<>();

    @JsonIgnore
    public boolean isSatisfied() {
        return details.isEmpty();
    }

    @Data
    public static class Details implements Serializable {
        private static final long serialVersionUID = -4294568893393275983L;

        private Collection<String> unmatchedScopes = new ArrayList<>();

        private Map<String, Object> unmatchedClaims = new LinkedHashMap<>();<commit_msg>cntd working on uma test cases with authz request<commit_after>package org.apereo.cas.uma.claim;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * This is {@link UmaResourceSetClaimPermissionResult}.
 *
 * @author <NAME>
 * @since 6.0.0
 */
@Data
public class UmaResourceSetClaimPermissionResult implements Serializable {
    private static final long serialVersionUID = -4793142197818018354L;

    private Map<Long, Details> details = new LinkedHashMap<>();

    @JsonIgnore
    public boolean isSatisfied() {
        return details.isEmpty();
    }

    /**
     * The Details for analysis result.
     */
    @Data
    public static class Details implements Serializable {
        private static final long serialVersionUID = -4294568893393275983L;

        private Collection<String> unmatchedScopes = new ArrayList<>();

        private Map<String, Object> unmatchedClaims = new LinkedHashMap<>();
{'fraction_non_alphanumeric': 0.09484435797665369, 'fraction_numerical': 0.03988326848249027, 'mean_word_length': 4.066502463054187, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2377109', 'n_tokens_mistral': 626, 'n_tokens_neox': 561, 'n_words': 156}