<commit_before>{
    "realm": "demo",
    "enabled": true,
    "accessTokenLifespan": 60,
    "accessCodeLifespan": 60,
    "accessCodeLifespanUserAction": 300,
    "ssoSessionIdleTimeout": 600,
    "ssoSessionMaxLifespan": 36000,
    "passwordCredentialGrantAllowed": true,
    "sslNotRequired": true,
    "registrationAllowed": false,
    "social": false,
    "updateProfileOnInitialSocialLogin": false,
    "privateKey": "<KEY>
    "publicKey": "<KEY>",
    "requiredCredentials": [ "password" ],
    "users" : [
        {
            "username" : "<EMAIL>",
            "enabled": true,
            "email" : "<EMAIL>",
            "firstName": "Bill",
            "lastName": "Burke",
            "credentials" : [
                { "type" : "password",
                    "value" : "password" }
            ]
        },
        {
            "username" : "admin",
            "enabled": true,
            "email" : "<EMAIL>",
            "firstName": "Admin",
            "lastName": "Burke",
            "credentials" : [
                { "type" : "password",
                    "value" : "password" }
            ]
        }
    ],
    "roles" : {
        "realm" : [
            {
                "name": "user",
                "description": "User privileges"
            },
            {
                "name": "admin",
                "description": "Administrator privileges"
            }
        ]
    },
    "roleMappings": [
        {
            "username": "<EMAIL>",
            "roles": ["user"]
        },
        {
            "username": "admin",
            "roles": ["user","admin"]
        }
    ],
    "scopeMappings": [
        {
            "client": "third-party",
            "roles": ["user"]
        },
        {
            "client": "customer-portal",
            "roles": ["user"]
        },
        {
            "client": "customer-portal-js",
            "roles": ["user"]
        },
        {
            "client": "angular-product",
            "roles": ["user"]
        },
        {
            "client": "product-portal",
            "roles": ["user"]
        }

    ],
    "applications": [
        {
            "name": "customer-portal",
            "enabled": true,
            "adminUrl": "http://localhost:8080/customer-portal",
            "baseUrl": "http://localhost:8080/customer-portal",
            "redirectUris": [
                "http://localhost:8080/customer-portal/*"
            ],
            "secret": "password"
        },
        {
            "name": "customer-portal-js",
            "enabled": true,
            "publicClient": true,
            "baseUrl": "http://localhost:8080/customer-portal-js",
            "redirectUris": [
                "http://localhost:8080/customer-portal-js/*"
            ]
        },
        {
            "name": "angular-product",
            "enabled": true,
            "publicClient": true,
            "baseUrl": "http://localhost:8080/angular-product/index.html",
            "redirectUris": [
                "http://localhost:8080/angular-product/*"
            ]
        },
        {
            "name": "customer-portal-cli",
            "enabled": true,
            "publicClient": true,
            "redirectUris": [
                "urn:ietf:wg:oauth:2.0:oob",
                "http://localhost"
            ]
        },
        {
            "name": "product-portal",
            "enabled": true,
            "adminUrl": "http://localhost:8080/product-portal",
            "baseUrl": "http://localhost:8080/product-portal",
            "redirectUris": [
                "http://localhost:8080/product-portal/*"
            ],
            "secret": "password"
        }
    ],
    "oauthClients": [
        {
            "name": "third-party",
            "enabled": true,
            "redirectUris": [
                "http://localhost:8080/oauth-client/*",
                "http://localhost:8080/oauth-client-cdi/*"
            ],
            "secret": "password"
        },
        {
            "name": "admin-client",
            "enabled": true,
            "publicClient": true,
            "directGrantsOnly": true

        }
    ],
    "applicationRoleMappings": {
        "account": [
            {
                "username": "<EMAIL>",
                "roles": ["manage-account"]
            }
        ],
        "realm-management": [
            {
                "username": "admin",
                "roles": ["realm-admin"]
            }
        ]
    },
    "applicationScopeMappings": {
        "realm-management": [
            {
                "client": "admin-client",
                "roles": ["realm-admin"]<commit_msg>Add more scopes into testrealm.json to ensure that admin is able to access all things he needs<commit_after>{
    "realm": "demo",
    "enabled": true,
    "accessTokenLifespan": 60,
    "accessCodeLifespan": 60,
    "accessCodeLifespanUserAction": 300,
    "ssoSessionIdleTimeout": 600,
    "ssoSessionMaxLifespan": 36000,
    "passwordCredentialGrantAllowed": true,
    "sslNotRequired": true,
    "registrationAllowed": false,
    "social": false,
    "updateProfileOnInitialSocialLogin": false,
    "privateKey": "<KEY>
    "publicKey": "<KEY>",
    "requiredCredentials": [ "password" ],
    "users" : [
        {
            "username" : "<EMAIL>",
            "enabled": true,
            "email" : "<EMAIL>",
            "firstName": "Bill",
            "lastName": "Burke",
            "credentials" : [
                { "type" : "password",
                    "value" : "password" }
            ]
        },
        {
            "username" : "admin",
            "enabled": true,
            "email" : "<EMAIL>",
            "firstName": "Admin",
            "lastName": "Burke",
            "credentials" : [
                { "type" : "password",
                    "value" : "password" }
            ]
        }
    ],
    "roles" : {
        "realm" : [
            {
                "name": "user",
                "description": "User privileges"
            },
            {
                "name": "admin",
                "description": "Administrator privileges"
            }
        ]
    },
    "roleMappings": [
        {
            "username": "<EMAIL>",
            "roles": ["user"]
        },
        {
            "username": "admin",
            "roles": ["user","admin"]
        }
    ],
    "scopeMappings": [
        {
            "client": "third-party",
            "roles": ["user"]
        },
        {
            "client": "customer-portal",
            "roles": ["user", "admin" ]
        },
        {
            "client": "customer-portal-js",
            "roles": ["user"]
        },
        {
            "client": "angular-product",
            "roles": ["user"]
        },
        {
            "client": "product-portal",
            "roles": ["user", "admin" ]
        }

    ],
    "applications": [
        {
            "name": "customer-portal",
            "enabled": true,
            "adminUrl": "http://localhost:8080/customer-portal",
            "baseUrl": "http://localhost:8080/customer-portal",
            "redirectUris": [
                "http://localhost:8080/customer-portal/*"
            ],
            "secret": "password"
        },
        {
            "name": "customer-portal-js",
            "enabled": true,
            "publicClient": true,
            "baseUrl": "http://localhost:8080/customer-portal-js",
            "redirectUris": [
                "http://localhost:8080/customer-portal-js/*"
            ]
        },
        {
            "name": "angular-product",
            "enabled": true,
            "publicClient": true,
            "baseUrl": "http://localhost:8080/angular-product/index.html",
            "redirectUris": [
                "http://localhost:8080/angular-product/*"
            ]
        },
        {
            "name": "customer-portal-cli",
            "enabled": true,
            "publicClient": true,
            "redirectUris": [
                "urn:ietf:wg:oauth:2.0:oob",
                "http://localhost"
            ]
        },
        {
            "name": "product-portal",
            "enabled": true,
            "adminUrl": "http://localhost:8080/product-portal",
            "baseUrl": "http://localhost:8080/product-portal",
            "redirectUris": [
                "http://localhost:8080/product-portal/*"
            ],
            "secret": "password"
        }
    ],
    "oauthClients": [
        {
            "name": "third-party",
            "enabled": true,
            "redirectUris": [
                "http://localhost:8080/oauth-client/*",
                "http://localhost:8080/oauth-client-cdi/*"
            ],
            "secret": "password"
        },
        {
            "name": "admin-client",
            "enabled": true,
            "publicClient": true,
            "directGrantsOnly": true

        }
    ],
    "applicationRoleMappings": {
        "account": [
            {
                "username": "<EMAIL>",
                "roles": ["manage-account"]
            }
        ],
        "realm-management": [
            {
                "username": "admin",
                "roles": ["realm-admin"]
            }
        ]
    },
    "applicationScopeMappings": {
        "realm-management": [
            {
                "client": "admin-client",
                "roles": ["realm-admin"]
            },
            {
                "client": "customer-portal",
                "roles": ["realm-admin"]
{'fraction_non_alphanumeric': 0.16226691808087157, 'fraction_numerical': 0.013618269432222921, 'mean_word_length': 1.236879100281162, 'pattern_counts': {'":': 178, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '508864', 'n_tokens_mistral': 2778, 'n_tokens_neox': 2644, 'n_words': 407}