<commit_before>{{!Provider Carousel}}
<div id="providerCarousel" class="carousel slide" data-ride="carousel" data-interval="false">
    <div class="carousel-inner" role="listbox">
        {{#each slides as |slide index|}}
            <div class={{if (not index) "item active" "item"}}>
                {{#each slide as |provider index|}}
                    <div class={{if (not index) (concat "col-sm-2 " columnOffset) "col-sm-2"}}>
                        {{#if lightLogo}}
                            <a href="/preprints/{{provider.id}}"
                                title={{provider.name}}
                                onclick={{action 'click' 'link' (concat 'Index - Provider Carousel - ' provider.name)}}
                                >
                                <div class="provider-logo provider-{{provider.id}}" style="background-image: url('{{providerAsset provider.id 'wide_white.png'}}')"></div>
                            </a>
                        {{else}}
                            <a href="/preprints/{{provider.id}}/discover"
                                title={{provider.name}}
                                onclick={{action 'click' 'link' (concat 'Discover - Provider Carousel ' provider.name)}}
                            >
                                <div class="discover-provider-logo provider-{{provider.id}}-dark" style="background-image: url('{{providerAsset provider.id 'wide_black.png'}}')"></div>
                            </a>
                        {{/if}}
                    </div>
                {{/each}}
            </div>
        {{/each}}
    </div><commit_msg>Added conditional for branded preprints with redirect enabled<commit_after>{{!Provider Carousel}}
<div id="providerCarousel" class="carousel slide" data-ride="carousel" data-interval="false">
    <div class="carousel-inner" role="listbox">
        {{#each slides as |slide index|}}
            <div class={{if (not index) "item active" "item"}}>
                {{#each slide as |provider index|}}
                    <div class={{if (not index) (concat "col-sm-2 " columnOffset) "col-sm-2"}}>
                        {{#if (and provider.domain provider.domainRedirectEnabled)}}
                            <a href="{{provider.domain}}{{if lightLogo '' '/discover'}}"
                                title={{provider.name}}
                                onclick={{action 'click' 'link' (concat 'Index - Provider Carousel - ' provider.name)}}
                                >
                                {{#if lightLogo}}
                                    <div class="provider-logo provider-{{provider.id}}" style="background-image: url('{{providerAsset provider.id 'wide_white.png'}}')"></div>
                                {{else}}
                                    <div class="discover-provider-logo provider-{{provider.id}}-dark" style="background-image: url('{{providerAsset provider.id 'wide_black.png'}}')"></div>
                                {{/if}}
                            </a>
                        {{else}}
                            <a href="/preprints/{{provider.id}}{{if lightLogo '' '/discover'}}"
                                title={{provider.name}}
                                onclick={{action 'click' 'link' (concat 'Discover - Provider Carousel ' provider.name)}}
                                >
                                {{#if lightLogo}}
                                    <div class="provider-logo provider-{{provider.id}}" style="background-image: url('{{providerAsset provider.id 'wide_white.png'}}')"></div>
                                {{else}}
                                    <div class="discover-provider-logo provider-{{provider.id}}-dark" style="background-image: url('{{providerAsset provider.id 'wide_black.png'}}')"></div>
                                {{/if}}
                            </a>
                        {{/if}}
                    </div>
                {{/each}}
            </div>
        {{/each}}
    </div>
{'fraction_non_alphanumeric': 0.15283626455288582, 'fraction_numerical': 0.0009908347783007183, 'mean_word_length': 1.3545189504373178, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1076373', 'n_tokens_mistral': 1010, 'n_tokens_neox': 976, 'n_words': 200}