<commit_before><template>
    <layout>
        <div class="bd-pageheader">
            <div class="container">
                <h1>
                    <slot name="title"></slot>
                </h1>
                <p class="lead">
                    <slot name="lead"></slot>
                </p>
            </div>
        </div>

        <div class="container">
            <div class="row">

                <div class="col-12 col-md-9 bd-content">

                    <b-button-group class="float-right mb-auto">
                        <b-btn size="sm" @click="issue" >Report an issue</b-btn>
                        <b-btn size="sm" @click="editPage" >Edit this page</b-btn>
                        <slot name="actions"></slot>
                    </b-button-group>

                    <slot name="content"></slot>
                </div>

                <div class="col-12 col-md-3 bd-sidebar">
                    <m-sidebar></m-sidebar>
                </div>

            </div>
        </div>

        <div class="container">
            <div id="disqus_script"></div>
            <div id="disqus_thread"></div>
        </div>

    </layout>
</template>

<script>
    import layout from './site.vue';
    import mSidebar from '../includes/sidebar.vue';

    export default {
        components: {layout, mSidebar},
        data(){
            return {}
        },
        computed: {
            github(){
                const base = 'https://github.com/bootstrap-vue/bootstrap-vue/tree/master/docs/pages';
                let path = window.location.pathname;
                if (path.endsWith('/docs') || path.endsWith('/docs/'))
                    path += '/index';
                return base + path + '.vue'
            }
        },
        methods: {
            editPage(){
                window.open(this.github, '_blank');
                //this.$ga.event('docs', 'edit_page');
            },
            issue(){
                window.open('https://github.com/bootstrap-vue/bootstrap-vue/issues/new', '_blank');
                //this.$ga.event('docs', 'open_issue');
            },
        },
        mounted(){
            if (!document.disqus) {
                let disqus_script = document.getElementById('disqus_script');
                if (disqus_script) {
                    let script = document.createElement('script');
                    script.src = '//bootstrap-vue.disqus.com/embed.js';
                    script.setAttribute('data-timestamp', +new Date());
                    disqus_script.appendChild(script);
                    document.disqus = true;
                }
            } else {
                if (DISQUS) DISQUS.reset({reload: true});
            }
        }<commit_msg>Fixes #88<commit_after><template>
    <layout>
        <div class="bd-pageheader">
            <div class="container">
                <h1>
                    <slot name="title"></slot>
                </h1>
                <p class="lead">
                    <slot name="lead"></slot>
                </p>
            </div>
        </div>

        <div class="container">
            <div class="row">

                <div class="col-12 col-md-9 bd-content">

                    <b-button-group class="float-right mb-auto">
                        <b-btn size="sm" @click="issue">Report an issue</b-btn>
                        <b-btn size="sm" @click="editPage">Edit this page</b-btn>
                        <slot name="actions"></slot>
                    </b-button-group>

                    <slot name="content"></slot>
                </div>

                <div class="col-12 col-md-3 bd-sidebar">
                    <m-sidebar></m-sidebar>
                </div>

            </div>
        </div>

        <div class="container">
            <div id="disqus_script"></div>
            <div id="disqus_thread"></div>
        </div>

    </layout>
</template>

<script>
    import layout from './site.vue';
    import mSidebar from '../includes/sidebar.vue';

    export default {
        components: {layout, mSidebar},
        data(){
            return {}
        },
        methods: {
            editPage(){
                const base = 'https://github.com/bootstrap-vue/bootstrap-vue/tree/master/docs/pages';
                let path = window.location.pathname;
                if (path.endsWith('/docs') || path.endsWith('/docs/'))
                    path += '/index';
                let github_url = base + path + '.vue';
                window.open(github_url, '_blank');
                //this.$ga.event('docs', 'edit_page');
            },
            issue(){
                window.open('https://github.com/bootstrap-vue/bootstrap-vue/issues/new', '_blank');
                //this.$ga.event('docs', 'open_issue');
            },
        },
        mounted(){
            if (!document.disqus) {
                let disqus_script = document.getElementById('disqus_script');
                if (disqus_script) {
                    let script = document.createElement('script');
                    script.src = '//bootstrap-vue.disqus.com/embed.js';
                    script.setAttribute('data-timestamp', +new Date());
                    disqus_script.appendChild(script);
                    document.disqus = true;
                }
            } else {
                if (DISQUS) DISQUS.reset({reload: true});
            }
        }
{'fraction_non_alphanumeric': 0.1501201700868922, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 1.2263374485596708, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 4, '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': '3787993', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1408, 'n_words': 260}