<commit_before><section class="gh-canvas">
    <header class="gh-canvas-header">
        <h2 class="gh-canvas-title" data-test-screen-title>
            {{#link-to "settings.integrations"}}Integrations{{/link-to}}
            <span>{{svg-jar "arrow-right"}}</span>
            Slack
        </h2>
        <section class="view-actions">
            {{gh-task-button task=save class="gh-btn gh-btn-blue gh-btn-icon" data-test-save-button=true}}
        </section>
    </header>

    {{#if showLeaveSettingsModal}}
        {{gh-fullscreen-modal "leave-settings"
            confirm=(action "leaveSettings")
            close=(action "toggleLeaveSettingsModal")
            modifier="action wide"}}
    {{/if}}

    <section class="view-container">
        <br>
        <section class="app-grid">
            <div class="app-cell">
                <img class="app-icon" src="assets/img/slackicon.png" />
            </div>
            <div class="app-cell">
                <h3>Slack</h3>
                <p>A messaging app for teams</p>
            </div>
        </section>

        <form class="app-config-form" id="slack-settings" novalidate="novalidate" {{action "save" on="submit"}}>
            <div class="gh-setting-header">Slack configuration</div>
            <div class="gh-setting">
                <div class="gh-setting-content gh-setting-content--no-action">
                    <div class="gh-setting-title">Webhook URL</div>
                    <div class="gh-setting-desc">Automatically send newly published posts to a channel in Slack or any Slack-compatible service like Discord or Mattermost.</div>
                    <div class="gh-setting-content-extended">
                        {{#gh-form-group errors=slackSettings.errors hasValidated=slackSettings.hasValidated property="url"}}
                            {{gh-text-input
                                placeholder="https://hooks.slack.com/services/..."
                                name="slack[url]"
                                value=(readonly slackSettings.url)
                                input=(action "updateURL" value="target.value")
                                keyEvents=(hash
                                    Enter=(action "save")
                                )
                                focus-out=(action "triggerDirtyState")
                                data-test-slack-url-input=true
                            }}
                            {{#unless slackSettings.errors.url}}
                                <p>Set up a new incoming webhook <a href="https://my.slack.com/apps/new/A0F7XDUAZ-incoming-webhooks" target="_blank">here</a>, and grab the URL.</p>
                            {{else}}
                                {{gh-error-message errors=slackSettings.errors property="url" data-test-error="slack-url"}}
                            {{/unless}}
                        {{/gh-form-group}}
                    </div>
                </div>
            </div>
            <div class="gh-setting">
                <div class="gh-setting-content gh-setting-content--no-action">
                    <div class="gh-setting-title">Username</div>
                    <div class="gh-setting-desc">The username to display messages from (defaults to "Ghost")</div>
                    <div class="gh-setting-content-extended">
                        {{#gh-form-group errors=slackSettings.errors hasValidated=slackSettings.hasValidated property="username"}}
                            {{gh-text-input
                                placeholder="Ghost"
                                name="slack[username]"
                                value=(readonly slackSettings.username)
                                input=(action "updateUsername" value="target.value")
                                keyEvents=(hash
                                    Enter=(action "save")
                                )
                                focus-out=(action "triggerDirtyState")
                                data-test-slack-username-input=true
                            }}
                            {{#if slackSettings.errors.username}}
                                {{gh-error-message errors=slackSettings.errors property="username"}}
                            {{/if}}
                        {{/gh-form-group}}
                    </div><commit_msg>Removed "defaults to" text from Slack integration's username description<commit_after><section class="gh-canvas">
    <header class="gh-canvas-header">
        <h2 class="gh-canvas-title" data-test-screen-title>
            {{#link-to "settings.integrations"}}Integrations{{/link-to}}
            <span>{{svg-jar "arrow-right"}}</span>
            Slack
        </h2>
        <section class="view-actions">
            {{gh-task-button task=save class="gh-btn gh-btn-blue gh-btn-icon" data-test-save-button=true}}
        </section>
    </header>

    {{#if showLeaveSettingsModal}}
        {{gh-fullscreen-modal "leave-settings"
            confirm=(action "leaveSettings")
            close=(action "toggleLeaveSettingsModal")
            modifier="action wide"}}
    {{/if}}

    <section class="view-container">
        <br>
        <section class="app-grid">
            <div class="app-cell">
                <img class="app-icon" src="assets/img/slackicon.png" />
            </div>
            <div class="app-cell">
                <h3>Slack</h3>
                <p>A messaging app for teams</p>
            </div>
        </section>

        <form class="app-config-form" id="slack-settings" novalidate="novalidate" {{action "save" on="submit"}}>
            <div class="gh-setting-header">Slack configuration</div>
            <div class="gh-setting">
                <div class="gh-setting-content gh-setting-content--no-action">
                    <div class="gh-setting-title">Webhook URL</div>
                    <div class="gh-setting-desc">Automatically send newly published posts to a channel in Slack or any Slack-compatible service like Discord or Mattermost.</div>
                    <div class="gh-setting-content-extended">
                        {{#gh-form-group errors=slackSettings.errors hasValidated=slackSettings.hasValidated property="url"}}
                            {{gh-text-input
                                placeholder="https://hooks.slack.com/services/..."
                                name="slack[url]"
                                value=(readonly slackSettings.url)
                                input=(action "updateURL" value="target.value")
                                keyEvents=(hash
                                    Enter=(action "save")
                                )
                                focus-out=(action "triggerDirtyState")
                                data-test-slack-url-input=true
                            }}
                            {{#unless slackSettings.errors.url}}
                                <p>Set up a new incoming webhook <a href="https://my.slack.com/apps/new/A0F7XDUAZ-incoming-webhooks" target="_blank">here</a>, and grab the URL.</p>
                            {{else}}
                                {{gh-error-message errors=slackSettings.errors property="url" data-test-error="slack-url"}}
                            {{/unless}}
                        {{/gh-form-group}}
                    </div>
                </div>
            </div>
            <div class="gh-setting">
                <div class="gh-setting-content gh-setting-content--no-action">
                    <div class="gh-setting-title">Username</div>
                    <div class="gh-setting-desc">The username to display messages from</div>
                    <div class="gh-setting-content-extended">
                        {{#gh-form-group errors=slackSettings.errors hasValidated=slackSettings.hasValidated property="username"}}
                            {{gh-text-input
                                placeholder="Ghost"
                                name="slack[username]"
                                value=(readonly slackSettings.username)
                                input=(action "updateUsername" value="target.value")
                                keyEvents=(hash
                                    Enter=(action "save")
                                )
                                focus-out=(action "triggerDirtyState")
                                data-test-slack-username-input=true
                            }}
                            {{#if slackSettings.errors.username}}
                                {{gh-error-message errors=slackSettings.errors property="username"}}
                            {{/if}}
                        {{/gh-form-group}}
                    </div>
{'fraction_non_alphanumeric': 0.12458830210107893, 'fraction_numerical': 0.001362862010221465, 'mean_word_length': 1.3064431639601886, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1084407', 'n_tokens_mistral': 2243, 'n_tokens_neox': 2117, 'n_words': 368}