<commit_before><%@ page import="org.icescrum.core.support.ApplicationSupport; org.springframework.security.oauth2.common.exceptions.UnapprovedClientAuthenticationException" %>
<head>
    <meta name='layout' content='simple-without-ng'/>
    <title>${message(code: 'is.ui.oauth.confirm')}</title>
</head>
<body>
    <g:if test="${lastException && !(lastException instanceof UnapprovedClientAuthenticationException)}">
        <div class="error">
            <h2>Woops!</h2>
            <p>${message(code: 'is.ui.oauth.access.not.granted')} (${lastException?.message})</p>
        </div>
    </g:if>
    <g:else>
        <g:set var="client" value="${applicationContext.getBean('clientDetailsService')?.loadClientByClientId(params.client_id)}"/>
        <g:set var="user" value="${applicationContext.getBean('springSecurityService')?.principal}"/>
        <div id="oauth-confirm" class="d-flex align-items-center justify-content-center content row">
            <div class="card">
                <div class="card-body">
                    <a href="/">
                        <img alt="iceScrum" src="${assetPath(src: 'application/logo.png')}" class="rounded-circle" height="34px" width="34px">
                        <img id="logo-name" src="${assetPath(src: 'application/icescrum.png')}" alt="iceScrum">
                    </a>
                    <g:if test='${flash.message}'>
                        <div class='login_message'>${flash.message}</div>
                    </g:if>
                    <div class="d-flex justify-content-center mt-3 mb-3">
                        <div class="m-2">
                            <img src="${client.additionalInformation.clientIcon ?: ''}" height="60px" width="60px"/>
                        </div>
                        <div class="m-2">
                            <img alt="iceScrum" src="${assetPath(src: 'application/logo.png')}" height="60px" width="60px">
                        </div>
                    </div>
                    <h2 class="text-center">${message(code: 'is.ui.oauth.authorize', args: [client.additionalInformation.clientName])}</h2>
                    <div class="d-flex pt-3 pbs-3 justify-content-start">
                        <img src="${ApplicationSupport.serverURL() + '/user/avatar/' + user.id}" class="user-avatar mr-2"/><commit_msg>oauth improvments & style<commit_after><%@ page import="org.icescrum.core.support.ApplicationSupport; org.springframework.security.oauth2.common.exceptions.UnapprovedClientAuthenticationException" %>
<head>
    <meta name='layout' content='simple-without-ng'/>
    <title>${message(code: 'is.ui.oauth.confirm')}</title>
</head>
<body>
    <g:if test="${lastException && !(lastException instanceof UnapprovedClientAuthenticationException)}">
        <div class="error">
            <h2>Woops!</h2>
            <p>${message(code: 'is.ui.oauth.access.not.granted')} (${lastException?.message})</p>
        </div>
    </g:if>
    <g:else>
        <g:set var="client" value="${applicationContext.getBean('clientDetailsService')?.loadClientByClientId(params.client_id)}"/>
        <g:set var="user" value="${applicationContext.getBean('springSecurityService')?.principal}"/>
        <div id="oauth-confirm" class="d-flex align-items-center justify-content-center">
            <div class="card">
                <div class="card-body">
                    <a href="/">
                        <img alt="iceScrum" src="${assetPath(src: 'application/logo.png')}" class="rounded-circle" height="34px" width="34px">
                        <img id="logo-name" src="${assetPath(src: 'application/icescrum.png')}" alt="iceScrum">
                    </a>
                    <g:if test='${flash.message}'>
                        <div class='login_message'>${flash.message}</div>
                    </g:if>
                    <div class="d-flex justify-content-center mt-3 mb-3">
                        <div class="m-2">
                            <img src="${client.additionalInformation.clientIcon ?: ''}" height="60px" width="60px"/>
                        </div>
                        <div class="m-2">
                            <img alt="iceScrum" src="${assetPath(src: 'application/logo.png')}" height="60px" width="60px">
                        </div>
                    </div>
                    <h2 class="text-center">${message(code: 'is.ui.oauth.authorize', args: [client.additionalInformation.clientName])}</h2>
                    <div class="d-flex pt-3 pbs-3 justify-content-start">
                        <img src="${ApplicationSupport.serverURL() + '/user/avatar/' + user.id}" class="user-avatar mr-2"/>
{'fraction_non_alphanumeric': 0.17514002585092633, 'fraction_numerical': 0.01034037052994399, 'mean_word_length': 2.24231843575419, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '811398', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1320, 'n_words': 201}