<commit_before>extends layout
block content
    img(src="https://sandbox.sensibill.io/img/sensibill/sensibill-banner.png")
    - if (session.authed && apiInfo.oauth && apiInfo.oauth.type =='three-legged')
        - var authed ='authed'
    - else if (session.authed && apiInfo.oauth2)
        - var authed ='authed'
    - else
        - var authed =''


    //form#credentials
        input(type='hidden', name='apiName', value=apiName)
        - if (apiInfo.auth)
            section(class='credentials ' + authed)
                - if (apiInfo.oauth)
                    input(type='hidden', name='oauth', value='authrequired')
                - else if (apiInfo.oauth2)
                    input(type='hidden', name='oauth2', value='authrequired')

                - if (apiInfo.auth.defaultKey)
                    - var defaultKey =apiInfo.auth.defaultKey<commit_msg>PROD-728: Reference the banner from the API project, rather than hard-coded to the sandbox environment.<commit_after>extends layout
block content
    img(src="/apiref/images/sensibill-banner.png")
    - if (session.authed && apiInfo.oauth && apiInfo.oauth.type =='three-legged')
        - var authed ='authed'
    - else if (session.authed && apiInfo.oauth2)
        - var authed ='authed'
    - else
        - var authed =''


    //form#credentials
        input(type='hidden', name='apiName', value=apiName)
        - if (apiInfo.auth)
            section(class='credentials ' + authed)
                - if (apiInfo.oauth)
                    input(type='hidden', name='oauth', value='authrequired')
                - else if (apiInfo.oauth2)
                    input(type='hidden', name='oauth2', value='authrequired')

                - if (apiInfo.auth.defaultKey)
                    - var defaultKey =apiInfo.auth.defaultKey
{'fraction_non_alphanumeric': 0.13399778516057587, 'fraction_numerical': 0.0049833887043189366, 'mean_word_length': 2.1262975778546713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6836776', 'n_tokens_mistral': 567, 'n_tokens_neox': 537, 'n_words': 107}